##WIP ONE DAY ILL UPDATE THIS
If you wish to prevent debug prints in a live environment you can use this convar in the server.cfg
setr DisableDebug true
shared_scripts {
-- 'config/*.lua', --make you config load first
'@zero_utils/init.lua',
}
--for debug add Config.Debug.PrintDebug for debug prints to to show up when true
Config = {
Debug = {
PrintDebug = true,
}
}
--examples
printdb("Hello %s", "world") --will print "Hello World" only if you pass in a true value to the export
printdb(true, "Hello %s", "world") --will print "Hello World" will print regardless of whats passed if if first arg is true
printerr("This is an %s Error", "cool") -- will throw an error with set formatting.
printwarn("This is a %s warning", "final") -- will throw a warning with set formatting
printtable(Config) --will print out a table with pretty colors
Color --a list of colors available if you ever want to use them in prints