10 lines
		
	
	
		
			No EOL
		
	
	
		
			418 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			No EOL
		
	
	
		
			418 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
if config.framework ~= "esx" then return end
 | 
						|
if not config.useDefaultInventory then return end
 | 
						|
 | 
						|
-- esx is very bad, I can't access current inventory data from client
 | 
						|
tgiCore.cbFunction('tgiann-weapons-on-back:esx_inv:server:getInventory', function(source, cb)
 | 
						|
    local src = source
 | 
						|
    local xPlayer = tgiCore.getPlayer(src)
 | 
						|
    if not xPlayer then return end
 | 
						|
    cb(xPlayer.getInventory(), xPlayer.getLoadout())
 | 
						|
end) |