fivem/ · back to work

core-inventory

free / open-source

Lightweight inventory framework with item metadata, drag-drop UI, and stash/trunk support. MIT licensed, fork away.

⌥ view on githubdownload .zip
214 stars
MIT license
v2.4.1
updated 3 days ago

Installation

Clone into your resources folder and add it to your server config.

$ git clone https://github.com/irisyle/core-inventory
$ echo "ensure core-inventory" >> server.cfg

Configuration

Edit config.lua to set slot counts and weight limits.

Config.Slots = 40
Config.MaxWeight = 30000
Config.EnableStash = true

Usage / API

Server-side export to give an item to a player.

exports['core-inventory']:AddItem(source, 'water', 1)

Events

core-inventory:itemAdded — fired when an item is added
core-inventory:itemRemoved — fired when an item is removed

FAQ

Does this work with ESX/QBCore? Yes, adapters for both ship in the repo.

Support? Issues on GitHub or #support in Discord — best-effort, no SLA.