Skip to main content
Inventory 4.0

Server commands

Convert legacy ESX player inventories and accounts to Inventory 4.0.

Setup overview

Integration notes

Player data only

The conversion handles user inventories and accounts. Vehicle and other inventories are not converted.

Existing data remains

Running the command does not remove the old items table.

Registered items

Items must already be registered server-side with RegisterItem. Account items must use their original names, such as money.

Experimental command

This conversion is experimental. Items that exceed the available slots or maximum inventory weight are not added, even if the final response reports success.

Account money as items

Add the accounts that should be imported as inventory items.

Configuration

ESX account configuration

Configure account names that are registered as inventory items.

server/frameworks/esx.lua
local accountsAsItems = {
["money"] = true
}
Configuration

Convert ESX inventories

Run the conversion from the server terminal or through RCON.

Convert_ESX