1
0
Fork 0
forked from Simnation/Main
Main/resources/[Developer]/[Nordi]/tgiann-weapons-on-back/checkInv.lua

29 lines
836 B
Lua
Raw Normal View History

2025-07-28 00:09:15 +02:00
config.useDefaultInventory = true
local function log(msg)
print(string.format('\x1b[32m[tgiann-weapons-on-back]\x1b[0m %s', msg))
end
-- Chezza Studios inventory works fine with normal esx(don't add to the list)
local inventorys = {
"tgiann-inventory",
"mf-inventory",
"ox_inventory",
"core_inventory",
"qs-inventory",
"codem-inventory",
"origen_inventory"
}
for i = 1, #inventorys do
local inventory = inventorys[i]
local isStarted = GetResourceState(inventory) == "started"
if isStarted then
config[inventory] = true
config.useDefaultInventory = false
log(string.format("Started with %s inventory", inventory))
end
end
if config.useDefaultInventory then log(string.format("Started with %s default inventory", config.framework == "qb" and "QB" or "ESX")) end