Configuration
All configuration lives in config.lua. Maps, props, lights, categories, schedules and each editor’s key bindings are saved in the database and managed in game, in the editor and its Map Workshop, so this file holds the server-wide rules, limits and defaults.
Changes to config.lua need a resource restart to take effect (restart bablo-mapeditor in the console).
Next to config.lua, the language files in locales/ are open for editing. See Languages.
Debug
Config.DEBUG = falsePrints extra lines in the server console and in each player’s F8 console. It also turns on the thumbnail studio and a few developer commands: /mapeditor_probe and /mapeditor_probe_batch measure prop models, and the server console commands mapeditor_seed and mapeditor_wipeseed add sample props to the first enabled map and remove them again. Some of these commands, such as /mapeditor_thumbs_preview, work for every player, not only for editors. See Commands.
Keep Config.DEBUG = false on a live server.
Framework
-- auto | qbcore | esx | qbox
Config.Framework = "auto"auto checks for es_extended, then qbx_core, then qb-core, and waits up to 5 seconds for one of them to start. Force a value only if detection picks the wrong one.
The framework decides who counts as an admin, see Permission, and gives the identifier a player’s key bindings are saved under. With any other value, or when no framework is found, no bridge is loaded: only the ACE in Config.AcePermission opens the editor, and key bindings changed in the Workshop’s Keybinds tab cannot be saved.
Language
-- locale file to use: locales/<locale>.json ('en', 'sv' — copy en.json to add your own language)
Config.Locale = "en"The language of the editor, loaded from locales/<locale>.json (en and sv ship with the resource). A region part is ignored, so en-US loads en.json. When the file is missing, en.json is used. The category names in Categories are not translated. See Languages.
Command
-- Command that opens the NUI panel.
Config.Command = 'mapeditor'The chat command that opens the editor, and closes it again while it is open. It has no default key. Every player can type it, but only editors get in; others see You don’t have permission. The editor does not open from inside a vehicle: You can’t open the map editor from a vehicle. See Commands.
Permission
-- ACE permission that grants editor access alongside framework admin
Config.AcePermission = 'mapeditor.use'Players with this ACE are editors: they can open the editor and the Map Workshop. Framework admins are editors too:
| Framework | Counts as admin |
|---|---|
| QBCore | The admin or god permission |
| Qbox | The admin permission |
| ESX | The admin or superadmin group |
On every framework, a player with the command ACE also counts as an admin. The server checks this on every editor request, so removing the ACE takes effect on the player’s next action. To give the ACE to a group, add a line like this to server.cfg:
add_ace group.admin mapeditor.use allowSee Installation.
Rate limit
-- Server-side rate limit for editor callbacks (token bucket per player)
Config.RateLimit = { tokens = 30, refillPerSecond = 10 }Every editor request to the server takes tokens from a bucket that each player has. When the bucket is empty, the request is refused with You’re doing that too fast. Checked on the server.
| Option | Description |
|---|---|
tokens | The size of the bucket: how many requests a player can send in a burst. |
refillPerSecond | How many tokens come back per second, up to tokens. |
Most requests cost 1 token. A page of the Placed Props tab costs 2. Saving a schedule rule and loading the World Map cost 3. Switching a map on or off, copying a map, switching the schedule between Schedule live and On hold, exports, imports and publishing cost 5. An import Preview costs more for long pastes, see Import and export. Keep tokens at 5 or more, or the 5-token actions can never run.
Freecam
-- Flying camera: cruise speed in metres per second, boost and crawl factors, mouse look speed and field of view
Config.FreecamSpeeds = { base = 14.0, fast = 6.0, slow = 0.25 }
Config.FreecamSensitivity = 16.0
Config.FreecamFov = 50.0The flying camera of the editor. Each player’s game uses these values.
| Option | Description |
|---|---|
FreecamSpeeds.base | Flying speed in metres per second. |
FreecamSpeeds.fast | Speed multiplier while the Fast key is held (Shift by default). |
FreecamSpeeds.slow | Speed multiplier while the Slow key is held (Alt by default). |
FreecamSensitivity | How fast the camera turns with the mouse, while flying and while you hold the right mouse button to look around. |
FreecamFov | The camera’s field of view in degrees. The cursor and the size of the move and rotate handles use the same value. Keep it between 1 and 179. |
Players can bind other keys to Fast and Slow in the Workshop’s Keybinds tab. See Camera & Controls.
Keybind hints
-- Keybind hint bar entries: key = display label, id = locale key hint.<id>
Config.Keybinds = {
{ id = 'exit', key = 'ESC' },
{ id = 'move', key = 'WASD' },
{ id = 'updown', key = 'Q/E' },
{ id = 'fast', key = 'SHIFT' },
{ id = 'slow', key = 'ALT' },
{ id = 'look', key = 'RMB' },
{ id = 'cursor', key = 'CAPS' },
{ id = 'place_confirm', key = 'LMB' },
{ id = 'place_brush', key = 'HOLD LMB' },
{ id = 'place_rotate', key = 'SCROLL' },
{ id = 'place_height', key = 'SHIFT+SCROLL' },
{ id = 'place_cancel', key = 'X' },
{ id = 'gizmo_mode', key = 'G' },
{ id = 'ground', key = 'SHIFT+G' },
}The row of key hints under the top bar, in this order. id picks the text, from hint.<id> in the language file, and key is the key shown next to it. The hints only show text: they do not change any key. Remove a line to hide that hint, or empty the list to hide the bar.
For move, updown, fast, slow, gizmo_mode, ground and place_cancel, the bar shows the key each player has bound in the Workshop’s Keybinds tab instead, so there key is only a fallback. The language file has one more hint you can add: freecam (Freecam). An id without a text shows as hint.<id>. See Keybinds.
Categories
Config.Categories = {
{ id = 'furniture', label = 'Furniture' },
{ id = 'seating', label = 'Seating' },
{ id = 'tables', label = 'Tables' },
{ id = 'nature', label = 'Nature & Vegetation' },
{ id = 'buildings', label = 'Buildings & Structures' },
{ id = 'doors', label = 'Doors & Shutters' },
{ id = 'barriers', label = 'Barriers & Fences' },
{ id = 'lights', label = 'Lights' },
{ id = 'signs', label = 'Signs' },
{ id = 'urban', label = 'Urban' },
{ id = 'industrial', label = 'Industrial' },
{ id = 'crates', label = 'Crates & Boxes' },
{ id = 'food', label = 'Food & Drink' },
{ id = 'electronics', label = 'Electronics' },
{ id = 'tools', label = 'Tools' },
{ id = 'weapons', label = 'Weapons' },
{ id = 'sports', label = 'Sports & Leisure' },
{ id = 'interior', label = 'Interior' },
{ id = 'clutter', label = 'Clutter' },
{ id = 'misc', label = 'Misc' },
}The category chips of the Prop Browser, after All Objects, in this order.
| Field | Description |
|---|---|
id | A category of the prop catalogue in data/props.json. The 20 ids above are the ones the catalogue uses. |
label | The text on the chip, shown as written. |
Remove a line to drop that chip: its props still show under All Objects and in the search.
When the Workshop has no categories at all, for example on the first start, the resource also creates one top-level Workshop category for each label (first 48 characters) when it starts. From then on, Workshop categories are managed in game. See Categories.
Thumbnails
Config.ThumbBaseUrl = 'https://props.babloresources.com/'Where the prop pictures come from. The editor loads <model>.webp from this address, for example https://props.babloresources.com/prop_bench_01a.webp. A missing / at the end is added for you.
With '', pictures load from data/thumbs/<model>.webp inside the resource. The resource ships without those picture files, so you first have to make them with the thumbnail studio. When a picture cannot be loaded, a tile of the Prop Browser tries the copy in data/thumbs/ and then shows ?. See Custom Props & Thumbnails.
Custom props
-- Custom streamed props to add to the browser: { model = 'my_prop', label = 'My Prop', category = 'misc' }
Config.CustomProps = {}Props streamed by your own resources, added to the Prop Browser. Add one entry per prop, for example { model = 'my_prop', label = 'My Prop', category = 'misc' }.
| Field | Description |
|---|---|
model | The model name. A resource on your server has to stream it, or picking it shows That prop couldn’t be loaded or spawned. |
label | The name in the Prop Browser. Left out, the model name is shown. |
category | A category id from Categories. Left out, it is misc. With an id that is not listed there, the prop only shows under All Objects and in the search. |
The server only accepts models that are in the catalogue or in this list. Other models are refused with That model isn’t allowed., and imports skip them. A model that is already in the catalogue is not added twice. With Config.DEBUG on, the server console warns about a category that is not listed.
To give a custom prop a picture, put <model>.webp in data/thumbs/. While a picture address is set in Thumbnails, only the tiles of the Prop Browser fall back to that folder; the Created tab and the Workshop do not. See Custom Props & Thumbnails.
Maps and limits
-- Placement / persistence
Config.DefaultMapName = 'Main'
-- Deleting a prop YOU PLACED only marks the row deleted so undo can bring it
-- back. Those rows are dead weight once nobody is going to undo them, so they
-- are purged for good after this many days (0 disables the purge).
-- Erased GTA world props are never purged - they are the map edit itself.
Config.PurgeDeletedAfterDays = 7
Config.MaxObjectsPerMap = 5000
Config.MaxObjectsTotal = 50000All four are read on the server.
| Option | Description |
|---|---|
DefaultMapName | The name of the first map. It is created, switched on, when the resource starts with no maps in the database. It is not used after that. |
PurgeDeletedAfterDays | A deleted prop or light stays in the database so undo can bring it back. After this many days it is removed for good, and undo can no longer restore it. The purge runs when the resource starts and once a day after that. 0 turns it off. Erased GTA props are never purged. |
MaxObjectsPerMap | The most placed props one map can hold. |
MaxObjectsTotal | The most placed props across all maps. |
Deleted props do not count. Placing, pasting or adopting props that would go over a cap is refused as a whole, with This map has reached its object limit. or The server object limit is reached. Moving props to another map, copying a map and imports check the caps too, and undo does not bring a deleted prop back onto a full map. The Workshop’s Maps tab shows both caps, and the World Map tab loads at most MaxObjectsTotal props. Lights have their own caps, see Lights. See Map Workshop and Undo & Redo.
Object defaults
Config.ObjectDefaults = {
frozen = true,
collision = true,
gravity = false,
alpha = 255,
lod = 400,
visible = true,
locked = false
}The flags a new prop gets in the Place tool and the Fill tool. Pasted, cloned and arrayed props copy the flags of their source. Players change the flags of a prop in the right-click menu and the Transform panel. See Selecting & Editing Props.
| Option | Description |
|---|---|
frozen | true keeps new props fixed in place (Frozen). |
collision | true makes new props solid (Collision). |
gravity | true gives new props gravity. It only shows on props that are not frozen. There is no panel control for it. |
alpha | Opacity from 0 (invisible) to 255 (solid), the Alpha field. |
lod | Render distance in metres, the Render Distance field. It is kept inside Config.LodRange. |
visible, locked | Not used for new props: they always start visible and unlocked. These two only fill in for a saved prop that has no flags stored. |
Adopted GTA props, and imported props without flags, start frozen, solid and without gravity, and take alpha and lod from here.
Models
-- Render distance (m) a placed prop may use. Saved props outside the range are
-- drawn at the nearest end of it; nothing stored is rewritten.
Config.LodRange = { min = 1, max = 1000 }
-- How long a prop model may take to load before it is skipped (ms).
Config.ModelLoadTimeoutMs = 3000| Option | Description |
|---|---|
LodRange | The lowest and highest render distance a prop may have, in metres. The Render Distance field of the Transform panel stays inside it, and the server keeps every saved value inside it. A saved prop outside the range is drawn at the nearest end of it. min is at least 1, and a max below min counts as min. |
ModelLoadTimeoutMs | How long a player’s game waits for a prop model to load before it skips it, in milliseconds. It applies to placed props streaming in and to the previews of the Place, Array and Fill tools. A placed prop that was skipped is tried again 30 seconds later. A negative value counts as 3000. A map published as its own resource keeps the value it had when you published it. |
History
-- Undo / redo and the Workshop's History tab
Config.History = {
depth = 250, -- steps each editor session can undo; 0 turns undo off
keepDays = 45, -- History tab entries older than this many days are removed (on start and once a day); 0 keeps them forever
replyTimeoutMs = 10000, -- how long an undo/redo waits for one server reply before treating it as lost (ms, at least 1000)
}| Option | Description |
|---|---|
depth | How many steps each player can undo. 0 turns undo and redo off: Ctrl + Z then shows The undo history is empty. Read by each player’s game. |
keepDays | Entries of the Workshop’s History tab older than this many days are deleted, when the resource starts and once a day after that. 0 keeps them forever. Read by the server. |
replyTimeoutMs | How long an undo or redo waits for the server’s answer before it counts as lost, in milliseconds. At least 1000 and at most one hour. |
See Undo & Redo and History.
Pointer reach
Config.PointerReach = 600.0 -- cursor ray reach (m); short values drop props in mid-air when flying highHow far the cursor reaches into the world, in metres from the camera. Clicking, hovering, placing and the other tools only find props and ground within this distance. 0 or less counts as 600. When nothing is in reach, the Place tool holds the prop in the air, see distance in Place tool. Read by each player’s game. See Placing Props.
Streaming
Config.StreamCellSize = 150.0
Config.StreamRadius = 300.0
Config.StreamInterval = 750Placed props only exist in a player’s game while that player is near them. The world is split into square cells, and each player’s game keeps the props of the cells within StreamRadius of the player loaded and removes the rest. While the editor is open and the camera flies, the camera’s position counts instead of the character’s.
| Option | Description |
|---|---|
StreamCellSize | The size of one cell, in metres. Props load and unload a whole cell at a time. |
StreamRadius | How far around the player props are loaded, in metres. A map with its own Load distance in the Workshop uses that instead: its props load within that distance and unload 50 metres beyond it. The Placed Props tab also uses this distance to count the props streamed around you. |
StreamInterval | How often each player’s game checks which cells to load, in milliseconds. |
See Map Streaming & Sync.
Workshop
-- Map Workshop (the panel for maps, props, categories, schedules and publishing)
Config.Studio = {
maxCategoryDepth = 4, -- nesting levels allowed in the category tree
loadDistanceMin = 50.0, -- smallest per-map load distance (m)
loadDistanceMax = 2000.0, -- largest per-map load distance (m); unset map = Config.StreamRadius
capWarnFree = 5, -- a category's capacity badge turns amber once this many free places or fewer are left
}Limits of the Map Workshop, checked on the server.
| Option | Description |
|---|---|
maxCategoryDepth | How many levels categories may nest in the Categories tab. Deeper ones are refused with Categories can’t nest that deep. Imported categories deeper than this are left out, and their props come in without a category. |
loadDistanceMin, loadDistanceMax | The allowed range for a map’s Load distance in the Maps tab, in metres. Outside it, the server answers Load distance must be 50 to 2000 meters. A map without a load distance uses StreamRadius. |
capWarnFree | A category’s Capacity badge turns amber when this many free places or fewer are left, and red when it is full. |
The Workshop panel has its own fixed limits: the Categories tab never offers more than 4 levels, and the Load distance field always stays between 50 and 2000. Raising maxCategoryDepth above 4 or widening the load distance range has no effect in the panel, and the refusal text always reads 50 to 2000.
See Categories.
Schedule
-- Schedule (Workshop > Schedule: turn maps on and off by day and time of day).
-- The master switch itself lives in the database so it can be flipped from the
-- panel; these are just the limits.
Config.Schedule = {
tickSeconds = 20, -- how often the server checks whether a rule window opened or closed
maxRules = 60, -- most rules that can be saved
}| Option | Description |
|---|---|
tickSeconds | How often the server checks whether a rule’s time window opened or closed, in seconds. At least 5. Saving, pausing or deleting a rule applies at once. |
maxRules | The most rules that can be saved. A new rule above it is refused with No room for another rule. |
The Schedule live and On hold switch is saved in the database, not here. See Schedules.
Cursor probe
-- Cursor probe: the ray that finds what is under the mouse pointer.
Config.Pointer = {
hitReuseMs = 30, -- one cursor hit is shared for this long before the ray is cast again (ms)
missDistance = 20.0, -- when the ray hits nothing, pasted props and new lights land this far ahead of the camera (m)
}The editor finds what is under the cursor with a ray from the camera. Read by each player’s game.
| Option | Description |
|---|---|
hitReuseMs | One result is reused for this many milliseconds before the next ray. A negative value counts as 30. |
missDistance | When the ray hits nothing, the editor uses a point this many metres in front of the camera, for example for pasted props and new lights. When the camera looks down and there is ground at the end of the ray, that ground is used instead. 0 or less counts as 20. |
Selection
-- Selection highlight and click picking.
Config.Selection = {
colorSelected = { 122, 173, 255 }, -- selection colour (r, g, b); the tool previews use it too
colorUnderCursor = { 255, 255, 255 }, -- colour of an unselected prop under the cursor (r, g, b)
hoverMs = 50, -- how often the prop under the cursor is looked up (ms)
alwaysWirebox = true, -- draw a box around selected props even when the outline shows (outlines vanish with MSAA on)
wireboxMax = 40, -- most selection boxes drawn per frame (12 lines each)
wireboxAlpha = 210, -- box opacity (0-255)
pickMin = 0.01, -- a click this close to a prop still picks it, however small it looks (share of the screen)
pickMax = 0.08, -- the most click slack a big prop gets, so it cannot steal clicks from its neighbours (share of the screen)
pickScanMax = 300, -- most props one click checks
worldHintCooldownMs = 10000, -- least time between two "this is a map prop" hints (ms)
}How selected props are highlighted and how clicks pick them. Read by each player’s game. Colour values are kept between 0 and 255. See Selecting & Editing Props.
| Option | Description |
|---|---|
colorSelected | Colour of the outline and box of selected props, { r, g, b }. The previews of the Place, Array and Fill tools and the rings of the selected light use it too. |
colorUnderCursor | Colour of the outline and box of an unselected prop under the cursor. |
hoverMs | How often the prop under the cursor is looked up, in milliseconds. |
alwaysWirebox | true draws a box around every selected prop next to the outline. With false, the boxes only show while the cursor is over a prop outside the selection, or while part of the selection is not streamed in. |
wireboxMax | The most selection boxes drawn at once. |
wireboxAlpha | Opacity of the boxes, 0 to 255. |
pickMin | A click this close to a prop still picks it, however small the prop looks. A share of the screen. |
pickMax | The most click slack a large prop gets, so it does not take clicks meant for its neighbours. A value below pickMin counts as pickMin. |
pickScanMax | The most props one click checks. |
worldHintCooldownMs | Clicking a GTA prop shows That’s a GTA world prop - right-click it to erase or adopt it. This is the least time between two of these hints, in milliseconds. |
World prop guard
-- Safety guard around reading GTA world props (the engine can crash on some
-- of them). Placed props always keep working; only unknown world props pause.
Config.EntityGuard = {
pauseAfter = 20, -- how readily the editor stops reading GTA world props when they keep failing: this many props that cannot be read safely within pauseWindowMs pause world-prop reads (3-500, higher pauses less readily); placed props always keep working
pauseWindowMs = 3000, -- how close together those failures must come to count (ms, 100-60000); slower, occasional misses never pause
resumeAfterMs = 30000, -- how long a pause lasts before world props are read again on their own (ms, 5000-600000); a pause that comes back soon after doubles, up to 10 minutes; opening the editor always resumes at once
}The editor reads GTA world props whenever it looks at one, for example to hover, hide or adopt it. When too many of them cannot be read safely within a short time, each player’s game stops reading unknown world props for a while. Props placed with the editor keep working. Editors see Unknown props are not being checked for a moment: several reads in a row failed. Checking starts again by itself soon, or at once when you reopen the editor., and a line is printed in the F8 console.
| Option | Description |
|---|---|
pauseAfter | How many unreadable props within pauseWindowMs start a pause. 3 to 500; higher pauses less readily. |
pauseWindowMs | How close together those failures must come, in milliseconds. 100 to 60000. Slower, occasional failures never start a pause. |
resumeAfterMs | How long a pause lasts, in milliseconds. 5000 to 600000. A pause that starts within 5 minutes after the last one ended lasts twice as long as that one, up to 10 minutes. Opening the editor always ends a pause at once. |
Hidden map props
-- Hidden map props (Delete mode and the right-click erase options).
Config.Hides = {
radius = 10.0, -- "Erase matching nearby" hides every prop of the same model within this distance (m)
sweepMs = 5000, -- how often copies of hidden props that stream back in are removed again (ms)
}| Option | Description |
|---|---|
radius | Erase all of this model nearby, in the right-click menu of a GTA prop, hides every prop of the same model within this many metres. It is kept between nearbyRadiusMin and nearbyRadiusMax of Delete mode, and the server keeps it between 0.5 and 100. |
sweepMs | How often each player’s game removes copies of hidden props that streamed back in, in milliseconds. |
See Delete Mode.
Delete mode
-- Delete mode tool.
Config.Eraser = {
nearbyRadiusMin = 1.0, -- smallest radius "Erase matching nearby" uses (m); the server floor is 0.5
nearbyRadiusMax = 40.0, -- largest radius it uses (m); the server cap is 100
hoverMs = 75, -- how often the prop under the cursor is looked up (ms)
feedbackMs = 250, -- least time between panel updates (ms)
colorDelete = { 235, 55, 55 }, -- box around a prop a click will remove (r, g, b)
colorRefused = { 150, 150, 150 }, -- box around a prop that cannot be removed (r, g, b)
boxAlpha = 235, -- box opacity (0-255)
focusFactor = 4.0, -- "Fly to it" stops this many times the hide's radius from the spot
focusNear = 4.0, -- ... but never closer than this (m)
focusFar = 40.0, -- ... and never farther than this (m)
focusSteepPitch = 70.0, -- a camera pitched more than this up or down flies in from above instead (degrees)
}Read by each player’s game. See Delete Mode.
| Option | Description |
|---|---|
nearbyRadiusMin | The smallest radius Erase all of this model nearby uses, in metres. Never below 0.5. |
nearbyRadiusMax | The largest radius it uses, in metres. Never above 100. |
hoverMs | How often the prop under the cursor is looked up in Delete mode, in milliseconds. |
feedbackMs | Least time between updates of the Delete mode panel, in milliseconds. |
colorDelete | Colour of the box around a prop a click will remove, { r, g, b }. |
colorRefused | Colour of the box around a prop that cannot be removed, such as a vehicle or a prop another resource controls. |
boxAlpha | Opacity of the box, 0 to 255. |
focusFactor | Go to prop in the Erased World Props tab of the Prop Browser flies the camera to a hidden prop. It stops this many times the hide’s radius away. |
focusNear | … but never closer than this, in metres. |
focusFar | … and never farther than this, in metres. |
focusSteepPitch | When the camera looks up more steeply than this many degrees, it is placed above the spot instead. |
Lights
Lights placed in the editor are not objects in the world: each player’s game draws them itself, every frame. A map that you publish as its own resource keeps the drawing settings, defaults, limits and tuning (except the wheel and panel settings) as they are when you publish it. See Lights.
Caps, drawing and handles
Config.Lights = {
maxPerMap = 320, -- lights a single map may hold
maxTotal = 3000, -- lights across every map
drawDistance = 120.0, -- a light stops drawing past this distance from the camera (m); a light whose own range reaches the camera stays lit
shadowDistance = 45.0, -- shadow casting stops earlier than the light itself (m)
maxShadows = 8, -- shadowed lights drawn at once, nearest first (the engine has 8 slots)
idleWait = 500, -- how often the renderer looks for lights again while none is in range (ms)
dropLift = 1.0, -- height (m) a new light is lifted off whatever you click on
autoNight = true, -- entering the light tool in daylight flips the clock to night so lights read
autoNightTime = { 0, 30 }, -- the clock (hour, minute) it switches to
dayStartHour = 6, -- daylight window that triggers the flip (hours, inclusive start)
dayEndHour = 19, -- ... exclusive end
marker = { 168, 200, 255 }, -- editor chrome colour for an unselected light
markerDistance = 100.0, -- how far the editor draws light handles (m)
markerMax = 80, -- most light handles drawn at once
markerSize = 0.18, -- handle radius (m)
markerAlpha = 140, -- orb opacity; the wire rings on top stay solid
-- ...
}| Option | Description |
|---|---|
maxPerMap | The most lights one map can hold. More are refused with This map has reached its light limit. The Light panel shows the count against this cap. Imports keep at most this many lights. Checked on the server. |
maxTotal | The most lights across all maps. More are refused with The server has reached its light limit. Checked on the server. |
drawDistance | Lights stop drawing past this distance from the camera, in metres. A light whose own range is larger keeps drawing up to its range. 0 to 100000. |
shadowDistance | Shadows stop at this distance from the camera, in metres. 0 to 100000. |
maxShadows | How many shadow-casting lights are drawn at once, nearest first. 0 to 8. |
idleWait | While no light is in range, how often the game looks for lights again, in milliseconds. 16 to 10000. |
dropLift | How high above the clicked spot a new light is placed, in metres. |
autoNight | true sets the clock to night when an editor opens the Light tool in daylight, so the lights show. Only that editor’s clock changes, and it goes back when the editor closes: The clock is now set to night. Placed lights barely show up in daylight. Your normal time comes back once you close the editor. If qb-weathersync or qbx_weathersync runs, its sync is paused meanwhile. On closing, the editor also sets a game minute to 2 seconds. |
autoNightTime | The time it switches to, { hour, minute }. |
dayStartHour, dayEndHour | The daylight window that triggers it: from dayStartHour up to, but not including, dayEndHour. |
marker | Colour of the handle rings of an unselected light, { r, g, b }. The orb inside shows the light’s own colour. The selected light uses colorSelected of Selection. |
markerDistance | How far away light handles are drawn and can be clicked, in metres. Handles show whenever the editor is open. |
markerMax | The most light handles drawn at once. |
markerSize | Radius of a handle, in metres. The selected light’s handle is larger. |
markerAlpha | Opacity of the orb. The rings around it stay solid. |
Light defaults
Config.Lights = {
-- ...
-- Each light placed in the editor is created with these settings; a saved
-- light with a missing field borrows it from here. Keep each number inside
-- its limit below.
defaults = {
enabled = true, -- the light is switched on
type = 'point', -- 'point' glows all around, 'spot' shines one way
rgb = { 255, 212, 170 }, -- warm white (r, g, b)
intensity = 3.0, -- brightness
range = 10.0, -- reach (m)
shadow = false, -- cast shadows
effect = 'steady', -- steady | glow | blink | sputter | ember (steady = no brightness effect)
dimDepth = 0.5, -- share of the brightness the effect takes away at its lowest (0-1)
cycleRate = 1.0, -- effect tempo; 1 = one glow or blink cycle per second
beamAngle = 40.0, -- spot: how wide the beam opens (degrees)
coreAngle = 15.0, -- spot: how wide the hot spot inside the beam is (degrees)
edgeSharpness = 0.25, -- spot: 0 gives a soft rim, 1 a crisp one
falloff = 2.0, -- spot: how quickly the beam fades toward its reach
},
-- ...
}The values the Light panel starts with. The first light an editor places uses them; after that the panel carries over the values of the last light the editor edited or picked. Imported lights take any value they lack from here, and the server keeps every value inside its limit.
| Option | Panel | Description |
|---|---|---|
enabled | Enabled | true switches new lights on. |
type | Type | point glows all around, spot shines one way. Anything else counts as point. |
rgb | Colour | { r, g, b }, each 0 to 255. |
intensity | Intensity | Brightness. |
range | Range | How far the light reaches, in metres. |
shadow | Cast shadows | true makes new lights cast shadows. |
effect | Effect | steady, glow, blink, sputter or ember. An unknown value counts as steady. |
dimDepth | Dimming | How much of the brightness an effect takes away at its lowest, 0 to 1. |
cycleRate | Tempo | The effect’s tempo. 1 is one glow or blink cycle per second. |
beamAngle | Beam angle (from centre) | Spot: the angle from the middle of the beam to its edge, in degrees. |
coreAngle | Hot spot (from centre) | Spot: the angle of the brighter hot spot, from the middle. Never wider than beamAngle. |
edgeSharpness | Rim sharpness | Spot: 0 gives a soft rim, 1 a crisp one. |
falloff | Drop-off | Spot: how quickly the beam fades toward its reach. |
Light limits
Config.Lights = {
-- ...
-- Allowed { min, max } for each light value. The panel sliders, the
-- mouse wheel and the server all keep values inside these.
limits = {
intensity = { 0.0, 25.0 },
range = { 0.5, 250.0 }, -- m
falloff = { 0.0, 25.0 },
beamAngle = { 0.5, 89.5 }, -- degrees
coreAngle = { 0.0, 89.0 }, -- degrees
edgeSharpness = { 0.0, 1.0 },
cycleRate = { 0.02, 24.0 },
dimDepth = { 0.0, 1.0 },
offset = 100.0, -- a light attached to a prop sits at most this far from it on each axis (m)
},
-- ...
}The allowed { min, max } of each light value. The sliders of the Light panel use these ranges, and the mouse wheel and the server keep values inside them. A saved light with a value outside a range is drawn at the nearest end of it.
offset has no effect in practice. It only limits lights that already have a parent prop, and players cannot create such lights in this version.
Keep every value in limits. The Light panel greys out the slider of a value that has no range here.
Light tuning
Config.Lights = {
-- ...
-- Fine tuning of how lights draw and respond to the mouse wheel.
tuning = {
hotSpotBoost = 0.75, -- spot: the hot spot is this much brighter than the rest of the beam (0.75 = 75 % brighter); the beam's total light stays the same
rimFeather = 0.4, -- spot: width of the softest rim (rim sharpness 0) as a share of the beam angle, centred on the beam's edge (0-1)
rimLevel = 0.5, -- spot: brightness of a soft rim band as a share of the beam (0.05-1)
pointShadowSoftness = 4.0, -- shadow softness of shadow-casting point lights
sputterRate = 10, -- sputter jumps per second at tempo 1
fastestCycle = 8, -- glow, blink and ember never run more than this many cycles per second whatever the tempo (max 12); sputter never jumps more than twice as often
fadeDistance = 8.0, -- lights fade out over this many metres before the draw distance, shadows before the shadow distance (m)
shadowFadeMs = 250, -- how long a shadow takes to fade out or in when it moves to another light (ms)
drawBudget = 256, -- most light draw calls per frame (a spot uses 1-3); the nearest lights are drawn first
wheelIntensityStep = 0.25, -- SHIFT + wheel changes the selected light's intensity by this much per notch
wheelRangeFactor = 1.1, -- the wheel multiplies or divides the selected light's range by this per notch
feedbackInterval = 150, -- least time between light panel updates (ms)
},
}Read by each player’s game.
| Option | Description |
|---|---|
hotSpotBoost | Spot: how much brighter the hot spot is than the rest of the beam (0.75 is 75 % brighter). The beam’s total light stays the same. 0 to 10. |
rimFeather | Spot: the width of the softest rim (Rim sharpness 0), as a share of the beam angle, centred on the beam’s edge. 0 to 1. |
rimLevel | Spot: the brightness of a soft rim, as a share of the beam. 0.05 to 1. |
pointShadowSoftness | Shadow softness of point lights that cast shadows. 0 to 1000. |
sputterRate | Sputter jumps per second at Tempo 1. 0.1 to 60. |
fastestCycle | Glow, blink and ember never run more than this many cycles per second, whatever the tempo. 0.1 to 12. Sputter never jumps more than twice as often. |
fadeDistance | Lights fade out over this many metres before the draw distance, and shadows before the shadow distance. The fade is never longer than a quarter of that distance. 0 to 1000. |
shadowFadeMs | How long a shadow takes to fade out or in when it moves to another light, in milliseconds. 0 to 10000. |
drawBudget | The budget for extra draw calls per frame. Every light in range is always drawn with at least one call; the extra calls give spot lights their layered beam and let shadows fade softly. The nearest lights get them first, and once the budget is used up the other lights are drawn with one call each. 1 to 100000. |
wheelIntensityStep | Shift + mouse wheel changes the selected light’s intensity by this much per notch. 0.1 to 0.6. |
wheelRangeFactor | The mouse wheel multiplies or divides the selected light’s range by this much per notch. 1.04 to 1.2. |
feedbackInterval | Least time between updates of the Light panel, in milliseconds. 100 to 250. |
Box Select
-- Box Select tool: drag a box to select placed props, then right-click the box
-- to adopt or erase the map props it caught.
Config.BoxSelect = {
maxAdopt = 250, -- most map props one adopt converts; the rest stay in the box for another pass
reach = 100.0, -- map props farther than this from the camera are left out of the box (m)
rescanMs = 500, -- how often the props in the box are counted again (ms)
feedbackMs = 250, -- how often the panel is refreshed while the tool is open (ms)
modelTimeoutMs = 1500, -- how long an adopt waits for a prop's model to load before skipping that prop (ms)
softHideRadius = 1.0, -- an adopted copy hides the original within this radius (m, 0.5-2)
}Read by each player’s game; maxAdopt is checked on the server too. See Box Select.
| Option | Description |
|---|---|
maxAdopt | The most GTA props one Adopt all GTA props inside turns into map props. The rest stay in the box for another run: 12 prop(s) were skipped because one request can only carry so many. Run it again for the rest. |
reach | GTA props farther than this from the camera are left out of the box, in metres. |
rescanMs | How often the GTA props in the box are counted again, in milliseconds. 100 to 10000. |
feedbackMs | How often the Box Select panel is refreshed, in milliseconds. 50 to 500. |
modelTimeoutMs | How long an adopt waits for a prop’s model to load before it skips that prop, in milliseconds. 100 to 10000. |
softHideRadius | An adopted copy hides the GTA original within this many metres. 0.5 to 2. |
Place tool
-- Place tool: dropping props picked in the browser. The settings below are
-- what the panel starts with and what its Reset button goes back to.
Config.Placer = {
ghostAlpha = 140, -- opacity of the preview prop (0-255)
mode = 'land', -- land (on what you aim at) | hover (floats along your aim) | perch (on top of the prop you aim at)
brush = true, -- keep the button held to lay props one after another as you sweep
spacing = 1.5, -- gap between props the brush lays (m); follows each new model's size until you change it
spacingFit = 0.75, -- that automatic gap is this share of the model's footprint diagonal
spacingMin = 0.2, -- smallest gap the slider allows (m)
spacingMax = 75.0, -- largest gap the slider allows (m)
distance = 10.0, -- how far ahead the preview floats in hover mode or when the cursor hits nothing (m)
distanceMin = 0.75, -- CTRL + wheel cannot pull it closer than this (m)
distanceMax = 350.0, -- ... or push it farther than this (m)
distanceStep = 0.75, -- CTRL + wheel moves it by this much per notch (m)
rotateStep = 7.5, -- the wheel turns it by this much per notch (degrees)
heightStep = 0.04, -- SHIFT + wheel raises or lowers it by this much per notch (m)
heightLimit = 180.0, -- the most it can be raised or lowered (m)
alignToSurface = false, -- tilt props to match the surface (land mode)
randomizeHeading = false, -- give each prop a random heading
tiltRange = 0.0, -- random tilt of up to this much either way (degrees)
tiltRangeMax = 60.0, -- largest random tilt the slider allows (degrees)
centerOnTarget = true, -- perch mode: true drops onto the middle of the prop below, false where you aim
grid = 0.0, -- snap drops to a grid of this spacing (m); 0 = off. Separate from the gizmo grid, no panel control
scatter = false, -- every prop the brush lays also scatters copies around it
radius = 3.0, -- scatter radius (m)
radiusMin = 0.5, -- smallest scatter radius the slider allows (m)
radiusMax = 50.0, -- largest scatter radius the slider allows (m)
count = 4, -- props per drop while scattering, the one at the aim point included
countMax = 30, -- most props per drop the slider allows
feedbackMs = 100, -- least time between panel updates while aiming (ms)
}What the Place panel starts with, and what its Reset button goes back to. A player’s changes in the panel stay until they press Reset, reconnect or the resource restarts. Read by each player’s game. See Placing Props.
| Option | Description |
|---|---|
ghostAlpha | Opacity of the preview prop, 0 to 255. |
mode | Mode: land sets the prop on what you aim at, hover floats it along your aim, perch stands it on top of the prop you aim at. Anything else counts as land. |
brush | Brush (hold to keep placing): hold the left mouse button to lay props one after another as you sweep. With false, a click places one prop and the tool goes back to Select. |
spacing | Spacing: the gap between props the brush lays, in metres. It follows the size of each new model until the player sets it. |
spacingFit | That automatic gap is this share of the model’s footprint diagonal. 0.05 to 10. |
spacingMin, spacingMax | The range of the Spacing slider, in metres. spacingMin is at least 0.01. |
distance | How far ahead the preview floats in hover mode, or when the cursor hits nothing, in metres. In hover mode the panel shows it, for example Hovering 10.0 m out. |
distanceMin, distanceMax | Ctrl + mouse wheel cannot move the preview closer or farther than this, in metres. distanceMin is at least 0.1. |
distanceStep | Ctrl + mouse wheel moves it by this much per notch, in metres. |
rotateStep | The mouse wheel turns the prop by this many degrees per notch. |
heightStep | Shift + mouse wheel raises or lowers it by this much per notch, in metres. The panel then shows Height offset 0.20 m with a Clear button. |
heightLimit | The most it can be raised or lowered, in metres. |
alignToSurface | Follow the surface slope: tilt props to match the surface. Not shown in perch mode. |
randomizeHeading | Random spin: give each prop a random heading. |
tiltRange | Tilt variation: a random tilt of up to this many degrees either way. |
tiltRangeMax | The top of the Tilt variation slider, in degrees. 0 to 90. |
centerOnTarget | Drop onto the target’s middle, in perch mode: true drops onto the middle of the prop below, false where you aim. |
grid | Snaps drops to a grid of this spacing, in metres. 0 turns it off. There is no panel control, and it is separate from the gizmo grid. |
scatter | Scatter extra copies: every drop also places copies around it. |
radius | Spread size: the scatter radius, in metres. |
radiusMin, radiusMax | The range of the Spread size slider, in metres. radiusMin is at least 0.1. |
count | Props per drop while scattering, the one at the aim point included. |
countMax | The top of the Props per drop slider. At least 1. |
feedbackMs | Least time between panel updates while aiming, in milliseconds. |
Tool previews
-- Preview props shown by the Array and Fill tools.
Config.Tools = {
ghostCap = 250, -- most preview props one tool shows at once; the rest are drawn as simple markers
ghostAlpha = 120, -- preview prop opacity (0-255)
}The see-through preview props of the Array tool and the Fill tool. Read by each player’s game.
| Option | Description |
|---|---|
ghostCap | The most preview props one tool shows at once. The Array tool draws the rest as box outlines (Ghosts are shown for the first 250 copies, the others appear as box outlines.), the Fill tool as small markers. Up to 5000 for the Array tool and 2000 for the Fill tool. |
ghostAlpha | Opacity of the preview props, 0 to 255. |
Array tool
-- Array tool: repeat the selected props along a line, a grid, a ring or a
-- rectangle outline. start is what the panel shows the first time.
Config.ArrayTool = {
start = {
mode = 'line', -- line (a row), grid (rows x columns), radial (a ring) or perimeter (a rectangle outline)
count = 5, -- slots in a line or ring, counting the original
columns = 3, -- grid columns
rows = 3, -- grid rows
autoSpacing = true, -- fit the gaps and the ring size to the props' own size
spacing = 2.0, -- gap along a line or outline while Auto is off (m)
columnSpacing = 2.0, -- grid column gap while Auto is off (m)
rowSpacing = 2.0, -- grid row gap while Auto is off (m)
radius = 4.0, -- ring radius while Auto is off (m)
depth = 0.0, -- outline depth (m); 0 = square
startAngle = 0.0, -- ring start (degrees)
endAngle = 360.0, -- ring end (degrees); a full turn closes the ring
mirror = false, -- grid rows to the right of the aim, and rings running clockwise
climb = 0.0, -- Line and Radial: each slot sits this much higher than the last (m); makes ramps, stairs and spirals
turnWithRing = true, -- ring copies turn to follow the ring
keepOriginal = true, -- no copy is placed on top of the original
chainSource = false, -- after Apply, the next source keeps the original as well as its new copies
tiltToSurface = false, -- tilt each copy to the ground slope
dropToGround = false, -- set each copy on the ground below it
seed = 1234, -- seed for the random shift and turn
randomTurn = 0.0, -- random turn of each copy (degrees)
randomOffset = 0.0, -- random shift of each copy (m)
randomHeight = 0.0, -- random raise or sink of each copy (m)
},
objectLimit = 600, -- most props one Apply places; count cannot go above it
fitGap = 0.0, -- starting extra gap Auto adds between copies (m); negative overlaps them (panel: Advanced)
rowShift = 0.0, -- starting sideways shift of every other grid row, share of the column gap (-1 to 1; panel: Advanced)
wheelGapStep = 0.05, -- Shift+wheel gap step (m)
wheelAngleStep = 10.0, -- Shift+wheel arc end step in Radial mode (degrees)
wheelDepthStep = 0.5, -- wheel depth step in Perimeter mode (m)
dragDeadZone = 0.3, -- a drag point closer to the source than this (m) leaves the pattern alone, so it cannot flip or collapse
autoNoticeSize = 12.0, -- Auto gaps above this (m) show a note that the model's size box may be larger than it looks
rememberSettings = true, -- keep each player's panel settings between game sessions (client KVP)
wireBoxLimit = 64, -- most copies drawn as boxes per frame once the preview cap is reached
previewDelayMs = 150, -- wait before the preview rebuilds after a change (ms)
panelIntervalMs = 50, -- least time between panel updates (ms)
}Read by each player’s game. See Array Tool.
start is what the Array panel shows the first time a player uses it. With rememberSettings = true, each player’s own panel settings are saved in their game and are used instead of start from then on. Restore defaults under Advanced goes back to start and to the starting fitGap and rowShift, but keeps the current mode.
start field | Description |
|---|---|
mode | Mode: line (Line), grid (Grid), radial (Radial) or perimeter (Perimeter). |
count | Count: slots in a line or ring, the original included. 1 up to objectLimit. |
columns, rows | Columns and Rows of a grid. 1 up to objectLimit. |
autoSpacing | Auto: fit the gaps and the ring size to the props’ own size. Typing a gap in the panel turns it off. |
spacing | Spacing along a line or outline while Auto is off, in metres. 0.02 to 300. |
columnSpacing, rowSpacing | Spacing and Row spacing of a grid while Auto is off, in metres. 0.02 to 300. |
radius | Radius of a ring while Auto is off, in metres. 0.02 to 300. |
depth | Depth of an outline, in metres. 0 makes it square. Up to 300. |
startAngle, endAngle | Arc start and Arc end of a ring, in degrees. -1080 to 1080. A full turn closes the ring. |
mirror | Rows to the right for a grid, Run clockwise for a ring. |
climb | Climb per slot, in Line and Radial mode: each slot sits this much higher than the last, in metres. -10 to 10. |
turnWithRing | Turn with the ring: ring copies turn to follow the ring. |
keepOriginal | Skip the source’s slot: no copy is placed on top of the source. |
chainSource | Keep the source in the next array: after Apply, the next source keeps the original as well as its new copies. |
tiltToSurface | Lean with the ground slope: tilt each copy to the ground slope. |
dropToGround | Rest copies on the ground: set each copy on the ground below it. |
seed | Seed for the random shift and turn. 0 to 2147483647. New seed picks another. |
randomTurn | Vary rotation: random turn of each copy, in degrees. 0 to 180. |
randomOffset | Vary position: random shift of each copy, in metres. 0 to 20. |
randomHeight | Vary height: random raise or sink of each copy, in metres. 0 to 10. |
| Option | Description |
|---|---|
objectLimit | The most props one Apply places. 1 to 5000. Count, Columns and Rows cannot go above it, and a larger pattern shows Layout cut short at the 600-object apply limit. |
fitGap | The starting Auto extra gap (under Advanced): extra gap Auto adds between copies, in metres. A negative value overlaps them. -10 to 10. |
rowShift | The starting Row stagger (under Advanced, Grid only): sideways shift of every other row, as a share of the column gap. -1 to 1. |
wheelGapStep | Shift + mouse wheel changes the gap by this much per notch, in metres, and turns Auto off. 0.01 to 50. |
wheelAngleStep | In Radial mode, Shift + mouse wheel moves Arc end by this many degrees per notch. 0.1 to 180. |
wheelDepthStep | In Perimeter mode, the mouse wheel changes Depth by this much per notch, in metres. 0.01 to 50. |
dragDeadZone | A drag point closer to the source than this, in metres, leaves the pattern alone, so it cannot flip or collapse. 0 to 50. |
autoNoticeSize | When an Auto gap is larger than this, in metres, the panel notes that the model’s size box may be bigger than the prop looks: Auto follows the model’s size box (14.2 m), which can be larger than the prop looks. Type a gap to override it. |
rememberSettings | true saves each player’s panel settings in their game between sessions. |
wireBoxLimit | Once the preview cap of Tool previews is reached, the most copies drawn as box outlines per frame. 0 to 1000. |
previewDelayMs | Wait before the preview rebuilds after a change, in milliseconds. 0 to 5000. |
panelIntervalMs | Least time between panel updates, in milliseconds. 0 to 5000. |
Without Shift, the mouse wheel changes Count in Line and Radial mode and Columns in Grid mode; Alt + mouse wheel changes Rows, and Alt + Shift + mouse wheel the row gap.
Fill tool
-- Fill tool: outline an area on the ground and fill it with props. The
-- first group is what the panel shows when the tool opens.
Config.AreaFill = {
mode = 'random', -- random | grid
spacing = 2.0, -- distance between neighbouring props (m, 0.3-50)
facing = 'random', -- random | fixed
heading = 0.0, -- heading of every prop while facing is fixed (degrees)
rotationSpread = 0.0, -- random turn either way (degrees, 0-180)
heightSpread = 0.0, -- random raise or sink (m)
snapToSurface = true, -- each prop settles onto whatever lies beneath it
tiltToSurface = true, -- tilt each prop to the surface slope
skipWater = true, -- leave out spots under water
seed = 2718, -- seed for the layout
-- The rest have no panel control.
scatter = 0.0, -- grid layout only: each spot may shift at random by at most this distance (m)
raise = 0.0, -- lift every prop by this much, or sink it if negative (m)
slopeLimit = 40.0, -- no props on surfaces steeper than this (degrees)
limit = 750, -- most props one Fill places
minArea = 0.25, -- smallest outline that counts as an area (square metres)
rebuildDelayMs = 100, -- wait before the preview rebuilds after a change (ms)
feedbackMs = 50, -- least time between panel updates (ms)
outlineSegments = 16, -- pieces each outline edge is split into so it follows the ground
markerLimit = 150, -- most planned props drawn as markers per frame once the preview cap is reached
}The first group is what the Fill panel shows each time the tool opens. The rest have no panel control. Read by each player’s game. See Fill Tool.
| Option | Description |
|---|---|
mode | Arrangement: random (Scattered) or grid (Grid). Anything but grid counts as random. |
spacing | Spacing: the distance between neighbouring props, in metres. 0.3 to 50. |
facing | Facing: random (Random) or fixed (Same way). Anything but fixed counts as random. |
heading | Angle: the heading of every prop while Facing is Same way, in degrees. |
rotationSpread | Vary rotation: a random turn either way, in degrees. 0 to 180. |
heightSpread | Vary height: a random raise or sink, in metres. Up to 20; the panel slider goes to 8. |
snapToSurface | Settle onto the surface below: each prop settles onto whatever lies beneath it. Without it, props sit at the average height of the corners. |
tiltToSurface | Lean with the slope: tilt each prop to the surface slope. Only with Settle onto the surface below. |
skipWater | Keep out of water: leave out spots under water. Only with Settle onto the surface below. |
seed | Seed for the layout. 0 to 2147483647. New seed picks another. |
scatter | Grid only: each spot may shift at random by at most this distance, in metres. |
raise | Lifts every prop by this much, or sinks it when negative, in metres. -30 to 30. |
slopeLimit | No props on surfaces steeper than this, in degrees. Up to 89. |
limit | The most props one Fill places. 1 to 2000. A larger layout shows Stops at the 750-prop limit for one fill. |
minArea | The smallest outline that counts as an area, in square metres. A smaller one gets That zone is below the minimum size. Make it bigger to fill it. |
rebuildDelayMs | Wait before the preview rebuilds after a change, in milliseconds. 0 to 5000. |
feedbackMs | Least time between panel updates, in milliseconds. 0 to 5000. |
outlineSegments | Pieces each outline edge is split into, so it follows the ground. 1 to 128. |
markerLimit | Once the preview cap of Tool previews is reached, the most planned props drawn as markers per frame. 0 to 2000. |
Thumbnail studio
-- Thumbnail studio (/mapeditor_thumbs, DEBUG only): batch-captures prop
-- thumbnails into data/thumbs/ via the void studio + chroma key pipeline.
Config.Thumbs = {
resolution = 256, -- output thumbnail size (px, square)
quality = 0.85, -- webp encode quality (0-1)
fov = 40.0, -- fixed camera FOV for uniform perspective
viewYaw = 45.0, -- orbit yaw (deg, front-left 3/4 view)
viewPitch = -18.0, -- orbit pitch (deg, slightly above)
margin = 1.18, -- bounding-sphere framing slack
studio = vector3(0.0, 0.0, -150.0), -- void studio center (under the map)
background = 'black', -- 'black' = plain black backdrop, no keying (best colour fidelity)
-- 'chroma' = magenta backdrop keyed out to transparency
chroma = { r = 255, g = 0, b = 255 }, -- backdrop colour used when background = 'chroma'
clock = { 2, 0 }, -- in-game time used while capturing (night = no ambient tint)
-- Studio light rig. offset is scaled by the prop's size; tweak and use
-- /mapeditor_thumbs_preview <model> to see the result live before a run.
lightPower = 1.0, -- global brightness multiplier for the rig below (lower = less washed out)
-- light rig, camera-relative: offset = { side, toward camera, up }, scaled by prop size
lights = {
{ offset = { 0.0, 3.0, 0.5 }, range = 10.0, intensity = 7.0 },
{ offset = { -2.0, 1.0, 1.5 }, range = 8.0, intensity = 2.5 },
{ offset = { 0.0, -2.5, 1.0 }, range = 8.0, intensity = 2.0 },
},
settleFrames = 18, -- frames waited after camera placement so textures finish streaming
retrySettleFrames = 30, -- extra frames waited before re-shooting a prop that came out blank
captureTimeoutMs = 2000, -- per-capture NUI response deadline (ms)
batchSize = 40, -- thumbs per latent save batch
gcInterval = 20, -- props between collectgarbage() calls
latentRate = 4000000, -- TriggerLatentServerEvent rate (bps)
breatheEvery = 40, -- props between short streamer-eviction pauses
breatheMs = 2000, -- length of the short pause (ms)
restEvery = 400, -- props between long streamer-recovery rests
restMs = 15000, -- length of the long rest (ms)
maxPerRun = 0, -- props per session chunk before stopping; 0 = run the whole catalog in one go
logEach = true, -- print each model to console before spawning (crash breadcrumb)
skipModels = {}, -- model names to skip entirely: { 'prop_bad_frag_01' }
}The thumbnail studio photographs the props of the catalogue for the Prop Browser. It only works with Config.DEBUG on and the editor closed, and only editors can save pictures. Start a run with /mapeditor_thumbs. Each picture is saved on the server as data/thumbs/<model>.webp; the Prop Browser uses those files when Config.ThumbBaseUrl is ''. Restart the resource after a run so the new pictures are served.
During a run, your character is frozen, and the props are placed one by one in an empty studio with a fixed weather and clock. /mapeditor_thumbs_preview <model> shows one prop with the current settings, and /mapeditor_thumbs_stop (End) stops. The resource ships with data/thumbs/index.json, a list of props that count as done, and a plain /mapeditor_thumbs skips those and the props that failed before; add all to photograph every prop. See Commands and Custom Props & Thumbnails.
| Option | Description |
|---|---|
resolution | Size of the square pictures, in pixels. At least 16. |
quality | WebP quality. 0.05 to 1. |
fov | Field of view of the studio camera, in degrees. |
viewYaw, viewPitch | The camera’s angle around and above the prop, in degrees. |
margin | Room around the prop in the frame. A higher value shows the prop smaller. |
studio | Where the studio is, as vector3(x, y, z). The default lies under the map. |
background | black shoots against black and turns the dark background transparent. chroma shoots against the chroma colour and keys it out. |
chroma | The backdrop colour for chroma. The keying looks for magenta, so keep it magenta. |
clock | The in-game time during a run, { hour, minute }. |
lightPower | Brightness of the whole light rig. Lower is less washed out. |
lights | The studio lights, placed relative to the camera: offset = { side, toward camera, up }, range and intensity. Offsets and range grow with the prop’s size. A light can also take color = { r, g, b }; without it, it is white. |
settleFrames | Frames waited after the camera is placed, so textures finish loading. |
retrySettleFrames | Frames waited before a prop that came out blank is shot again from another angle. At least 2. |
captureTimeoutMs | How long one picture may take, in milliseconds. |
batchSize | Pictures sent to the server per save. Keep it at 64 or less: the server ignores larger batches, and the run stops with Couldn’t save that. Please try again. |
gcInterval | Props between memory clean-ups. Use 1 or more. |
latentRate | The upload rate of the pictures to the server. |
breatheEvery, breatheMs | A short pause of breatheMs milliseconds after every breatheEvery props. breatheEvery is at least 10. |
restEvery, restMs | A long rest of restMs milliseconds after every restEvery props. restEvery is at least 100. |
maxPerRun | Stops after this many props, so you can reconnect and run again: Chunk saved (400 thumbs, stopped at 400 of 14843). Reconnect and rerun /mapeditor_thumbs to continue safely. 0 runs the whole catalogue in one go; 1 to 99 count as 100. |
logEach | Prints each model name in the F8 console before it is placed. |
skipModels | Model names to skip, for example { 'prop_bad_frag_01' }. |
Gizmo
-- Gizmo: the move and rotate handles on the selection. The first group is
-- how the top bar options start after a resource start.
Config.Gizmo = {
mode = 'move', -- handles the gizmo opens with: 'move' arrows or 'rotate' rings
space = 'world', -- 'world' keeps the axes on the map grid, 'local' turns them with the selected prop
gridSnap = false, -- moves snap to the grid
turnSnap = true, -- turns snap to turnStep (on even though the Snap chip starts off)
contactSnap = false, -- Stick: dragged props line up with neighbours and settle on the ground
gridStep = 0.5, -- grid spacing for snapped moves (m); also the gap between duplicates while grid snap is off
turnStep = 15.0, -- a snapped turn moves in steps of this many degrees
stickReach = 0.45, -- Stick: a neighbour pulls from this close (m) and lets go a quarter further out
stickScanRadius = 25.0, -- Stick: only props this close to the dragged selection are considered (m)
stickScanMax = 150, -- Stick: at most this many props are considered, nearest first
stickMaxSpan = 30.0, -- Stick: props that report a size larger than this (m) are not stuck to, because such sizes are usually wrong
groundReach = 1.0, -- Stick: a prop this close to the ground settles onto it (m) and leaves it when lifted a quarter further
screenSize = 0.1, -- arrow length as a share of the screen height
nearDistance = 2.0, -- the gizmo stops shrinking when the camera is closer than this (m)
farDistance = 300.0, -- the gizmo stops growing when the camera is farther than this (m)
liftFrom = 1.5, -- selections taller than this get their handles raised (m)
liftShare = 0.67, -- raised handles sit at this share of the selection's height
liftMax = 12.0, -- handles are never raised more than this above the selection's centre (m)
ringSegments = 40, -- straight pieces per rotate ring; more is rounder but costs more draw calls
colorX = { 235, 70, 70 }, -- X axis (r, g, b)
colorY = { 95, 205, 100 }, -- Y axis (r, g, b)
colorZ = { 122, 173, 255 }, -- Z axis (r, g, b)
colorAccent = { 122, 173, 255 }, -- centre square, lift line, stick guides and rotate wedge (r, g, b)
colorActive = { 245, 245, 245 }, -- handle under the cursor or being dragged (r, g, b)
}The move and rotate handles on the selection. The first five options set how the chips of the top bar start after a resource start; a player’s choice with Move / Rotate, World / Local, Snap and Stick stays until they reconnect or the resource restarts. Every number has to be above 0, otherwise the default is used. Read by each player’s game. See Move & Rotate Gizmo.
| Option | Description |
|---|---|
mode | The handles the gizmo starts with: move (arrows) or rotate (rings). G switches between them. |
space | world keeps the axes on the map grid, local turns them with the selected prop. |
gridSnap | true starts with moves snapping to gridStep. This is the Snap chip. |
turnSnap | true makes turns snap to turnStep, even while the Snap chip is off. Turning Snap on or off sets both grid and turn snapping. |
contactSnap | Stick: dragged props line up with neighbouring placed props and settle on the ground. |
gridStep | Grid spacing for snapped moves, in metres. Clone uses it for its gap too, see Edit actions. |
turnStep | The step of a snapped turn, in degrees. |
stickReach | Stick: a neighbour pulls from this close, in metres, and lets go a quarter further out. |
stickScanRadius | Stick: only placed props this close to the dragged selection are considered, in metres. |
stickScanMax | Stick: at most this many props are considered, nearest first. |
stickMaxSpan | Stick: props that report a size larger than this, in metres, are not stuck to. |
groundReach | Stick: a prop this close to the ground settles onto it, in metres, and leaves it when lifted a quarter further. |
screenSize | Arrow length as a share of the screen height. |
nearDistance | The gizmo stops shrinking when the camera is closer than this, in metres. |
farDistance | The gizmo stops growing when the camera is farther than this, in metres. |
liftFrom | Selections taller than this get their handles raised, in metres. |
liftShare | Raised handles sit at this share of the selection’s height. At most 1. |
liftMax | Handles are never raised more than this above the selection’s centre, in metres. |
ringSegments | Straight pieces per rotate ring. More is rounder but costs more draw calls. 8 to 128. |
colorX, colorY, colorZ | The axis colours, { r, g, b }. |
colorAccent | Colour of the centre square, the lift line, the Stick guides and the rotate wedge. |
colorActive | Colour of the handle under the cursor or being dragged. |
Edit actions
-- Edit commands from the right-click menu and hotkeys.
Config.EditActions = {
groundProbeUp = 5.0, -- Ground: the search starts this far above each prop, so half-sunk props still land on top (m)
groundProbeDepth = 250.0, -- Ground: ... and reaches this far down (m)
cloneGapSteps = 1.0, -- Clone: the copy lands the selection's width plus this many grid steps to the side
focusFactor = 1.8, -- Focus: camera distance per metre of the selection's size
focusMin = 8.0, -- Focus: never closer than this (m)
focusMax = 300.0, -- Focus: never farther than this (m)
focusDefault = 10.0, -- Focus: distance used when the selection's size cannot be measured (m)
focusSteepAngle = 12.0, -- Focus: a view within this many degrees of straight up or down counts as steep
focusPitch = 30.0, -- Focus: a steep view is replaced by one looking down this many degrees
}Read by each player’s game. See Selecting & Editing Props.
| Option | Description |
|---|---|
groundProbeUp | Set On Ground in the right-click menu, or the Ground key (Shift + G): the search for the ground starts this far above each prop, in metres, so half-sunk props still land on top. |
groundProbeDepth | … and reaches this far down, in metres. When it finds nothing, GTA’s ground height at that spot is used. |
cloneGapSteps | Clone: the copy lands next to the selection, the selection’s width plus this many grid steps (gridStep) to the side. A negative value counts as 1. |
focusFactor | Select in world, in the Created tab of the Prop Browser and in the Workshop’s Placed Props tab, moves the flying camera to the prop. It stops this many metres away per metre of the selection’s size. When the camera is not flying, it stays where it is. |
focusMin | … but never closer than this, in metres. |
focusMax | … and never farther than this, in metres. |
focusDefault | The distance used when the selection’s size cannot be measured, in metres. |
focusSteepAngle | A view within this many degrees of straight up or down counts as steep. |
focusPitch | A steep view is replaced by one looking down this many degrees. |
Camera look
-- Camera look (hold the right mouse button).
Config.Input = {
lookDeadZone = 0.005, -- mouse movement above this while looking hides the cursor until the look ends (keep it between 0 and 0.02)
}While you hold the right mouse button to look around, moving the mouse more than this hides the cursor until you let go, and the cursor then comes back where it was. A negative value counts as 0. Read by each player’s game. See Camera & Controls.
Import and export
-- Map import and export (Workshop > Publish).
Config.Formats = {
importMaxBytes = 33554432, -- largest paste import and preview accept (bytes; 32 MiB)
previewCost = 5.0, -- rate-limit tokens one import preview costs ...
previewCostPerMiB = 0.7, -- ... plus this many per MiB of pasted text; keep the total below Config.RateLimit.tokens
previewUnknownMax = 20, -- most unknown model names a preview lists
ymapEntityMargin = 5.0, -- YMAP export: padding around the props' positions (m)
ymapStreamMargin = 5.0, -- YMAP export: padding added to each prop's LOD distance for streaming (m)
detectScanBytes = 262144, -- how much of a paste is scanned to recognise its format (bytes)
}The import and export of the Workshop’s Publish tab. Read by the server. See Import, Export & Publish.
| Option | Description |
|---|---|
importMaxBytes | The largest paste Preview and Import accept, in bytes (32 MiB). A larger paste reads That doesn’t read as a map bundle. |
previewCost | Rate limit tokens one Preview costs … |
previewCostPerMiB | … plus this many per MiB of pasted text. The total is capped just below Config.RateLimit.tokens, so a preview can always run with a full bucket. |
previewUnknownMax | The most unknown model names a preview lists under Not in the catalogue, will be skipped. |
ymapEntityMargin | YMAP export: padding around the props’ positions, in metres. |
ymapStreamMargin | YMAP export: padding added to each prop’s render distance for streaming, in metres. |
detectScanBytes | How much of a pasted XML text is read to tell a Menyoo file from a YMAP, in bytes. At least 8192. |

