note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
setpubvar
warning
This function starts with a lowercase letter.
Description
Sets a specific public variable in the current script.
Name | Description |
---|---|
const name[] | The public variable's name. |
value | The value to store in the public variable. |
Returns
The previous value of the variable.
Related Functions
- getpubvar: Gets a specific public variable from the current script.
- existpubvar: Checks if a specific public variable exists in the current script.
- numpubvars: Counts how many public variables there are in the script.