Custom Inventory
This guide is for developers who want to use an inventory system that is not natively supported by GKS Tablet (currently ox_inventory is built-in). You need basic Lua knowledge to complete these steps
Overview
Side
Path
1. Configuration
Config.InventoryScript = "custom" -- must match your adapter file guard
Config.TabletItemRequire = true -- require tablet item to open
Config.TabletItemName = "tablet" -- item name in your inventoryInventoryScript options
Value
Behavior
MDT case evidence stash (optional)
2. Server-Side Integration
Required function: HasTabletItem
Optional functions: RegisterStash / OpenStash
Register usable item (framework fallback)
3. Client-Side Integration
Required function: HasTabletItem
Item use export (recommended for export-based inventories)
Handle item removal
Handle stash open (optional)
4. Full Reference Example
Server (server/inventory/custom.lua)
Client (client/inventory/custom.lua)
Last updated