Documentation Index
Fetch the complete documentation index at: https://docs.r-scripts.net/llms.txt
Use this file to discover all available pages before exploring further.
Available Exports
Add Coins
Give casino coins to a player
Remove Coins
Take coins from a player
Get Balance
Check player’s coin balance
Add Coins
exports['r_casino']:addCoinsToPlayer(source, amount)
Example
-- Reward player
exports['r_casino']:addCoinsToPlayer(1, 1000)
Remove Coins
exports['r_casino']:removeCoinsFromPlayer(source, amount)
Example
exports['r_casino']:removeCoinsFromPlayer(1, 100)
Get Balance
exports['r_casino']:getPlayerCoinBalance(source)
Example
local balance = exports['r_casino']:getPlayerCoinBalance(1)
print("Player has " .. balance .. " casino coins")
Using R_Store Coins
If integrated with R_Store:
-- In r_casino config.lua
R.UseRStoreCoins = true
R.RStoreResourceName = "r_store"
Then use R_Store exports instead