> ## 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.

# Exports

> Use R_Casino exports to manage player casino coins

## Available Exports

<CardGroup cols={3}>
  <Card title="Add Coins" icon="plus">
    Give casino coins to a player
  </Card>

  <Card title="Remove Coins" icon="minus">
    Take coins from a player
  </Card>

  <Card title="Get Balance" icon="wallet">
    Check player's coin balance
  </Card>
</CardGroup>

## Add Coins

```lua theme={null}
exports['r_casino']:addCoinsToPlayer(source, amount)
```

### Example

```lua theme={null}
-- Reward player
exports['r_casino']:addCoinsToPlayer(1, 1000)
```

## Remove Coins

```lua theme={null}
exports['r_casino']:removeCoinsFromPlayer(source, amount)
```

### Example

```lua theme={null}
exports['r_casino']:removeCoinsFromPlayer(1, 100)
```

## Get Balance

```lua theme={null}
exports['r_casino']:getPlayerCoinBalance(source)
```

### Example

```lua theme={null}
local balance = exports['r_casino']:getPlayerCoinBalance(1)
print("Player has " .. balance .. " casino coins")
```

## Using R\_Store Coins

If integrated with R\_Store:

```lua theme={null}
-- In r_casino config.lua
R.UseRStoreCoins = true
R.RStoreResourceName = "r_store"
```

Then use R\_Store exports instead
