forked from TES3MP/CoreScripts
-
Notifications
You must be signed in to change notification settings - Fork 1
variables
HebiKotei edited this page Feb 26, 2023
·
2 revisions
Variables that you do not intend to change (a constant), should follow the following naming scheme.
local MY_CONSTANT = "constant value"
MY_GLOBAL_CONSTANT = "another constant value"
local myVariable = "variable value"
MyGlobalVariable = "global variable value"
local function printValues(map)
for _, v in pairs(map) do
print(v)
end
end
Always keep variables close to where they are used and grouped together. Global variables should be grouped together and declared at the top of a file (or in a seperate file).