R_Store Tebex Integration
Tebex Integration
- Create Variable like this one.
- Create package and head to variables and select the license you just created.
- Add a new deliverable like this (keep in mind the 1000 used in picture is exsample this is the amount of coins a player will get)

STEP 1

sTEP 2

sTEP 3
R_Store export usage
Add coins TO a player
Adding Coins to a Player
EXPORT: addCoinsToPlayer
This function allows you to add a specified amount of coins to a player's balance.
Parameters:
amount: The number of coins you want to add to the player's account.playerId: This is used if you want to add coins to a player that is online.citizenId: This is used if you want to add coins to a player that is offline
Online exsample usage:
exports.r_store:addCoinsToPlayer(1000, 12)
Offline exsample usage:
exports.r_store:addCoinsToPlayer(1000, nil, "citizen_456")
Remove coins from a player
Removing Coins from a Player
EXPORT: removeCoinsFromPlayer
This function removes a specified number of coins from a player's balance.
Parameters:
amount: The number of coins you want to remove from the player's account.playerId: The player’s ID. you want to remove coins from
Exsample usage:
exports.r_store:removeCoinsFromPlayer(1000, 12)
Get players coins balance
Getting a Player’s Coin Balance
EXPORT: getPlayerCoinBalance
This function returns the current number of coins a player has.
Parameters:
playerId: The player’s ID. you want to get coins balance from.
Exsample usage:
exports.r_store:getPlayerCoinBalance(12)
R_Store Config


Copyright © R-Scripts 2023-2025 | All Rights Reserved.