Configuration

Notify

Notify = function(text, method)
    Your_Notify_Script(text, method)
end

Inventory

GetItemName = function(id, item)
    local itemData = exports.ox_inventory:GetItem(id, item) -- ox
    local itemData = exports['qb-inventory']:GetItemByName(id, item) -- qb
    return itemData and itemData.count or 0
end

AddItem = function(id, name, amount, meta)
    if amount > 0 then
        exports.ox_inventory:AddItem(id, name, amount) -- ox
        exports['qb-inventory']:AddItem(id, name, amount, false, meta) -- qb
    end
end

RemoveItem = function(id, name, amount)
    return exports.ox_inventory:RemoveItem(id, name, amount) and true or false -- ox
    return exports['qb-inventory']:RemoveItem(id, name, amount) and true or false -- qb
end

Support Another Inventory Scripts

Config

Last updated