Exports

This page lists all cd_vipshop exports, along with their purpose, parameters, and usage examples. All events are located in the [cd_vipshop/integrations] folder.

circle-info

Note

These exports are entirely optional and can be used as needed within your own scripts or integrations.


Server

Get Balance

Returns a player’s VIP balance.

@parameters
--- @param number source The player source.
--- @return number balance The players VIP balance.

--- @example
local balance = exports['cd_vipshop']:GetVipBalance(source)
print('VIP Balance:', balance)
local balance = exports['cd_vipshop']:GetVipBalance(source)


Add Balance

Adds VIP tokens to a player.


Remove Balance

Removes VIP tokens from a player.


Can Purchase Check

Checks whether a player can afford a purchase.

Last updated

Was this helpful?