The UserCommandEx class allows you to add multiple $UserCommand's to the same object
The $UserCommand's is sent to all users by hexhub during login.
Hex.UserCommandEx() returns a new object of type UserCommandEx.
For more information about how to create an instance of this object read Hex.UserCommandEx() section.
Remarks:
The usercommands will be sent as long as this object is valid.
Once the lua garbage collector collects this object all usercommands will be automatically unregistered with hexhub.
This object is only available in Hex Script versions >= 1.2.0.0
The usercommands in this object is not editable, if you need editable usercommands you can use the UserCommand class object.
usrcmds = Hex.UserCommandEx() usrcmda:AddUserCommandString("$UserCommand First menu....") usrcmda:AddUserCommandString("$UserCommand second menu....") usrcmda:AddUserCommandString("$UserCommand third menu....")