Server
SetDoorState
Parameters
idnumber|string— door id. ox_doorlock also accepts the door name.lockedbooleansourcenumber— optional. qb-doorlock needs a player online and uses this one, or any online player.
Returns
boolean
Example
Bridge.SetDoorState('mrpd_front', false)GetDoorState
Parameters
idnumber|string
Returns
boolean|nil — true when locked. Always nil on doors_creator. qb-doorlock yields for up to 5 seconds while a player's client answers.
Example
if Bridge.GetDoorState('mrpd_front') then
print('locked')
end