Configuration

Every setting of the Scene Director in cl_config.lua and sv_config.lua, the texts and the catalogs, with its default value.

All settings are in backend/config. cl_config.lua is read by every player (editor, keys, camera, limits, effects, lists and the functions for your clothing and weather scripts). sv_config.lua is read only by the server (access, private bucket, export size and the Discord log). The catalogs are animations.lua (shared), and props.lua, peds.lua, vehicles.lua and cutscenes.lua (server only). The texts are in backend/locale. All of these files stay open for you to edit. Restart the resource after every change, and keep a copy of your config before an update. The table lists each option with its default value; where an option is a list, the default only names it.

MS.Localeen
Language of the editor and its notifications: en (English) or de (German). A text that is missing in the chosen language falls back to English. The texts are in backend/locale/en.lua and de.lua. To add a language, copy en.lua to a new file, change MS.Locales["en"] in it to your language code, translate the values (keep %s and %d where they appear), add the file to shared_scripts and escrow_ignore in fxmanifest.lua and set MS.Locale to your code. cl_config.lua is the file for this and the next ones until stated otherwise.
MS.Locales(filled by the locale files)
The table that holds all texts, one entry per language. Leave it empty here: backend/locale/en.lua and de.lua fill it. Do not remove the locale files that fxmanifest.lua lists.
MS.Settings.dev_modefalse
Prints debug lines to the console and traces the wheels of a vehicle while it is recorded. Switch it on only while you search for a problem.
MS.Settings.load_delay3000
Milliseconds the client waits after it starts before it begins to wait for the game session, your framework and the player to be loaded. The editor can be opened only after that.
MS.Settings.notify_time5000
Milliseconds a notification of the Scene Director stays on screen.
MS.Director.commanddirector
The chat command that opens and closes the editor. Change the word to rename it (without the slash).
MS.Director.key(empty)
A default key that opens and closes the editor, written like the keys below (for example F5). Empty means no key is bound, and every player can still bind one under Settings, Key Bindings, FiveM.
MS.Director.tag_distance50
Metres from the camera within which the name tags of actors, vehicles and other entries are shown in the editor and while recording.
MS.Keys (how it works)see the next rows
Each entry of MS.Keys has a command and a default key. The default key is only a suggestion: every player can change it under Settings, Key Bindings, FiveM. The ones marked held use a + command that works while the key is down. Keys written with Ctrl need Ctrl held. Use the key names FiveM knows (letters, F1 to F12, SPACE, TAB, DELETE, BACK, LEFT, RIGHT, UP, DOWN, PAGEUP, PAGEDOWN, COMMA, PERIOD, MOUSE_LEFT and so on). An entry can also carry a mapper, which only the select entry does (MOUSE_BUTTON).
MS.Keys: editorlook F, help H, stop BACK, hide U, bars P, dock B, render F6
look (director_look) switches between looking around and the cursor. help (director_help) shows the shortcuts. stop (director_stop) aborts the countdown of a recording and stops Play. hide (director_hide) hides the editor surface so you can film. bars (director_bars) turns the cinematic bars on and off. dock (director_dock) shows or hides the timeline. render (director_render) renders from In to Out.
MS.Keys: placinggizmo R (held), space L (held), select MOUSE_LEFT (held), ground G, delete DELETE, cancel X, lower Q (held), raise E (held)
gizmo moves or rotates the selection while held, and space switches between world and local axes while held. select (a mouse button) grabs the gizmo. ground (director_ground) puts the entry on the ground, or switches the grid snap while you place. delete removes the selection and cancel (director_cancel) cancels placing. lower and raise move what is being placed down and up while held.
MS.Keys: nudgenudgeLeft LEFT, nudgeRight RIGHT, nudgeUp UP, nudgeDown DOWN, nudgeRaise PAGEUP, nudgeLower PAGEDOWN
Move the selection by one nudge step (see MS.Nudge): left, right, forward, back, up and down.
MS.Keys: with Ctrlcopy C, paste V, duplicate D, undo Z, redo Y
All five need Ctrl held: copy, paste, duplicate, undo and redo for the entries of the scene.
MS.Keys: timelinerecord J, play SPACE, frameBack COMMA (held), frameForward PERIOD (held), in I, out O, event K, marker M
record starts a take, or stops it and saves it. play plays and pauses. frameBack and frameForward step one frame and repeat while held; with Ctrl they jump to the previous or next mark. in and out set In and Out at the playhead. event adds an event at the playhead. marker puts a marker at the playhead, or takes it away.
MS.Keys: camerakeyframe N, cameraView TAB
keyframe (director_keyframe) adds a camera keyframe from the current view. cameraView (director_cameraView) turns the camera view on and off. N, TAB and M can clash with other scripts on your server: change them here, or let your players rebind them under Key Bindings, FiveM.
MS.Camera.speed12.0
Metres per second the free camera moves.
MS.Camera.fast3.0
Speed multiplier while Shift is held.
MS.Camera.slow0.25
Speed multiplier while Alt is held.
MS.Camera.sensitivity5.0
How fast the mouse turns the camera.
MS.Camera.fov60.0
Default field of view in degrees.
MS.Camera.keyframes100
Most camera keyframes one scene can have.
MS.Snapping.grid0.5
Metres between two grid points while grid snapping is on.
MS.Snapping.angle15
Degrees between two snapped rotations.
MS.Snapping.surfacetrue
Surface snapping is on for a player until that player turns it off.
MS.Nudge (min, max, default)min 0.01, max 1.0, default 0.1
Metres of one nudge step. min and max limit what a player can set, default is the step until a player sets their own.
MS.Placement.range150
Metres from the camera within which an entry can be placed. The server checks it too and answers Too far when it is exceeded.
MS.Placement.ghost_alpha150
Opacity (0 to 255) of the ghost that shows where an entry will be placed.
MS.Delay.presets0, 0.5, 1, 2, 3, 5
The quick choices (in seconds) offered for the delay of an entry: the entry shows from that delay on the timeline. A player can also type a custom delay.
MS.Delay.max300
Most seconds of delay a player can set. Also the longest timeline the scene can have in seconds.
MS.Replay.min2
Seconds. A take shorter than this is not saved.
MS.Replay.frames9000
Most frames one take can have. The editor records 30 frames per second, so 9000 frames are 5 minutes. A longer recording stops there.
MS.Replay.vehicles4
Most vehicles one take can move at the same time.
MS.Replay.countdown5
Seconds of countdown before a recording starts.
MS.Replay.takes16
Most takes one scene can hold.
MS.Replay.pieces50
Most pieces a take can be cut into. A cut or split that would go above it is refused.
MS.Replay.chunk300
Frames per part when a long take is sent to the server. Raise it only if saving a long take is slow, and keep it the same on the whole server.
MS.Replay.ghost_alpha150
Opacity (0 to 255) of the ghost of an actor or vehicle while a new take is recorded.
MS.Replay.objects16
Most world objects (a door, for example) that one take can record as moved.
MS.ColorFiltersSecurity camera (CAMERA_secuirity), CCTV (CCTV_overlay01)
The colour filters a camera keyframe can use: a list of entries with the game's timecycle name (name) and the label the editor shows (label). Add the game's other camera modifiers here. Note that CAMERA_secuirity is spelled the way the game spells it.
MS.DriftSmoke.enabledtrue
Smoke from the tyres while a vehicle drifts in a scene. Set false to switch it off for everybody.
MS.DriftSmoke.angle25
Degrees of slide a vehicle needs before the drift smoke starts.
MS.DriftSmoke.speed8
Metres per second a vehicle must go at least for the drift smoke.
MS.DriftSmoke.scale1.0
Size of the smoke.
MS.DriftSmoke.assetcore
The game's particle asset that holds the effect.
MS.DriftSmoke.effectexp_grd_bzgas_smoke
Name of the particle effect used as smoke.
MS.WeathersEXTRASUNNY, CLEAR, CLOUDS, OVERCAST, SMOG, FOGGY, CLEARING, RAIN, THUNDER, SNOWLIGHT, SNOW, BLIZZARD, XMAS, HALLOWEEN
The weather types that the World tab can set. Remove a name to hide it. Only the game's own weather names work.
MS.Tutorial.enabledtrue
The guided tour that shows new cutters the editor. Set false to switch it off.
MS.Markers.max50
Most markers (the flags on the ruler of the timeline) one scene can have.
MS.Cinematic.ontrue
The cinematic bars are shown until a player turns them off.
MS.Cinematic.ratio2.39:1
The default aspect ratio of the bars: 2.76:1, 2.39:1, 1.85:1, 16:9, 4:3 or 9:16.
MS.Cinematic.opacity1.0
Opacity of the bars, 0 to 1.
MS.Events.max100
Most events (what an actor does at a frame) one actor can have.
MS.Events.recordedpunch
Which punch from MS.Events.punches a punch plays that was recorded in a take (headbutt, punch or slap).
MS.Events.punchesheadbutt, punch, slap
The punch events an actor can play. Each entry has a label for the editor, the animation dictionary (dict) and the clip name (clip). Change the dict and clip to use other animations.
MS.Caps.actor50
Most actors in one scene. The Caps entries limit how many entries of a kind a scene can hold; adding more shows the message that the limit is reached.
MS.Caps.vehicle30
Most vehicles in one scene.
MS.Caps.prop300
Most props in one scene.
MS.Caps.fx30
Most particle effects in one scene.
MS.Caps.light40
Most lights in one scene.
MS.Caps.text20
Most 3D texts in one scene.
MS.Caps.sync20
Most synced scenes (the two to four actor scenes of the Library) in one scene.
MS.Caps.cutscn10
Most story cutscenes (the Library) in one scene.
MS.CutsceneFar300.0
Metres. A story cutscene whose place is farther than this from the camera counts as far away.
MS.Text.shown6
Most 3D texts that are drawn at the same time. The others are hidden.
MS.Text.google_fontstrue
true loads the fonts that are not shipped with the resource from Google Fonts, so the players need a connection to fonts.googleapis.com. false uses only the two local fonts, Vox and Gilroy.
MS.Text.fonts57 fonts, from Vox and Gilroy to Share Tech Mono
The fonts a 3D text can use, in the order the editor lists them. Vox and Gilroy are local. Remove a name to hide a font, or add a Google Fonts name (needs MS.Text.google_fonts).
MS.Casting.previews30
Most preview peds the casting library shows at the same time.
MS.Custom.prop(empty)
Props of your own to add to the prop catalog. One entry per prop: the model name is the key and the label the editor shows is the value, for example ["my_prop"] = "My prop". The model must be streamed by your server.
MS.Custom.vehicle(empty)
The same for vehicles of your own: ["my_car"] = "My car". The model must be streamed by your server.
MS.Weapons102 weapons in 9 categories
What an actor can hold. The key is the weapon name (for example WEAPON_PISTOL) and the entry has a label and a category. The categories are Handguns, Submachine guns, Shotguns, Machine guns, Rifles, Sniper rifles, Heavy weapons, Throwables and Melee. Remove an entry to hide the weapon.
MS.FX19 effects in 7 categories
The particle effects of the Effects tab. Each entry has a label, a category (Fire, Smoke, Sparks, Explosions, Water, Blood, Fireworks), the particle asset and effect name of the game, and looped (true repeats the effect, false plays it once). Add your own from any loaded particle asset.
MS.Lights6 presets
The light presets: Street lamp, Floodlight, Police red, Police blue, Fire glow and Club pink. Each has a label, a colour (r, g, b from 0 to 255), a range in metres and an intensity from 0.1 to 20.
MS.VehicleColoursindex 0 to 160
The names of the game's paint colours by index, shown in the vehicle editor. Colour 75 and similar are names the game does not name; change the text to rename a colour.
MS.VehicleGlows13 neon colours (0 to 12)
The underglow choices by index: White, Blue, Electric blue, Mint green, Lime green, Yellow, Golden shower, Orange, Red, Pony pink, Hot pink, Purple and Blacklight. Each has a label and r, g, b.
MS.VehicleWheelTypes13 wheel types (0 to 12)
The game's wheel types by index, from Sport and Muscle to Street and Track. Only the names can be changed.
MS.VehiclePlates6 plate styles (0 to 5)
The game's plate styles by index: Blue on white, Yellow on black, Yellow on blue, Blue on white 2, Blue on white 3 and Yankton.
MS.VehicleTints7 window tints (0 to 6)
The game's window tints by index: None, Pure black, Dark smoke, Light smoke, Stock, Limo and Green.
MS.GetAppearance(ped)function
Returns the look of a ped, which the Scene Director stores as it is (at most 16 KB as JSON). With illenium-appearance started it uses that script; without it, it reads the clothes, props and (on freemode peds) the face of the ped itself. Replace the body to use another clothing script.
MS.SetAppearance(ped, look)function
Puts a stored look on a ped. Uses illenium-appearance when it is started, otherwise it sets the components, props, face features, overlays, hair and eye colour itself. Replace it together with GetAppearance if you use another clothing script.
MS.OpenAppearanceEditor(ped, onDone)function
Opens the clothing editor for an actor and calls onDone with the new look, or with nil when the player cancels. Without illenium-appearance it calls onDone(nil, true) and the editor reports that no clothing editor is available. The EDITOR table above it chooses what the editor offers.
MS.GetPlayerAnim(ped)function
Tells the Scene Director which animation the ped plays, so an emote can be recorded in a take. It checks every dict and clip of MS.Animations and returns the first one that plays. Replace it if your emote script plays animations that are not in that list.
MS.PauseWorldSync(paused)function
Called with true when the editor takes over the weather and the time and with false when it gives them back. It pauses qb-weathersync or cd_easytime when one of them runs. Add your own weather and time script here, or the world can jump back while you film.
MS.Adminadmin = true, god = true
sv_config.lua. The groups that may use the Scene Director. Add the name of your own group as ["mygroup"] = true. On ESX the group owner is not in the list, add it if your owners should have access. On QBCore the groups come from the permissions of more_lib. Everybody else sees the no-permission message.
MS.PrivateBucket7700
sv_config.lua. The routing bucket the editor uses while someone directs a scene, so nobody else sees the scene being built. Choose a number that no other resource uses.
MS.Export.max_mb20
sv_config.lua. Most megabytes of a scene file that can be exported to or imported from the exports folder. An import above it is refused.
MS.Discord.enabledfalse
sv_config.lua. Switch the Discord log on. It works only with a webhook.
MS.Discord.webhook(empty)
sv_config.lua. The Discord webhook URL that receives the log. With it empty nothing is sent.
MS.Discord.usernameMORE Scripts - Scene Director
sv_config.lua. The name the webhook posts under.
MS.Discord.avatar(empty)
sv_config.lua. The picture URL the webhook posts with. Empty uses the webhook's own.
MS.Discord.color16726866
sv_config.lua. The colour of the message, as a decimal number (16726866 is a red).
MS.Discord.eventsopen, denied, delete, export, import: all true
sv_config.lua. Which events are logged: open (the editor is opened), denied (it is refused), delete (a scene is deleted), export (a scene is written to the exports folder) and import (a scene is made from a file there). Set one to false to stop logging it.
MS.DiscordTitlesone title per event
sv_config.lua. The headline of each log message: Editor opened, Editor refused, Scene deleted, Scene exported and Scene imported. Change the text to translate it.
MS.DiscordLog(event, playerId, detail)function
sv_config.lua. Builds and sends one log message to the webhook (player name and id, and the detail such as the scene name). Replace the body to send the log somewhere else, for example your own log script.
MS.Animations (animations.lua)356 animations
The emote list of the Actors tab. The key is a name of your choice, and each entry has a label, a category, the animation dictionary (dict), the clip and flags. The flags are normal, loop, upper (upper body only), upperLoop (upper body and loop), holdLast (hold the last frame) and keepMoving (the actor can keep walking). The same list is used to find the emote a player is playing, see MS.GetPlayerAnim.
MS.HandProps (animations.lua)8 items
The objects an actor can hold in a hand: phone, coffee cup, cigarette, beer bottle, briefcase, clipboard, notepad and binoculars. Each has a label, the prop model, the bone it is attached to, and an offset and rotation.
MS.Walks (animations.lua)113 walk styles
The walk styles an actor can use, in the categories Men, Women and Special. Each has a label, a category and the game's movement clipset.
MS.SyncedScenes (animations.lua)23 scenes
The scenes of two to four actors in the Library, such as handshake, bro hug and high five. Each has a key, label and category, a height and a list of slots (the dictionary and clip of every actor). Optional: a turn, an anchored flag, and offsets of a slot. Add your own the same way.
MS.Props (props.lua)5,014 props
The prop catalog. One row per prop with the model name, a label and a category. Server only: the server sends it to the editor. Remove rows to hide props, or add yours (or use MS.Custom.prop).
MS.Peds (peds.lua)917 peds
The ped catalog of the casting library. One row per ped with the model name, a label, a category and a gender (male or female). Server only.
MS.Vehicles (vehicles.lua)910 vehicles
The vehicle catalog. One row per vehicle with the model name, a label and a category such as sport, sport_classic or super. Server only. Add your own here or use MS.Custom.vehicle.
MS.Cutscenes (cutscenes.lua)781 story cutscenes
The story cutscenes of the Library. Each has the game's cutscene name, a category, its length and first frame, the place and turn where it plays, and the roles with their models. Server only. Make the list empty to hide the cutscene tab.

Last updated