enterFarm
exports["RiP-Weed"]:enterFarm(state, cb)
This function changes the client player's farm status and dimension.
We recomment to use this function only to remove a player from a farm in connection with fetchFarm()
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
state | Boolean | No | Player farm status |
cb | Function | Yes | Callback function |
Returned Boolean
true
on successfalse
on error with (optional) print
Example
exports["RiP-Weed"]:enterFarm(false, function(callback)
if callback then
print("player successfully left the farm")
end
end)