Exports

Open Menu in client side:

TriggerEvent('ata_coinshop:openMenu')

Server Exports

GetCoin

exports['ata_coinshop']:GetCoin(identifier)

Returns the coin amount for a player

  • Parameters:

    • identifier: Player's identifier (steam/license)

  • Returns:

    • Number: Player's coin amount

  • Example:

local coins = exports['ata_coinshop']:GetCoin('steam:123456789')

AddCoin

exports['ata_coinshop']:AddCoin(identifier, amount)

Adds coins to a player's balance

  • Parameters:

    • identifier: Player's identifier

    • amount: Number of coins to add

  • Example:

RemoveCoin

Removes coins from a player's balance

  • Parameters:

    • identifier: Player's identifier

    • amount: Number of coins to remove

  • Example:

SetCoin

Sets a player's coin balance

  • Parameters:

    • identifier: Player's identifier

    • amount: 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 with coinVIP column

  • QB-Core: players table with coinVIP column

Next Step: Would you like me to add more examples or specific integration scenarios?

Last updated