Guide

How to use the creator: doors, building rules, access settings, lockpicking, plate recognition, templates, settings, backups and imports.

This guide walks through the creator, the in-game tool of the Door Creator. Open it with /doorscreator. It has the sections Doors, Building rules, Map, Templates, Settings, Rights and Logs, and what you see depends on your rights. Everything you change is saved to the database at once and reaches every player without a restart.

Adding a door

Click Add new door, then Select door and aim at the door in the world: the left mouse button selects, Enter confirms and Backspace cancels. A double door has two panels, so select both. Give the door a label, set the interaction radius (1 to 15 metres in steps of 0.5), and choose Use building to follow a building rule or Use custom settings. Save with Create door and the door exists for every player at once. In the door list you can search by label or ID, filter by state or rule, and edit, lock or unlock, teleport to or delete a door. Deleting cannot be undone.

Registering many doors at once

Register bulk doors scans around you. Stand in the middle of a building and set the radius with the mouse wheel (5 to 50 metres). Doors found are outlined in green, doors that are already registered are red and skipped. Click a door to leave it out, or to add one the scan missed, and press Enter to finish. Then enter a label prefix of up to 20 characters (the doors are named prefix 01, prefix 02 and so on), pick a building rule or custom settings, and choose whether the doors show an icon and play sounds. A scan registers at most 60 doors, and two panels that meet become one double door. Bulk doors start with a radius of 2 metres and the default rule, so edit each one afterwards if needed.

Building rules

A building rule is one set of access settings that many doors follow, for example Mission Row PD. Create it under Building rules, link doors to it with Use building in the door form, and edit it once: saving pushes the change to every linked door. Deleting a rule does not delete its doors. Each linked door keeps a copy of the rule as its own custom settings.

Access settings

These settings exist on a door and on a building rule. Accessibility: Public door (anyone may open it and the other requirements are ignored), Job requirement (pick the jobs and the lowest grade of each, then Requires job or Requires job and item), Requires item (item name and quantity), Has code (a PIN of 4 to 6 digits or a custom code of 3 to 16 characters) and Whitelisted players (character IDs or licenses, up to 100). Behaviour: the default state (locked or unlocked), Auto-closure (5 to 1000 seconds in steps of 5) and the Time system (open and close time as HH:MM, on real time or game time, where one game day is about 48 real minutes). Security: Can be lockpicked with a difficulty of Simple, Advanced or High security, and Alert jobs on lockpick.

Door options

Visual and sound: Display icon / text shows the lock icon and 3D text at the door, the Icon point is a spot you aim at within 15 metres of the door (without one the door's centre is used), and the Door sound is a regular door, a fence or a security door. Vehicle gate marks a gate, garage door or barrier: only vehicle gates can be used from a vehicle, and plate recognition only works on them. Power: an Electronic door depends on the power grid and, on a power cut, springs open, locks or does nothing. Lockdown: the Building ID / zone the door belongs to, Exclude from lockdown for escape routes, and Boss override, which lets the highest grade of the door's jobs still open it during a lockdown or a locking power cut.

Plate recognition

Switch on Enable auto recognition on a vehicle gate and add allowed plates (up to 50, each 1 to 8 capital letters, digits or spaces) and, or, jobs with a minimum grade. Set the recognition radius (2 to 30 metres) and, if you like, Only with siren on. When the driver of a matching vehicle comes within the radius of the locked gate, it unlocks, and it locks again after the door's auto-closure delay or, without one, after MS.Anpr close seconds. Saving needs at least one plate or job. Jobs are checked on the server, but a plate can be faked, so use jobs, with the siren, for a gate that must stay shut.

Lockpicking

Players pick a lock with a usable item. A door accepts the item of its own difficulty: by default lockpick for Simple, advancedlockpick for Advanced and security_lockpick for High security, which you change in Settings, Lockpicking. The player uses the item within about 2 metres of a locked door that has Can be lockpicked on, and a minigame starts (the ox_lib skill check by default). On success the door breaks open: it shows the broken state and cannot be locked until the broken duration is over (120 seconds by default), and the item is used up as set per difficulty. If the door has Alert jobs on lockpick, the police are alerted. Settings also hold the minimum of police on duty, the police jobs and whether an item is used up on success or on a slip.

Templates

Templates are door sets as JSON files. Export takes the doors you pick, a label, a category and the mapping they were made on, and writes the file into the templates folder of the resource. The file only holds what is true on every server: place, models, radius, icon point, sound, vehicle flag and lockpick difficulty. Codes, jobs, items, whitelists, plates and zones are never in it. To share a template, copy the file into another server's templates folder. Importing asks for a building rule (link an existing one or create a new one) and what to take over (visual, lockpick and sound settings). Doors that are already registered are skipped.

Settings

General holds Force close, Save doorlocks and the doorlock animation. Display holds the lock icon with its three images, Only for players with access, the sounds (volume, hearing range and the sound on denied access) and the 3D world text. Lockpicking holds the items, the police and the broken duration. System holds Import doorlocks, Backups and Reset. Every setting has its default in cl_config.lua, and Reset to default brings those back while doors and building rules stay.

Rights, logs and backups

Rights, for full-rights groups only, set what each staff group of MS.StaffGroups may do. Logs list every change by every admin for the number of days in MS.Logs, with what changed, who did it and when, and can be searched and filtered. Codes never show in the log. Backups are made automatically every 24 hours while the switch is on (the oldest beyond 14 are deleted), manually on demand, and automatically before every import, restore and reset. A restore puts doors, building rules and settings back to that time, and later changes are lost. The rights are restored too when a full-rights admin restores.

Importing from another doorlock

Settings, System, Import reads doors_creator, ox_doorlock, qb-doorlock or rcore_doorlock. The import makes a backup first, then registers the doors with their jobs, items, codes, whitelists, auto-closure and open and close times. The building rules of doors_creator and the groups of rcore_doorlock become building rules. Doors that are already registered are skipped, and the console shows parsed, skipped and errors. Imported doors get default values for vehicle gate, power, plate recognition and lockdown, so set those in the creator afterwards.

The map

The Map shows every door and building rule on a 3D map of Los Santos built from the game's own distant detail. It needs no other resource and no internet host. Players download about 28 MB more with this resource, once, when they join.

Last updated