Plantation
Exports
All client- & serversided exports included within this script. Exports provide callable functions that allow other resources to interact with this script's functionality.
If additional exports are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.
Server Exports
GetNearbyPlants
Returns a list of nearby plants within a given radius from a position.
exports['RxPlantation']:GetNearbyPlants(coords, distance)
coords
vector3
The center position to search from.
distance
number
The radius to search within.
UpdatePlant
exports['RxPlantation']:UpdatePlant(plantId, kvTable, updateDb)
plantId
number
The ID of the plant to be updated.
kvTable
table
A table containing key-value pairs for the plant's updated attributes.
updateDb
boolean
Whether to update the plant data in the database.
Client Exports
GetNearbyPlants
Returns a list of nearby plants within a given radius from a position.
exports['RxPlantation']:GetNearbyPlants(coords, distance)
coords
vector3
The center position to search from.
distance
number
The radius to search within.