Client-side

Client exports

GetItemList - Get the list of items from qs-inventory.

-- Get the full table of shared/items.lua
exports['qs-inventory']:GetItemList()

GetWeaponList - Get the list of weapons from qs-inventory.

-- Get the full table of shared/weapons.lua
exports['qs-inventory']:GetWeaponList()

setInventoryDisabled - Enable or disable the use of inventory

-- bool: boolean that validates whether or not you can use the inventory
exports['qs-inventory']:setInventoryDisabled(bool)

getUserInventory - Check the player's inventory, useful for checking items or meta items.

-- Use it client-side if you want to search the player's inventory
exports['qs-inventory']:getUserInventory()

RegisterStash - Create stashes with a simple export.

-- stash: stash identifier
-- slots: Total stash slots
-- weight: Total stash space
exports['qs-inventory']:RegisterStash(stash, slots, weight) 

setInClothing - Enable/disable the loop that checks for clothes as an item.

-- bool: Enable/disable the items clothes check loop
exports['qs-inventory']:setInClothing(bool)

WeaponWheel - Enable/Disable the weapon wheel and disable inventory, used in minigames.

-- bool: boolean that defines whether to enable or disable weapon wheel
exports['qs-inventory']:WeaponWheel(bool) 

Search - Search items count in your client-side events.

-- item: item count to search (client-side)
exports['qs-inventory']:Search('bread')

-- example:
RegisterCommand('checkclientitem', function()
    local result = exports['qs-inventory']:Search('money')

    if result then
        print('Result:', result)
    end
end)

Last updated