remove more unneeded functions

This commit is contained in:
Kakarot
2025-06-01 15:42:49 -05:00
parent 8f883ccd2a
commit 28753848dc
5 changed files with 10 additions and 147 deletions
+6 -5
View File
@@ -25,20 +25,21 @@ local function tPrint(tbl, indent)
end
end
RegisterServerEvent('QBCore:DebugSomething', function(tbl, indent, resource)
function QBCore.Debug(tbl, indent)
local resource = GetInvokingResource() or 'qb-core'
print(('\x1b[4m\x1b[36m[ %s : DEBUG]\x1b[0m'):format(resource))
tPrint(tbl, indent)
print('\x1b[4m\x1b[36m[ END DEBUG ]\x1b[0m')
end)
function QBCore.Debug(tbl, indent)
TriggerEvent('QBCore:DebugSomething', tbl, indent, GetInvokingResource() or 'qb-core')
end
function QBCore.ShowError(resource, msg)
print('\x1b[31m[' .. resource .. ':ERROR]\x1b[0m ' .. msg)
end
function QBCore.ShowWarning(resource, msg)
print('\x1b[33m[' .. resource .. ':WARNING]\x1b[0m ' .. msg)
end
function QBCore.ShowSuccess(resource, msg)
print('\x1b[32m[' .. resource .. ':LOG]\x1b[0m ' .. msg)
end