skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
germanfndez/fiveai-skills104 installs

ox-inventory

Trigger: ox_inventory, items, stash, AddItem, RemoveItem, metadata, item registration, inventory hooks, shops. Server and client exports for ox_inventory.

How do I install this agent skill?

npx skills add https://github.com/germanfndez/fiveai-skills --skill ox-inventory
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill defines the operational contract for the ox_inventory FiveM resource. It provides clear instructions for server-side item management and client-side UI interaction. The documentation highlights security best practices, such as validating client data and performing capacity checks before concluding transactions. No malicious behavior or vulnerabilities were identified.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

ox_inventory

Slot-based inventory with weight, metadata, stashes, shops and hooks. Supports ox_core, esx and qbx_core.

Activation Contract

Load this skill when the user asks to give, take, count or check items, register a stash or shop, define a new item, react to inventory actions, or migrate from qb-inventory or esx inventory.

Hard Rules

  • Call everything through exports.ox_inventory:<fn>(...). There is no global table.
  • Grant, remove and count items on the SERVER only. Client exports are for display and UI decisions.
  • AddItem can fail. Always check the return value: the player may be over weight or out of slots.
  • Check CanCarryItem BEFORE taking payment or removing the traded item, never after.
  • Never invent item names. An item must exist in data/items.lua or it silently fails.
  • inv is a player source, an identifier, or a stash id. Passing the wrong one returns nil, not an error.
  • Metadata makes items non-stackable when it differs. Do not put volatile data in metadata.

Decision Gates

GoalCall
Give an itemAddItem(inv, item, count, metadata, slot)
Take an itemRemoveItem(inv, item, count, metadata, slot)
Check space firstCanCarryItem(inv, item, count, metadata)
How many does the player haveGetItemCount(inv, item, metadata, strict)
Read one slotGetSlot(inv, slot)
Find items across slotsSearch(inv, 'slots'|'count', item, metadata)
Persistent storageRegisterStash(...)
Short-lived storageCreateTemporaryStash(properties)
React to a player actionregisterHook(event, cb, options)

Execution Steps

  1. Confirm ox_inventory starts after ox_lib and the framework core.
  2. Decide the side: mutation is server, display is client.
  3. For a trade or reward, order the calls: CanCarryItem -> take payment -> AddItem -> verify the return.
  4. Define any new item in data/items.lua before referencing it. Read rules/items.md.
  5. Use hooks instead of polling when reacting to moves, opens or purchases.

Output Contract

Return runnable Lua using exports.ox_inventory, with the server/client split explicit. Include the data/items.lua entry whenever a new item is introduced.

References

  • rules/server-exports.md — item and inventory functions on the server.
  • rules/client-exports.md — weight, current weapon, opening inventories.
  • rules/items.md — defining items in data/items.lua.
  • rules/stashes.md — stashes, shops and temporary storage.
  • rules/hooks.md — registerHook and cancelling actions.

Upstream docs: https://overextended.dev/ox_inventory

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/germanfndez/fiveai-skills/ox-inventory">View ox-inventory on skillZs</a>