createDoor
Fires when a player creates a door for a property. Runs on the server.
It fires twice for one door: when the player starts the door creator, and again when the new door is saved. Editing an existing door does not fire it. It runs after the key check (manage_property_doors) and, for shell and IPL properties, after the yard zone check.
Payload
lua
- source:
numberServer id of the player creating the door - player:
tableFramework player object of the player - propertyId:
numberThe property id
Example
lua
Return value
false: Block the door. The player sees "You are not authorized to create doors".- Anything else: The door can be created.