Integrations
Export, key bindings and how it hooks into ox_inventory.
How it works
The add-on runs inside the ox_inventory resource. The interface (web/ko/) receives the same NUI messages as the original interface and uses ox_inventory's NUI callbacks. Its own actions run through ko_ui/server.lua and call ox_inventory's exports.
Export
| Export | Side | Description |
|---|---|---|
ox_inventory.koClothing | Client | Called when the clothing item is used and puts the piece on. Set it on the item as client = { export = 'ox_inventory.koClothing' } |
ox_inventory functions used
- Bags:
setContainerProperties - Throwing:
GetSlot,RemoveItem,CustomDrop - Card payment: hook
openShop,GetInventory,AddItem,RemoveItem,CanCarryItem,GetItemCount - Attachments: callback
ox_inventory:updateWeaponwith'component'
Key bindings
Players can change every key in the GTA settings under FiveM.
| Name | Default | Description |
|---|---|---|
ko_hotkey6 | 6 | Extra hotbar key, one per entry in KoUi.HotbarKeys |
ko_throw | G | Throw the weapon in hand |
ko_inv_close | ox_inventory's inventory key | Closes the inventory while the character preview runs |
Optional resources
| Resource | Used for |
|---|---|
| esx_status | Hunger and thirst bars |
| illenium-appearance | Clothing as items |
| esx_skin | Clothing as items, needs the exports GetSkin and SaveOutfit |
Was this page helpful?
