Esc to clear, Enter to open the best match, click an export to open it in its page
Properties & Doors

Doors

Take control of any door in the game world: save it, lock it and decide who may open it. Each saved door has an E prompt on its handles within Config.DoorInteractRange (3 m), and the server decides every lock and unlock.

Declaring your resource's doors

A map, MLO or job resource declares its doors with EnsureDoors: the list is your whole set, each door named by a key. Every start, new keys are made, changed ones updated and dropped ones released.

-- Server, inside Whip.register
Whip.core:EnsureDoors({
    { key = 'front', label = 'PD Front Door', folder = 'Mission Row PD',
      model = 631614199, coords = vector4(434.7, -980.6, 30.7, 180.0),
      requirements = { jobs = { 'police', 'ems' }, lockpick = true } },
}, { label = 'Mission Row PD' })

exports.whip_core:SetDoorLocked({ key = 'front' }, false)

To save one door and leave it to admins, use CreateDoor; to hold one only while a heist runs, HoldDoor. Link two leaves of a double door with link, LinkDoors or the Door Editor, and they lock together.

Who may open a door#

A door's requirements are any-of: one match lets a player in. A door with none opens for anyone.

RequirementOpens for
jobs = { 'police' }Anyone with a role at one of these jobs (employed or owner), on duty or not
onDuty = trueWith jobs: only while on duty there
charIds = { 12 }These characters
items = { { key = 'keycard' } }Anyone carrying one of these (count = 2: at least that many)
ace = 'whip.admin'Anyone with this ACE
lockpick = trueA locked door offers a lockpick skill check
The opposite of an action's require. On AddAction every rule must pass: { job = 'police', item = 'pd_keycard' } there means an officer holding the keycard; on a door, any officer or anyone with the keycard.

The Door EditorServer owners#

/whip → World → Doors lists every saved door by folder, and Open the editor flies you around with saved doors lit (grey when a property manages them). Aim at a door and press G to save it, E to link two, R to delete. + New Door walks you through picking both leaves, a name, locking and access, and saves nothing until the last step.