Jump to content

Button command syntax

Closed 1.0.701

crunch
crunch

Posted (edited)

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
Monster

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

104.9k

Files Sold

Total number of files sold.

2.1m

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.