Skip to main content

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

NameTypeOptionalExplenation
stateBooleanNoPlayer farm status
cbFunctionYesCallback function

Returned Boolean

  • true on success
  • false on error with (optional) print

Example

exports["RiP-Weed"]:enterFarm(false, function(callback)
if callback then
print("player successfully left the farm")
end
end)