Skip to main content

AddPlayerData

Adds an amount to a player’s specified data field.
exports.lation_weed:AddPlayerData(source, type, amount)
source
string
required
The source (player ID) to add data too.
type
string
required
The data type to modify (e.g., "exp", "joints_rolled", "plants_grown").
amount
number
required
The amount to add to the specified data type.
Looking for an export we don’t have listed here? Contact us and we’ll do what we can!