Terminology

identifier is used to identify the character not the player.

ESX: identifier = identifier

QBCore: identifier = citizenid

OpenCEX

Open the exchange. Useful if you are making a custom script.

exports['LuxuCEX']:OpenCEX()


GetAllPlayerAssets

Get assets from all players

Server

local Players_CEX_Assets = exports['LuxuCEX']:GetAllPlayerAssets(identifier)
-- returns: {{identifier: char:331415a231, assets:{"BTC":10,"ETH":100,....}}}

GetPlayerAssets

Get a specified player's cex assets

Server

local PlayerCEXassets = exports['LuxuCEX']:GetPlayerAssets(identifier)
-- returns: {"BTC":10,"ETH":100,....}

UpdatePlayerAssets