Jump to content

Button command syntax

Closed 1.0.701

crunch

Hi, with the commands that can be run with buttons, is it possible to have them run / commands in game? For example, I've set up a Skinbox page, and it'd be cool to have the button open skinbox when pressed. I've tried the following but it doesn't seem to like it, not sure if there's a specific syntax required:

 

        "Setting buttons": [
          {
            "Button unique name - [ Setting text in lang ]": "SBOpen",
            "OffsetMin": "-180 168.75",
            "OffsetMax": "-100 198.75",
            "TextAnchor [ Text alignment ] | 0 - 8": 4,
            "Command": "/skinbox",
            "Button color": "0.517 0.521 0.509 0.5",
            "Text color": "0.75 0.75 0.75 0.75",
            "Close menu after clicking": true
          }


EDIT:

Never mind, worked it out.  For everyone else it's:
 

"Command": "chat.say /skinbox"; 

For example.

Edited by crunch
  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.