This commit is contained in:
Nordi98 2025-07-28 00:09:15 +02:00
parent 4485cc31df
commit 3afa513b4a
22 changed files with 1331 additions and 575 deletions

View file

@ -0,0 +1,10 @@
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)