addPlayerData
Adds an amount to a player’s specified data field (handles exp → level recalculation).number
required
The source (player ID) to add data to.
string
required
The data type to modify (e.g.,
"exp", "joints_rolled", "plants_grown").number
required
The amount to add to the specified data type.
getLevelData
Returns the configured experience/level table (level thresholds and rewards).getPlayerPlantCount
Returns the number of plants a player currently owns.number
required
The source (player ID) to count plants for.
getPlantData
Returns data for a single plant. Pass a property to retrieve a single field, or omit it to receive a copy of the full plant row (never the live cache).number
required
The plant’s unique ID.
string
A specific field to retrieve (e.g.,
"growth", "health", "stage", "bucketId"). If omitted, returns the full plant table.getAllPlants
Returns every plant on the server, keyed by plant ID. Each entry is a copy, so mutating the result won’t affect live plant data.purchaseLab
Purchases (or grants) a lab for a player. Use this to build your own lab-purchasing flow. Eligibility is still enforced (the lab must exist, the player must meet the level requirement, be under the per-player cap, and the lab must not already be owned).number
required
The source (player ID) to assign the lab to. Must be online.
string
required
The lab’s config key — the same keys defined in your labs config (e.g.,
"mission_row_1").table
Optional. Pass
{ skipPayment = true } to grant the lab without charging the player, so you can handle payment your own way. Defaults to charging the configured price.getLabBalance
Returns the current wallet balance of a lab.number
required
The lab’s numeric ID (assigned on purchase).
Looking for an export we don’t have listed here? Contact us and we’ll do what we can!
