forked from Simnation/Main
ed
This commit is contained in:
parent
6a6c44143c
commit
e50a457657
31 changed files with 1135 additions and 764 deletions
|
@ -0,0 +1,28 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue