πInventory
Step 1: Finding the inventory system
AddItem
local ox_inv = GetResourceState('ox_inventory') == 'started'
function AddItem(Player, item, amount)
if ox_inv then
local canCarry = exports.ox_inventory:CanCarryItem(source, item, amount)
if canCarry then
exports.ox_inventory:AddItem(Player.PlayerData.source, item, amount)
else
print('You cannot carry this!')
end
else
Player.Functions.AddItem(item, amount)
end
endItemCount
Step 2: Change all exports & ox-related stuff
QS Inventory
Step 3: Testing
Last updated