For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inventory items

There are two ways of setting up inventory items. You can use the integrated Asset Deployer that automatically inserts items into your database (for mf-inventory and es_extended), or you can do all necessary edits Manually.

  • Item definitions can be found at rcore_prison/inventory_items.lua

  • Item images are located in rcore_prison/assets/inventoryImages/

Asset Deployer

The Asset Deployer automatically inserts SQL items into your database.

Available deploys:

  • Resource: mf-inventory

    • items

  • Resource: es_extended

    • items

Running deploy

Execute command prisonsetup <deploy-resource> [name] in server console, where deploy-resource is needed and represents resource from Available Deploys and name is optional (if it's not filled, all deploys for resource will be deployed)_ and represents specific deploy for resource.

Manually

ox_inventory

  1. Open ox_inventory/data/items.lua file.

  2. Add these items:

  1. Copy images from rcore_prison/assets/inventoryImages/ to ox_inventory/web/images/.

  2. Restart your server. Server need to be restarted for proper registration of usable items!

qb-inventory / qs-inventory / aj-inventory / lj-inventory / ps-inventory

  1. Open qb-core/shared/items.lua / qs-inventory/shared/items.lua file.

  2. Add these items:

  1. Copy images from rcore_prison/assets/inventoryImages/ to qb-inventory/html/images/ / qs-inventory/html/images/.

  2. Restart your server. Server need to be restarted for proper registration of usable items!

mf-inventory

  1. Use asset deployer command, that insert SQL items to database - prisonsetup mf-inventory items.

es_extended (default esx inventory)

  1. Use asset deployer command, that insert SQL items to database - prisonsetup es_extended items.

Last updated