1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-29 22:15:20 +02:00
parent 8110c00382
commit 05b2063db3
17 changed files with 1553 additions and 1 deletions

View 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