forked from Simnation/Main
ed
This commit is contained in:
parent
8110c00382
commit
05b2063db3
17 changed files with 1553 additions and 1 deletions
27
resources/[freizeit]/rubellose/shared/utils.lua
Normal file
27
resources/[freizeit]/rubellose/shared/utils.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
currentResourceName = GetCurrentResourceName()
|
||||
debugIsEnabled = GetConvarInt(('%s-debugMode'):format(currentResourceName), 0) == 1
|
||||
|
||||
function DebugPrint(...)
|
||||
if not debugIsEnabled then return end
|
||||
local args <const> = { ... }
|
||||
|
||||
local appendStr = ''
|
||||
for _, v in ipairs(args) do
|
||||
appendStr = appendStr .. ' ' .. tostring(v)
|
||||
end
|
||||
local msgTemplate = '^1[%s]^2(debugmode)^3%s^0'
|
||||
local finalMsg = msgTemplate:format(currentResourceName, appendStr)
|
||||
print(finalMsg)
|
||||
end
|
||||
|
||||
function Print(...)
|
||||
local args <const> = { ... }
|
||||
|
||||
local appendStr = ''
|
||||
for _, v in ipairs(args) do
|
||||
appendStr = appendStr .. ' ' .. tostring(v)
|
||||
end
|
||||
local msgTemplate = '^1[%s]^8(IMPORTANT)^3%s^0'
|
||||
local finalMsg = msgTemplate:format(currentResourceName, appendStr)
|
||||
print(finalMsg)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue