SetGarageOpen
Jump to navigation
Jump to search
This function opens or closes the specified garage door in the world.
Syntax
void setGarageOpen ( int garageID, bool open )
Required Arguments
- garageID: The ID that represents the garage door being opened or closed.
- isOpen: A boolean indicating whether or not to open the door.
Returns
This function does not return anything.
Example
Click to collapse [-]
ServerThis example opens a garage door when a player enters a collision shape near it:
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function (resource) end )