$setGlobalUserVar
$setGlobalUserVar
will change the value of a given global user variable.
Usage
$setGlobalUserVar[varname;value;userID?;table?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
varname | string | Variable name. | true |
value | string | New Variable value. | true |
userID? | number | User ID. | false |
table? | string | Variable table. | false |
Example(s)
This will change the value of “Example” to “This is a value” for the command author:
1client.command({2 name: "setGlobalUserVar",3 code: `4 $setGlobalUserVar[Example;This is a value;$authorID;main]5 `6});