28 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| 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
 | 
