Skip to content

$setGlobalUserVar

$setGlobalUserVar will change the value of a given global user variable.

Usage

$setGlobalUserVar[varname;value;userID?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
valuestringNew Variable value.true
userID?numberUser ID.false
table?stringVariable table.false

Example(s)

This will change the value of “Example” to “This is a value” for the command author:

1
client.command({
2
name: "setGlobalUserVar",
3
code: `
4
$setGlobalUserVar[Example;This is a value;$authorID;main]
5
`
6
});