Main/resources/[inventory]/mr-consumables/open/shared/sh_functions.lua
2025-06-07 08:51:21 +02:00

15 lines
496 B
Lua

function GetCoreObject()
return exports[Config.Framework.Resource]:GetCoreObject()
end
function DebugPrint(level, text)
print(string.format("[%s]: %s ERROR: %s", GetCurrentResourceName(), level, text))
end
function GetCoreItems()
if Config.Inventory.Name == "qs" then
return exports[Config.Inventory.Resource]:Items()
elseif Config.Inventory.Name == "qb" then
return Core.Shared.Items -- The Var "Core" Is Getting Initiated When The Script Is Loaded
end
end