Skip to main content

Convert_ESX

You should execute this command from the Server Terminal to convert the old user inventories (ESX).

warning

This is a experimental function.

info

Executing this function will not remove the old items table, so your data wont be lost upon running this command.

info

This function does not converting vehicle and other inventories. (ONLY USER INVENTORY & ACCOUNTS)

This function will select the old items & accounts from the users table, then loops through them. The addable items should be registered on the Serverside with the RegisterItem function, if the item is not registered then it won't be added.

For importing the accounts properly, you should name the money items for the same as it was, so: "money", should be registered as item "money".

warning

If the inventory does not have enough slots, or the addable item would exceed the maximum weight of the player inventory, then the item is not added, but at the end you would still receive a "Successfully..." response"!

AccountMoney as items

Add your accounts here which you want to use them as items.

server/frameworks/esx.lua
local accountsAsItems = {
["money"] = true
}
Server Terminal (CMD) / (RCON)
Convert_ESX