Browse docs
CodeM Inventory V2
Use this page only if your server runs CodeM Supreme Inventory V2
(codem-inventoryv2). Sky Base detects it automatically on ESX, QBCore and Qbox;
no custom adapter installation is needed. These steps prepare its items, images
and start order. The older codem-inventory uses the separate codem adapter.
Start order and selection
Install CodeM's resources using its installation guide. Start your framework and database connector first, followed by:
ensure codem-lib
ensure codem-inventory-images
ensure codem-inventoryv2
ensure sky_base
ensure sky_jobs_base
# Your Sky job resources follow.
Do not run ox_inventory alongside V2: CodeM provides that compatibility name itself.
In sky_base/config/config.lua, leave inventory = "auto" or select
inventory = "codemv2". Auto detection checks the real V2 resource before the Ox
compatibility name. This is a startup setting; restart Sky resources after changing it.
Items and images
Select codem-inventoryv2 on each resource's Inventory Items page or in the
setup generator. Paste the entries inside the returned table in
codem-inventoryv2/data/items.lua, then restart the inventory and the Sky resources
in their normal start order so usable items are registered again. Keep configured Sky
item names aligned with those entries.
The V2 templates use CodeM's documented Ox-format definitions with consume = 0
and no client block. Sky resources register the use callbacks and remove consumed
items at the appropriate point in their own actions. CodeM otherwise defaults to
consuming one item, and its CreateUsableItem callback is documented for items with
no client block. See item definitions
and server exports.
Copy supplied images to codem-inventory-images/images/, using the item name as the
filename. For Fire Job's hydrualic_spreader, copy the supplied
hydraulic_spreader.png as hydrualic_spreader.png.
CodeM's picture documentation
describes its separate image resource and optional custom paths. Sky Base's item-info
image URL uses that default resource; if you use custom image hosting, configure the
matching Jobs Base NUI image sources.
Fire Job only
Add WEAPON_SKY_HOSE to the existing Config.ignoreWeapons list in
codem-inventoryv2/shared/config.lua, preserving its other entries. CodeM documents
this list as the weapons excluded from its weapon-mismatch check; see
weapon settings.
Check the setup
Restart in the order above, then test a Sky usable item and confirm its image and
consumption behavior. Items must already exist in data/items.lua; adding them
requires an inventory restart. Verify item metadata and stash behavior with your
installed V2 version before distributing unique documents or containers.