⚙️Exports

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

Get Player's Balance

Export name: GetCoinBalance

Params:

  • id: number

Returns:

  • number or false

Server Side Example | Lua
local src = 1
local result = exports["LuxuVipShop"]:GetCoinBalance(src)
print("Player 1 balance:", result)

Update Player's Balance

Export name: UpdateCoinBalance

Params:

  • id: number

  • amount: number

  • operation: "add" or "remove" or "set"

Returns:

  • true or false

Server Side Example | Lua
-- 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

Last updated