T2 // Gameplay & Base

coe_inventory

Grid Drag & Drop Inventory (233 New Icons)

Precision Tactical Grid Inventory with 233 Semi-Realistic Handcrafted Icons

INTERFACE // GRID DRAG & DROP INTERATIVO
CIDADÃO // STATEID #1001
24.5 / 50.0 KG (49%)
HOTBAR // SLOTS RÁPIDOS [1 A 5] Atalhos 1 a 5
1 4.5kg Assault Rifle Assault Rifle
2 1.2kg Pistol 9mm Pistol 9mm
3 0.8kg Medikit Medikit
4 0.5kg Água Água
5 0.3kg Smartphone Smartphone
MOCHILA TÁTICA // ARRASTE ITENS Drag & Drop Ativo
0.2kg Pão Pão
0.4kg Lockpick Lockpick
6.0kg Kit Mecânico Kit Mecânico
0.6kg Rádio Rádio
Assault Rifle Mk II 4.5 kg · Item selecionado
01 // OVERVIEW

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.

On FiveM Enhanced

Hardware-accelerated rendering of 233 WebP/PNG 128x128 assets, instantaneous drag responsiveness with zero desync, and cryptographic anti-dupe audits.

02 // FEATURES

What the module delivers

01

233 Handcrafted Semi-Realistic Icons

All weapons (standard & Mk II), foods, vehicle components, and electronics redrawn.

02

Fast Hotbar 1 through 5

Numerical keybinds to draw weapons or consume items without opening inventory.

03

Kilogram Weight Physics

Every item carries weight and durability; overburdening impairs citizen sprint speed.

04

Parametric Weapon Attachments

Firearms accept authentic weapon mods (suppressors, scopes, flashlights, extended mags).

05

Trunks & Storage Vaults

Vehicle trunks and glove compartments scale dynamically with car chassis specifications.

ARCHITECTURAL LAYERS // CLEAN ARCHITECTURE

4-Layer Isolation with 0.00 ms Idle

Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:

L4
Presentation & NUI
HTML5 · CSS tokens · CoE UI
CEF DX12
L3
Application & Server
Atomic locks · Rate limiting
Auth Server
L2
Platform & HAL
Core.Platform · Mock natives
Gen9 HAL
L1
Domain & ACID Database
Prepared SQL · MariaDB pool
ACID Pool
LAYER 04 // PRESENTATION & NUI

Responsive NUI & CoE UI Design System

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.

Five themes supported in real time through CSS variables (--coe-accent, --coe-surface)
Fully keyboard-navigable (Tab, Esc, Enter) and ARIA-accessible
Secure asynchronous communication with the FiveM client via fetch("https://...")
ADMIN POWERS // OPERATION & MANAGEMENT

What this script delivers to Server Owners

Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:

🧹
Container cleanup
Removes orphan container props from the world (server console).
coe_clean_containers
🎁
Granting items
Grants items through an export, with metadata and an optional slot.
exports.coe_inventory:AddItem(id, itemName, count, metadata, requestedSlot)
🗄️
Orphan records
Finds orphan containers in the database and deletes them with apply.
coe_gc_containers [apply]
03 // EXPORTS

Public API 23

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.

ParameterType
idstring
slotCountinteger
maxWeightnumber
LUA
local ok, detail = exports['coe_inventory']:CreateInventory(id, slotCount, maxWeight)
exports['coe_inventory']:DeleteInventory(id) → boolean, string|nil

Deletes an inventory and flushes persistence.

ParameterType
idstring
LUA
local ok, detail = exports['coe_inventory']:DeleteInventory(id)
exports['coe_inventory']:GetInventory(id) → CoeInventory|nil, string|nil

Retrieves an inventory snapshot by its identifier.

ParameterType
idstring
LUA
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.

ParameterType
idstring
slotinteger
LUA
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`).

ParameterType
idstring
fromSlotinteger
toSlotinteger
LUA
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.

ParameterType
idstring
slotinteger
splitCountinteger
LUA
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.

ParameterType
idstring
itemNamestring
countinteger
metadatatable|string|nil
requestedSlotinteger|nil
LUA
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.

ParameterType
idstring
slotinteger
countinteger
LUA
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.

ParameterType
idstring
slotinteger
LUA
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.

ParameterType
idstring
slotinteger
patchtable
LUA
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.

ParameterType
idstring
itemNamestring
metadatatable|string|nil
strictboolean|nil
LUA
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.

ParameterType
idstring
LUA
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.

LUA
local result = exports['coe_inventory']:GetPersistenceStats()
exports['coe_inventory']:OpenStash(playerId, stashId, definition) → boolean, string|nil

Opens a persistent world stash container (`stash:`) for a player. The caller governs access control; the inventory engine enforces proximity to `position`. Creates the container on initial interaction.

ParameterType
playerIdinteger
stashIdstring
definition{
LUA
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.

ParameterType
idstring
itemNamestring
countinteger
LUA
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.

ParameterType
idstring
itemNamestring
filtertable
LUA
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.

ParameterType
definitiontable
LUA
local ok, detail = exports['coe_inventory']:RegisterItem(definition)
exports['coe_inventory']:Items() → table<string,

Returns the dictionary of all registered item definitions.

No parameters.

LUA
local ok, detail = exports['coe_inventory']:Items()
exports['coe_inventory']:GetItem(name) → table|nil

Retrieves an item definition by its catalog name.

ParameterType
namestring
LUA
local result = exports['coe_inventory']:GetItem(name)
exports['coe_inventory']:GetContainerInventory(containerId) → CoeInventory|nil, string|nil

Retrieves inventory data for a non-player container.

ParameterType
containerIdstring
LUA
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.

ParameterType
playerIdinteger
LUA
local ok, detail = exports['coe_inventory']:GetPlayerInventory(playerId)
exports['coe_inventory']:GetInventoryObject() → table

Returns the singleton inventory service engine instance.

No parameters.

LUA
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).

ParameterType
playerIdinteger
LUA
local ok, detail = exports['coe_inventory']:GetEquippedWeapon(playerId)
04 // COMMANDS

In-game commands 5

[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

GALLERY // 233 ICONS

Every inventory icon

128×128 icons in WebP and PNG, with directional light, materials and drop shadow. Search by name or filter by category.

Displaying 233 of 233 icons
Acessório: Barrel
Acessório: Barrel
Acessório: Clip Drum
Acessório: Clip Drum
Acessório: Clip Extended
Acessório: Clip Extended
Acessório: Clip Extended2
Acessório: Clip Extended2
Acessório: Flashlight
Acessório: Flashlight
Acessório: Grip
Acessório: Grip
Acessório: Muzzle Bell
Acessório: Muzzle Bell
Acessório: Muzzle Fat
Acessório: Muzzle Fat
Acessório: Muzzle Flat
Acessório: Muzzle Flat
Acessório: Muzzle Heavy
Acessório: Muzzle Heavy
Acessório: Muzzle Precision
Acessório: Muzzle Precision
Acessório: Muzzle Slanted
Acessório: Muzzle Slanted
Acessório: Muzzle Split
Acessório: Muzzle Split
Acessório: Muzzle Squared
Acessório: Muzzle Squared
Acessório: Muzzle Tactical
Acessório: Muzzle Tactical
Acessório: Scope Advanced
Acessório: Scope Advanced
Acessório: Scope Holo
Acessório: Scope Holo
Acessório: Scope Large
Acessório: Scope Large
Acessório: Scope Medium
Acessório: Scope Medium
Acessório: Scope Nv
Acessório: Scope Nv
Acessório: Scope Small
Acessório: Scope Small
Acessório: Scope Thermal
Acessório: Scope Thermal
Acessório: Suppressor
Acessório: Suppressor
Acidpackage
Acidpackage
Advancedrifle
Advancedrifle
Appistol
Appistol
Assaultrifle
Assaultrifle
Assaultrifle mk ii
Assaultrifle mk ii
Assaultshotgun
Assaultshotgun
Assaultsmg
Assaultsmg
Autoshotgun
Autoshotgun
Ball
Ball
Bat
Bat
Battleaxe
Battleaxe
Bottle
Bottle
Bread
Bread
Briefcase
Briefcase
Briefcase 02
Briefcase 02
Bullpuprifle
Bullpuprifle
Bullpuprifle mk ii
Bullpuprifle mk ii
Bullpupshotgun
Bullpupshotgun
Bzgas
Bzgas
Candycane
Candycane
Carbinerifle
Carbinerifle
Carbinerifle mk ii
Carbinerifle mk ii
Ceramicpistol
Ceramicpistol
Combatmg
Combatmg
Combatmg mk ii
Combatmg mk ii
Combatpdw
Combatpdw
Combatpistol
Combatpistol
Combatshotgun
Combatshotgun
Compactlauncher
Compactlauncher
Compactrifle
Compactrifle
Crowbar
Crowbar
Dagger
Dagger
Dbshotgun
Dbshotgun
Digiscanner
Digiscanner
Doubleaction
Doubleaction
Emplauncher
Emplauncher
Fertilizercan
Fertilizercan
Fireextinguisher
Fireextinguisher
Firework
Firework
Flare
Flare
Flaregun
Flaregun
Flashlight
Flashlight
Gadgetpistol
Gadgetpistol
Garbagebag
Garbagebag
Gas
Gas
Golfclub
Golfclub
Grenade
Grenade
Grenadelauncher
Grenadelauncher
Grenadelauncher Smoke
Grenadelauncher Smoke
Gusenberg
Gusenberg
Hammer
Hammer
Handcuffs
Handcuffs
Hatchet
Hatchet
Hazardcan
Hazardcan
Heavypistol
Heavypistol
Heavyrifle
Heavyrifle
Heavyshotgun
Heavyshotgun
Heavysniper
Heavysniper
Heavysniper mk ii
Heavysniper mk ii
Hominglauncher
Hominglauncher
Knife
Knife
Knuckle
Knuckle
Machete
Machete
Machinepistol
Machinepistol
Marksmanpistol
Marksmanpistol
Marksmanrifle
Marksmanrifle
Marksmanrifle mk ii
Marksmanrifle mk ii
Metaldetector
Metaldetector
Mg
Mg
Microsmg
Microsmg
Militaryrifle
Militaryrifle
Minigun
Minigun
Minismg
Minismg
Molotov
Molotov
Musket
Musket
Navyrevolver
Navyrevolver
Nightstick
Nightstick
Petrolcan
Petrolcan
Pipebomb
Pipebomb
Pistol
Pistol
Pistol mk ii
Pistol mk ii
Pistol50
Pistol50
Pistolxm3
Pistolxm3
Poolcue
Poolcue
Precisionrifle
Precisionrifle
Proxmine
Proxmine
Pumpshotgun
Pumpshotgun
Pumpshotgun mk ii
Pumpshotgun mk ii
Railgun
Railgun
Railgunxm3
Railgunxm3
Raycarbine
Raycarbine
Rayminigun
Rayminigun
Raypistol
Raypistol
Revolver
Revolver
Revolver mk ii
Revolver mk ii
Rpg
Rpg
Sawnoffshotgun
Sawnoffshotgun
Smg
Smg
Smg mk ii
Smg mk ii
Smokegrenade
Smokegrenade
Sniperrifle
Sniperrifle
Snowball
Snowball
Snspistol
Snspistol
Snspistol mk ii
Snspistol mk ii
Specialcarbine
Specialcarbine
Specialcarbine mk ii
Specialcarbine mk ii
Stickybomb
Stickybomb
Stone Hatchet
Stone Hatchet
Stungun
Stungun
Switchblade
Switchblade
Tecpistol
Tecpistol
Vintagepistol
Vintagepistol
Wrench
Wrench
Câmera Profissional
Câmera Profissional
Microfone Boom
Microfone Boom
Microfone Weazel News
Microfone Weazel News
Água Mineral 500ml
Água Mineral 500ml
Barra de Cereal
Barra de Cereal
Barra de Chocolate
Barra de Chocolate
Batata Frita
Batata Frita
Café Expresso Quente
Café Expresso Quente
Caixa de Pizza
Caixa de Pizza
Cerveja Artesanal
Cerveja Artesanal
Energético Nitro
Energético Nitro
Fatia de Pizza
Fatia de Pizza
Garrafa de Vodka
Garrafa de Vodka
Garrafa de Whisky
Garrafa de Whisky
Hambúrguer Artesanal
Hambúrguer Artesanal
Hambúrguer de Frango
Hambúrguer de Frango
Mostarda
Mostarda
Pacote de Batatas Chips
Pacote de Batatas Chips
Pizza de Presunto
Pizza de Presunto
Refrigerante eCola
Refrigerante eCola
Refrigerante Sprunk
Refrigerante Sprunk
Rosquinha Recheada
Rosquinha Recheada
Sanduíche Natural
Sanduíche Natural
Cartão Bancário
Cartão Bancário
Dinheiro Sujo
Dinheiro Sujo
Documento de Identidade
Documento de Identidade
Notas de Dinheiro ($)
Notas de Dinheiro ($)
Carteira Cripto em Papel
Carteira Cripto em Papel
Computador Desktop
Computador Desktop
Ledger Cripto USB
Ledger Cripto USB
Notebook Portátil
Notebook Portátil
Pen Drive com Sistema Tor
Pen Drive com Sistema Tor
Pen Drive Criptografado
Pen Drive Criptografado
Rádio Comunicador Cbx
Rádio Comunicador Cbx
Servidor Doméstico
Servidor Doméstico
Smartphone CoE OS
Smartphone CoE OS
Abraçadeira Plástica Reforçada
Abraçadeira Plástica Reforçada
Chave Antiga
Chave Antiga
Chave de Veículo
Chave de Veículo
Chave Residencial
Chave Residencial
Galão de Combustível 20L
Galão de Combustível 20L
Hambúrguer Descartado
Hambúrguer Descartado
Kit de Ferramentas Mecânicas
Kit de Ferramentas Mecânicas
Lata de Lixo
Lata de Lixo
Lixo Urbano
Lixo Urbano
Lockpick de Aço
Lockpick de Aço
Panties
Panties
Pão Descartado
Pão Descartado
Paraquedas
Paraquedas
Saco de Lixo
Saco de Lixo
Saco de Papel
Saco de Papel
Salgadinho Descartado
Salgadinho Descartado
Cigarro
Cigarro
Cigarros Redwood
Cigarros Redwood
Ingrediente: Cheese
Ingrediente: Cheese
Ingrediente: Dough
Ingrediente: Dough
Ingrediente: Meat
Ingrediente: Meat
Ingrediente: Potato
Ingrediente: Potato
Borracha Industrial
Borracha Industrial
Polímero Plástico
Polímero Plástico
Sucata Metálica
Sucata Metálica
Tecido de Algodão
Tecido de Algodão
Analgésicos Frasco
Analgésicos Frasco
Bandagem Estéril
Bandagem Estéril
Colete Balístico
Colete Balístico
Kit Avançado
Kit Avançado
Kit Médico Primeiros Socorros
Kit Médico Primeiros Socorros
Munição 22
Munição 22
Munição 38
Munição 38
Munição 44
Munição 44
Munição 45
Munição 45
Munição 50
Munição 50
Munição 9
Munição 9
Munição BEANBAG
Munição BEANBAG
Munição EMP
Munição EMP
Munição FIREWORK
Munição FIREWORK
Munição FLARE
Munição FLARE
Munição GRENADE
Munição GRENADE
Munição HEAVYSNIPER
Munição HEAVYSNIPER
Munição LASER
Munição LASER
Munição MUSKET
Munição MUSKET
Munição RAILGUN
Munição RAILGUN
Munição RIFLE
Munição RIFLE
Munição RIFLE2
Munição RIFLE2
Munição ROCKET
Munição ROCKET
Munição SHOTGUN
Munição SHOTGUN
Munição SNIPER
Munição SNIPER
Cocaína
Cocaína
Maconha Hidropônica
Maconha Hidropônica
Metanfetamina
Metanfetamina
Peça: Air Filter
Peça: Air Filter
Peça: Brake Discs
Peça: Brake Discs
Peça: Brake Pads
Peça: Brake Pads
Peça: Clutch
Peça: Clutch
Peça: Engine Oil
Peça: Engine Oil
Peça: Spark Plugs
Peça: Spark Plugs
Peça: Suspension
Peça: Suspension