Question
dan2735 opened this issue · 2 comments
Wouldn't having all the setting variables be global cause issues?
No because only 3 are shared the rest are server sided. It would only be a problem if other addons on your server used the same string name.
The only reason I removed them from being local values is because of the split I made between the two "if SERVER then" statements.
Example :
if SERVER then local value = "lol" end
--Can't be read from a separate statement.
if SERVER then print(value) end
To print the value will return nil.
In the next update I release on the script I localized the shared settings. As well as a few others I missed. As well as to allow the script to work on servers that don't use ULX. But I recommend to not localize any of the settings inside the "If SERVER" block or you will find you break the script and it won't work.