Exports
Open Menu in client side:
Server Exports
GetCoin
Returns the coin amount for a player
Parameters:
identifier
: Player's identifier (steam/license)
Returns:
Number: Player's coin amount
Example:
AddCoin
Adds coins to a player's balance
Parameters:
identifier
: Player's identifieramount
: Number of coins to add
Example:
RemoveCoin
Removes coins from a player's balance
Parameters:
identifier
: Player's identifieramount
: Number of coins to remove
Example:
SetCoin
Sets a player's coin balance
Parameters:
identifier
: Player's identifieramount
: New coin balance
Example:
Client Events
Open Menu Event
Opens the coin shop menu for the player
Example:
Integration Examples
Adding Coins on Player Join
Checking Coins Before Purchase
Custom Shop Integration
Database Integration
The script uses the following database structure:
ESX:
users
table withcoinVIP
columnQB-Core:
players
table withcoinVIP
column
Next Step: Would you like me to add more examples or specific integration scenarios?
Last updated