<aside> 💡 These exports are only meant to be used for the script's native currency.

</aside>

Get Player's Balance

Export name: GetCoinBalance

Params:

Returns:

Server Side

local src = 1
local result = exports["LuxuVipShop"]:GetCoinBalance(src)
print("Player 1 balance:", result)

Update Player's Balance

Export name: UpdateCoinBalance

Params:

Returns:

Server Side

-- Adding 100 coins to the player 1
local src = 1
local amount = 100
local operation = "add"

local result = exports["LuxuVipShop"]:UpdateCoinBalance(src, amount, operation)

if result then
   print('success')
else
   print('failed')
end

Open Menu Event