Configuration

Every setting of More Doorscreator in cl_config.lua, sv_config.lua and the other files you can edit.

Every option is documented below, in three parts: the client options in backend/config/cl_config.lua, the server options in backend/config/sv_config.lua and the other files you can edit or share. All of them stay editable after escrow. Options named MS.Defaults are only the defaults of the settings in the creator: once an admin saves the settings in game, the saved values win, and Reset to default brings these back. Everything else is read when the resource starts, so restart it after a change.

Client options (cl_config.lua)

MS.Localeen
Language of every text: the creator, the keypad and the notifications. de or en. To add a language, add a locale file in backend/locale and set its name here.
MS.Locales{}
Table the locale files fill with their texts. Leave it empty.
MS.Settings.dev_modefalse
Prints debug messages to the console when something fails. Keep it false on a live server.
MS.Settings.load_delay3000
Milliseconds the client waits after joining before it loads the doors.
MS.Settings.notify_time5000
Milliseconds a notification stays on screen.
MS.Defaults.forceClosetrue
Default of Force close: shuts a locked door that hangs open or streams in open. The keys under MS.Defaults are only defaults: once an admin saves the settings in the creator, the saved values win, and Reset to default brings these back.
MS.Defaults.saveDoorlockstrue
Default of Save doorlocks: keeps lock states after a server restart. With false every door starts in the default state of its rule after a restart.
MS.Defaults.animtrue
Default of the doorlock animation: plays when a player locks or unlocks a door. It does not play inside a vehicle.
MS.Defaults.animDictanim@heists@keycard@
Animation dictionary of the doorlock animation.
MS.Defaults.animClipexit
Clip of the doorlock animation.
MS.Defaults.animDuration1200
Length of the animation in milliseconds, 100 to 10000. It is also the shortest time between two lock or unlock actions of one player.
MS.Defaults.icontrue
Default of the doorlock icon: an image drawn at the icon point of every door that has Display icon / text on.
MS.Defaults.iconAccessOnlyfalse
Only players who may open a door see its icon. Everyone else sees nothing.
MS.Defaults.iconLocked / iconUnlocked / iconBrokenimg/locked.png, img/unlocked.png, img/broken.png
The three images, one per state. Each is a file in frontend/dist of this resource or an https link from a host in MS.IconHosts (sv_config.lua).
MS.Defaults.text3dfalse
Default of the 3D world text: floating text at doors that have Display icon / text on.
MS.Defaults.textUnlocked / textLocked / textBroken~g~Unlocked, ~r~Locked, ~o~Broken
The 3D text per state, with GTA colour codes. Each up to 40 characters.
MS.Defaults.lpSimple / lpAdvanced / lpHighlockpick, advancedlockpick, security_lockpick
The lockpick items for the difficulties Simple, Advanced and High security. Each is registered as a usable item, and a door only accepts the item of its own difficulty.
MS.Defaults.lpSimpleUseSuccess / lpAdvancedUseSuccess / lpHighUseSuccesstrue, true, true
Whether the item is used up when the lock opens, per difficulty.
MS.Defaults.lpSimpleUseFail / lpAdvancedUseFail / lpHighUseFailfalse, false, true
Whether the item is used up on a slip (a failed attempt), per difficulty.
MS.Defaults.lpMinPolice0
Police on duty needed before a lock can be picked, 0 to 20. 0 means no police needed.
MS.Defaults.policeJobspolice, grade 0
Jobs that count as police from the given grade. They are counted for the minimum above and get the lockpick alert. Entries are job name and grade.
MS.Defaults.doorVolume35
Volume of door sounds at the door in percent, 0 to 100. It gets quieter with distance.
MS.Defaults.hearRange15
Metres within which a door sound is heard, 1 to 50. Farther away nothing is heard.
MS.Defaults.deniedSoundtrue
A short sound when someone without access tries a door.
MS.Defaults.autoBackuptrue
Automatic backups every MS.Backups interval hours (sv_config.lua). Changing it in game needs the System right.
MS.Defaults.brokenDuration120
Seconds a picked door stays broken before it locks again, 10 to 600.
MS.Creator.commanddoorscreator
Name of the command that opens the creator.
MS.Creator.bulk_max60
Most doors one bulk scan registers.
MS.Creator.bulk_radiusmin 5, max 50, start 10, step 5
Radius in metres of the bulk scan circle. The mouse wheel changes it by the step between min and max.
MS.Lockpick.enabledtrue
Turns lockpicking off as a whole, its usable items included.
MS.Lockpick.alert_radius50.0
Radius in metres of the red circle the police see on the map after a break-in. Used by the built-in alert only.
MS.Lockpick.alert_time120
Seconds the break-in blip stays on the map.
MS.Templates.categoriesPolice, Medical, Gangs, Housing, Mechanic, Heists, Other
The categories a template can be filed under when it is exported.
MS.Templates.mappingsVanilla, Gabz, K4MB1, Prompt Studio, Other
The map a template was made on, chosen when it is exported. Whoever imports it sees which mapping it needs.
MS.Commands.lockdown / powerdoorlockdown, doorpower
Names of the commands /doorlockdown and /doorpower.
MS.Keysselect 24, confirm 191, cancel 177, radius_up 241, radius_down 242
Controls used while picking a door, an icon point or a bulk scan: left mouse selects, Enter confirms, Backspace cancels, the mouse wheel changes the scan radius.
MS.RunLockpick(difficulty)ox_lib skill check
The lockpick minigame. It receives simple, advanced or high and must return true when the lock was picked. The default uses the ox_lib skill check: simple is two easy stages with the key E, advanced is easy, medium, medium and high is medium, hard, hard, both with W A S D. Without ox_lib an attempt only shows a notification. Replace the function to use another minigame.

Server options (sv_config.lua)

These options live in backend/config/sv_config.lua and are read when the resource starts: restart the resource after changing them. The server config never reaches a client, so it is safe for the Discord webhook.

MS.FullRightssuperadmin, admin, god
List of entries with a framework group and a label. These groups may do everything in the creator, granting rights included. As shipped: superadmin, admin and god. On QBCore only groups that more_lib's permissions recognise work.
MS.StaffGroupsadmin (doors, settings), mod (doors)
List of entries with a group, a label and the rights doors, settings and system. A group gets the rights set to true, and a full-rights admin can change them in game under Rights: a stored change beats this list. doors opens the creator, edits doors and building rules and allows /doorlockdown and /doorpower. settings allows the General, Display and Lockpicking sections. system allows imports, backups, resets and the automatic-backup switch. settings and system only count together with doors. A group that is also in MS.FullRights has full rights, so as shipped the admin entry has no effect: remove admin from MS.FullRights to use it. A group in neither list has no access.
MS.IconHostsr2.fivemanage.com, i.imgur.com
Hosts that door icon images may be loaded from, https links only. A link from another host is refused when saved, and a stored link whose host you remove stops showing.
MS.Keypad.attempts5
Wrong codes before the keypad blocks the player at that door.
MS.Keypad.lockout60
Seconds the keypad block lasts.
MS.Lockpick.distance2.0
Metres from the door within which a lock can be picked.
MS.Lockpick.min_time2
Seconds the minigame must take at least. A faster result is refused.
MS.Lockpick.timeout60
Seconds after which an unfinished attempt is void.
MS.Lockpick.cooldown5
Seconds between two attempts of one player.
MS.Anpr.close10
Seconds until a gate opened by its plate locks again. A door with auto-closure uses its own delay instead.
MS.Anpr.cooldown2
Seconds between two plate checks of one player.
MS.Doors.bucket_onlytrue
Doors only work in routing bucket 0: locking and unlocking, the keypad, lockpicking and plate recognition are refused in any other bucket. Set false to allow them in every bucket.
MS.Logs.days30
Log entries older than this many days are deleted.
MS.Templates.max_kb1024
A template file larger than this many KB is refused.
MS.Backups.interval24
Hours between two automatic backups, while Automatic backups is on.
MS.Backups.keep14
Automatic backups kept. The oldest are deleted. Manual backups are never deleted.
MS.Discord.enabledfalse
Sends log entries to a Discord webhook. Off by default.
MS.Discord.webhook(empty)
The Discord webhook link. It stays in this server-only file and never reaches a client.
MS.Discord.usernameMORE Scripts - Door Creator
Name the webhook posts under.
MS.Discord.avatar(empty)
Avatar image link of the webhook, optional.
MS.Discord.color16726866
Colour of the Discord message as a decimal number.
MS.Discord.eventsall true
One switch per log category: doors, buildings, templates, settings and system (imports, backups and rights). A category set to false is not sent.
MS.GetGameTime()GTA pace from the server clock
Returns hour 0 to 23 and minute 0 to 59 of the game clock. Doors with opening and closing times on game time follow it. By default it runs at GTA's own pace from the server's clock, so one game day is about 48 real minutes. Put your time-sync resource's time here.
MS.SendAlert(door, coords, playerId)more_dispatch, else notification and blip
Called when someone picks a door that has Alert jobs on lockpick. By default it sends a dispatch through more_dispatch for every police job, or without it a notification and a blip to the police on duty. Replace the function to use another dispatch.
MS.DiscordLog(entry)built-in message
Turns a log entry into the Discord message. Change it only if you want another layout.

Files you can edit or share

backend/locale/en.lua and de.luaen, de
Every text of the creator, the keypad and the notifications. Edit them to reword a text, or add a language file and set MS.Locale to its name. Both files stay editable after escrow.
data/door_models.json557 models
The models the bulk scan treats as doors, as signed hashes or model names. It ships with 557 models and every saved door adds its own. Copy the file to share it. If you edit it by hand and break it, the resource stops adding to it rather than overwriting your edit.
templates/ folderempty
Door sets exported from the creator's Templates section as JSON files, up to 200 doors each. Copy a file into another server's templates folder to share it. A file is checked whole before import: a single bad value refuses it.
Icon imagesimg/locked.png, img/unlocked.png, img/broken.png
Files in frontend/dist of the resource, set in the creator under Settings, Display with a path relative to frontend/dist (letters, digits, underscore, dash, dot and slash, up to 64 characters), or an https link from MS.IconHosts.

Last updated