-
-
Notifications
You must be signed in to change notification settings - Fork 38
Variables
Sal4iDev | Сельча edited this page Feb 18, 2024
·
20 revisions
Variables are used to store a value and to later retrieve the stored value.
-
Local Variable
- "Local" to the plugin component (command, event listener, etc.) in which it is used
- e.g. if you use a local variable in a command then the value will be reset each time the command runs
-
Global Variable
- Keeps it value until the server stops
- Can be used across plugin components
-
Persistent Variable
- Same as a global variable except its value is saved across server restarts
- Saved in "plugins/YourPlugin/data.yml"
GMOD || Fuzio SCP : https://discord.gg/KBdNp3DCgj