233 Handcrafted Semi-Realistic Icons
All weapons (standard & Mk II), foods, vehicle components, and electronics redrawn.
coe_inventoryGrid Drag & Drop Inventory (233 New Icons)
Precision Tactical Grid Inventory with 233 Semi-Realistic Handcrafted Icons
Assault Rifle
Pistol 9mm
Medikit
Água
Smartphone
Pão
Lockpick
Kit Mecânico
Rádio
The most advanced inventory system in FiveM Enhanced. Features drag & drop grid slots, hotbar shortcuts 1 through 5, stack splitting, kilogram weight dynamics, and 233 custom semi-realistic icons featuring volumetric gradients, directional rim lighting, and projected shadows. Supports pockets, backpacks, gloveboxes, vehicle trunks, storage lockers, and secure bank vaults.
Hardware-accelerated rendering of 233 WebP/PNG 128x128 assets, instantaneous drag responsiveness with zero desync, and cryptographic anti-dupe audits.
All weapons (standard & Mk II), foods, vehicle components, and electronics redrawn.
Numerical keybinds to draw weapons or consume items without opening inventory.
Every item carries weight and durability; overburdening impairs citizen sprint speed.
Firearms accept authentic weapon mods (suppressors, scopes, flashlights, extended mags).
Vehicle trunks and glove compartments scale dynamically with car chassis specifications.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Built with vanilla HTML5, CSS3 tokens, and modern JavaScript. No heavyweight frameworks (React/Vue/Electron). Rendered directly in FiveM DX12's Chromium Embedded Framework at 0.00 ms while closed.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
coe_clean_containers
exports.coe_inventory:AddItem(id, itemName, count, metadata, requestedSlot)
coe_gc_containers [apply]
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_inventory']:CreateInventory(id, slotCount, maxWeight)
→ boolean, string|nil
Creates or initializes an inventory container. Persisted synchronously.
| Parameter | Type |
|---|---|
id | string |
slotCount | integer |
maxWeight | number |
local ok, detail = exports['coe_inventory']:CreateInventory(id, slotCount, maxWeight)exports['coe_inventory']:DeleteInventory(id)
→ boolean, string|nil
Deletes an inventory and flushes persistence.
| Parameter | Type |
|---|---|
id | string |
local ok, detail = exports['coe_inventory']:DeleteInventory(id)exports['coe_inventory']:GetInventory(id)
→ CoeInventory|nil, string|nil
Retrieves an inventory snapshot by its identifier.
| Parameter | Type |
|---|---|
id | string |
local ok, detail = exports['coe_inventory']:GetInventory(id)exports['coe_inventory']:GetSlot(id, slot)
→ table|nil, string|nil
Retrieves the item occupying a designated slot index.
| Parameter | Type |
|---|---|
id | string |
slot | integer |
local ok, detail = exports['coe_inventory']:GetSlot(id, slot)exports['coe_inventory']:SwapSlots(id, fromSlot, toSlot)
→ boolean, string|nil
Swaps two inventory slots. Uses deferred write-behind persistence (`Config.Server.flushIntervalMs`).
| Parameter | Type |
|---|---|
id | string |
fromSlot | integer |
toSlot | integer |
local ok, detail = exports['coe_inventory']:SwapSlots(id, fromSlot, toSlot)exports['coe_inventory']:SplitItem(id, slot, splitCount)
→ boolean, integer|string|nil
Splits an item stack into an empty slot. Uses write-behind persistence.
| Parameter | Type |
|---|---|
id | string |
slot | integer |
splitCount | integer |
local ok, detail = exports['coe_inventory']:SplitItem(id, slot, splitCount)exports['coe_inventory']:AddItem(id, itemName, count, metadata, requestedSlot)
→ boolean, integer|string|nil
Adds items to an inventory. Persisted synchronously.
| Parameter | Type |
|---|---|
id | string |
itemName | string |
count | integer |
metadata | table|string|nil |
requestedSlot | integer|nil |
local ok, detail = exports['coe_inventory']:AddItem(id, itemName, count, metadata, requestedSlot)exports['coe_inventory']:RemoveItem(id, slot, count)
→ boolean, string|nil
Removes a specific quantity from a slot. Persisted synchronously.
| Parameter | Type |
|---|---|
id | string |
slot | integer |
count | integer |
local ok, detail = exports['coe_inventory']:RemoveItem(id, slot, count)exports['coe_inventory']:UseItem(id, slot)
→ boolean, table|string|nil
Consumes a usable item from the designated slot. Persisted synchronously.
| Parameter | Type |
|---|---|
id | string |
slot | integer |
local ok, detail = exports['coe_inventory']:UseItem(id, slot)exports['coe_inventory']:SetItemMetadata(id, slot, patch)
→ boolean, string|nil
Merges metadata attributes into an item, preserving existing keys. Persisted synchronously.
| Parameter | Type |
|---|---|
id | string |
slot | integer |
patch | table |
local ok, detail = exports['coe_inventory']:SetItemMetadata(id, slot, patch)exports['coe_inventory']:GetItemCount(id, itemName, metadata, strict)
→ integer|nil, string|nil
Counts total quantity of an item matching optional metadata filters.
| Parameter | Type |
|---|---|
id | string |
itemName | string |
metadata | table|string|nil |
strict | boolean|nil |
local ok, detail = exports['coe_inventory']:GetItemCount(id, itemName, metadata, strict)exports['coe_inventory']:FlushInventory(id)
→ boolean, string|nil
Força a gravação imediata no banco de dados de um inventário com alterações de Write-Behind pendentes. Server.
| Parameter | Type |
|---|---|
id | string |
local ok, detail = exports['coe_inventory']:FlushInventory(id)exports['coe_inventory']:GetPersistenceStats()
→ CoePersistenceStats
Returns telemetry metrics for inventory write-behind persistence and memory cache.
No parameters.
local result = exports['coe_inventory']:GetPersistenceStats()exports['coe_inventory']:OpenStash(playerId, stashId, definition)
→ boolean, string|nil
Opens a persistent world stash container (`stash:
| Parameter | Type |
|---|---|
playerId | integer |
stashId | string |
definition | { |
local ok, detail = exports['coe_inventory']:OpenStash(playerId, stashId, definition)exports['coe_inventory']:RemoveItemByName(id, itemName, count)
→ boolean, string|nil
Removes `count` items by name, sweeping across occupied slots.
| Parameter | Type |
|---|---|
id | string |
itemName | string |
count | integer |
local ok, detail = exports['coe_inventory']:RemoveItemByName(id, itemName, count)exports['coe_inventory']:RemoveItemsByMetadata(id, itemName, filter)
→ integer|false, string|nil
Removes every unit of an item whose metadata contains `filter` (partial match), e.g. all keys of a vehicle.
| Parameter | Type |
|---|---|
id | string |
itemName | string |
filter | table |
local ok, detail = exports['coe_inventory']:RemoveItemsByMetadata(id, itemName, filter)exports['coe_inventory']:RegisterItem(definition)
→ boolean, string|nil
Dynamically registers an item definition into the active inventory catalog.
| Parameter | Type |
|---|---|
definition | table |
local ok, detail = exports['coe_inventory']:RegisterItem(definition)exports['coe_inventory']:Items()
→ table<string,
Returns the dictionary of all registered item definitions.
No parameters.
local ok, detail = exports['coe_inventory']:Items()exports['coe_inventory']:GetItem(name)
→ table|nil
Retrieves an item definition by its catalog name.
| Parameter | Type |
|---|---|
name | string |
local result = exports['coe_inventory']:GetItem(name)exports['coe_inventory']:GetContainerInventory(containerId)
→ CoeInventory|nil, string|nil
Retrieves inventory data for a non-player container.
| Parameter | Type |
|---|---|
containerId | string |
local ok, detail = exports['coe_inventory']:GetContainerInventory(containerId)exports['coe_inventory']:GetPlayerInventory(playerId)
→ CoeInventory|nil, string|nil
Retrieves the inventory associated with a player's active character.
| Parameter | Type |
|---|---|
playerId | integer |
local ok, detail = exports['coe_inventory']:GetPlayerInventory(playerId)exports['coe_inventory']:GetInventoryObject()
→ table
Returns the singleton inventory service engine instance.
No parameters.
local result = exports['coe_inventory']:GetInventoryObject()exports['coe_inventory']:GetEquippedWeapon(playerId)
→ integer|nil, string|nil
Retorna o hash da arma equipada pelo jogador (0 se desarmado), revalidando a posse física no inventário. Exige ACE coe.shield ou resource autorizado (coe_shield, coe_admin).
| Parameter | Type |
|---|---|
playerId | integer |
local ok, detail = exports['coe_inventory']:GetEquippedWeapon(playerId)[I]
Open/close inventory · +coe_core_inventory · rebindable in FiveM key bindings
[TAB]
Show quick hotbar (1-5) · +coe_core_hotbar_peek · rebindable in FiveM key bindings
[X]
Cancel item use · +coe_core_cancel_use · rebindable in FiveM key bindings
coe_clean_containers
Removes container props that are no longer registered from the world. server console
coe_gc_containers [apply]
Finds orphan containers in the database; with apply, deletes the records. server console
128×128 icons in WebP and PNG, with directional light, materials and drop shadow. Search by name or filter by category.