> ## Documentation Index
> Fetch the complete documentation index at: https://lationscripts.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Coke - Exports - Server

> All exports available on the server

### addPlayerData

Adds an amount to a player’s specified data field.

```lua theme={null}
exports.lation_coke:addPlayerData(source, type, amount)
```

<ParamField path="source" type="string" required>
  The source (*player ID*) to add data too.
</ParamField>

<ParamField path="type" type="string" required>
  The data type to modify (e.g., `"level"`, `"exp"`, etc).
</ParamField>

<ParamField path="amount" type="number" required>
  The amount to add to the specified data type.
</ParamField>

### buyLab

Purchase a lab for a given player.

```lua theme={null}
exports.lation_coke:buyLab(source, labId)
```

<ParamField path="source" type="string" required>
  The source (*player ID*) buying the lab.
</ParamField>

<ParamField path="labId" type="number" required>
  The lab ID being purchased.
</ParamField>

<Note>
  Looking for an export we don’t have listed here? Contact us and we’ll do what we can!
</Note>
