Lockable doors (rlx_doorlock)
Doors locked for everyone, opened by the right people. The state is a global meta: every player applies it, even those who arrive later.
- Config (
rlx_doorlock/shared/config.lua):job(jobs and gangs, a name or a list),onDuty,minGrade,item(a key card),citizenids(owners),permission(staff),autoLock(seconds),lockpick = false. Double doors: two entries indoors. The Mission Row police station doors are included as an example. - In game: E near the door ("[E] Unlock the door"); only the key holders see it. "Locked" / "Open" is written at the middle of the door (between both leaves of a double door) for everyone. Locked while still open, the door swings shut first, then locks. Alt on a locked door with a
lockpick: lockpicking. - Doors created in game (permission
rlx_doorlock.manage):/doorcreate, aim at the door (or both leaves): the aimed object is outlined in blue, the chosen leaves in green. E to pick, Enter to finish, then the form (name, jobs or gangs, item, state, auto-lock). They are saved by the resource, no file to edit./doorremovenear a door created in game,/doorsfor the list. - API (other server resources):
lsmp.call("rlx_doorlock:add", def)(a house, a heist door; not saved),:setLocked(id, bool),:isLocked,:remove,:get,:list. Events:rlx_doorlock:changed(id, locked, source),rlx_doorlock:lockpicked(source, id).