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
Monster

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.7k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.