Skip to main content

getPlayerData

Retrieves player data. Optionally, you can pass a string to get a specific piece of data.
exports.lation_coke:getPlayerData(key)
key
string
The specific player data field you want to retrieve (e.g., "level", "exp", "gas_inputs"). If omitted, returns a table with all player data.

getPlantData

Retrieves plant data for a given plant ID.
exports.lation_coke:getPlantData(plantId)
plantId
number
required
The plant ID you want to retrieve data for.

getTableData

Retrieves table data for a given table ID.
exports.lation_coke:getTableData(tableId)
tableId
number
required
The table ID you want to retrieve data for.

getLabData

Retrieves lab data for a given lab ID.
exports.lation_coke:getLabData(labId)
labId
number
required
The lab ID you want to retrieve data for.

getAllLabs

Retrieves all labs data.
exports.lation_coke:getAllLabs()

getUserPermissions

Returns a table containing true or false for each permission the user has in a specific lab.
exports.lation_coke:getUserPermissions(labId)
labId
number
required
The lab ID you want to retrieve permissions for.

isLabAvailable

Returns true or false if the lab is available for sale.
exports.lation_coke:isLabAvailable(labId)
labId
number
required
The lab ID you want to check is available.

isOwner

Returns true or false if the player is the owner of the lab.
exports.lation_coke:isOwner(labId)
labId
number
required
The lab ID you want to check the player is an owner of.

isAuthUser

Returns true or false if the player is an authorized user of the lab.
exports.lation_coke:isAuthUser(labId)
labId
number
required
The lab ID you want to check the player is an authorized user of.
Looking for an export we don’t have listed here? Contact us and we’ll do what we can!