canEnter
Fires when a player tries to enter a shell or IPL property. Runs on the server, before the screen fades and the player is moved inside.
It runs after the built-in access check (door lock and keys). It does not fire for MLO properties or yard zones.
Payload
lua
- source:
numberServer id of the player - propertyId:
numberThe property id - propertyType:
string'shell'or'ipl' - owner:
stringOwner identifier, or the job name for a society property - ownerType:
string'user','society', or the government owner type for unowned properties - property:
tableThe server property object.property.propertyDataholds the full property data.
Example
lua
Return value
false: The player stays outside. No message is shown, so notify the player yourself if needed.- Anything else: The player enters.