SetDoorState
Opens, closes, locks or unlocks a door on every client.
Syntax
Section titled “Syntax”SetDoorState(key, open, locked)| Parameter | Type | |
|---|---|---|
key |
string | the door’s level name |
open |
boolean | open |
locked |
boolean | locked |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”SetDoorState(GATE, true, false) -- the gate opens for the roundSetTimer(function() SetDoorState(GATE, false, true) end, 30000)See also
Section titled “See also”GetDoorState · OnPlayerUseDoor · the Doors and containers group of the index
