LUADOC - Farming Simulator 19

AccessHandler

Description
Determines if a player has access to an object
Functions

canFarmAccess

Description
Determine if the currrent player can access given object
Definition
canFarmAccess(table object, integer farmId, boolean [optional])
Arguments
tableobject
integerfarmIdfarmId to check with (not NOBODY)
boolean[optional]Allow spectator farm when source and target farms are equal (0==0)

canFarmAccessLand

Description
Get whether given farm can access the land indicated by the (x,z) terrain location.
Definition
canFarmAccessLand()

canFarmAccessOtherId

Description
Get whether given farm can access an object with given farm id
Definition
canFarmAccessOtherId(farmId number, objctFarmId number)
Arguments
farmIdnumberFarm to test access for
objctFarmIdnumberFarmId of the object to test access against

canPlayerAccess

Description
Determine if the currrent player can access given object
Definition
canPlayerAccess(table object, table player)
Arguments
tableobject
tableplayeroptional player