Bablo ResourcesDocs

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

LUA
Config.DEBUG = false

Prints 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

LUA
-- 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

LUA
-- 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

LUA
-- 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

LUA
-- 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:

FrameworkCounts as admin
QBCoreThe admin or god permission
QboxThe admin permission
ESXThe 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:

PLAINTEXT
add_ace group.admin mapeditor.use allow

See Installation.


Rate limit

LUA
-- 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.

OptionDescription
tokensThe size of the bucket: how many requests a player can send in a burst.
refillPerSecondHow 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

LUA
-- 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.0

The flying camera of the editor. Each player’s game uses these values.

OptionDescription
FreecamSpeeds.baseFlying speed in metres per second.
FreecamSpeeds.fastSpeed multiplier while the Fast key is held (Shift by default).
FreecamSpeeds.slowSpeed multiplier while the Slow key is held (Alt by default).
FreecamSensitivityHow fast the camera turns with the mouse, while flying and while you hold the right mouse button to look around.
FreecamFovThe 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

LUA
-- 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

LUA
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.

FieldDescription
idA category of the prop catalogue in data/props.json. The 20 ids above are the ones the catalogue uses.
labelThe 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

LUA
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

LUA
-- 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' }.

FieldDescription
modelThe model name. A resource on your server has to stream it, or picking it shows That prop couldn’t be loaded or spawned.
labelThe name in the Prop Browser. Left out, the model name is shown.
categoryA 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

LUA
-- 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 = 50000

All four are read on the server.

OptionDescription
DefaultMapNameThe 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.
PurgeDeletedAfterDaysA 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.
MaxObjectsPerMapThe most placed props one map can hold.
MaxObjectsTotalThe 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

LUA
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.

OptionDescription
frozentrue keeps new props fixed in place (Frozen).
collisiontrue makes new props solid (Collision).
gravitytrue gives new props gravity. It only shows on props that are not frozen. There is no panel control for it.
alphaOpacity from 0 (invisible) to 255 (solid), the Alpha field.
lodRender distance in metres, the Render Distance field. It is kept inside Config.LodRange.
visible, lockedNot 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

LUA
-- 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
OptionDescription
LodRangeThe 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.
ModelLoadTimeoutMsHow 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

LUA
-- 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)
}
OptionDescription
depthHow 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.
keepDaysEntries 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.
replyTimeoutMsHow 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

LUA
Config.PointerReach = 600.0 -- cursor ray reach (m); short values drop props in mid-air when flying high

How 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

LUA
Config.StreamCellSize = 150.0
Config.StreamRadius = 300.0
Config.StreamInterval = 750

Placed 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.

OptionDescription
StreamCellSizeThe size of one cell, in metres. Props load and unload a whole cell at a time.
StreamRadiusHow 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.
StreamIntervalHow often each player’s game checks which cells to load, in milliseconds.

See Map Streaming & Sync.


Workshop

LUA
-- 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.

OptionDescription
maxCategoryDepthHow 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, loadDistanceMaxThe 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.
capWarnFreeA 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

LUA
-- 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
}
OptionDescription
tickSecondsHow 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.
maxRulesThe 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

LUA
-- 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.

OptionDescription
hitReuseMsOne result is reused for this many milliseconds before the next ray. A negative value counts as 30.
missDistanceWhen 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

LUA
-- 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.

OptionDescription
colorSelectedColour 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.
colorUnderCursorColour of the outline and box of an unselected prop under the cursor.
hoverMsHow often the prop under the cursor is looked up, in milliseconds.
alwaysWireboxtrue 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.
wireboxMaxThe most selection boxes drawn at once.
wireboxAlphaOpacity of the boxes, 0 to 255.
pickMinA click this close to a prop still picks it, however small the prop looks. A share of the screen.
pickMaxThe most click slack a large prop gets, so it does not take clicks meant for its neighbours. A value below pickMin counts as pickMin.
pickScanMaxThe most props one click checks.
worldHintCooldownMsClicking 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

LUA
-- 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.

OptionDescription
pauseAfterHow many unreadable props within pauseWindowMs start a pause. 3 to 500; higher pauses less readily.
pauseWindowMsHow close together those failures must come, in milliseconds. 100 to 60000. Slower, occasional failures never start a pause.
resumeAfterMsHow 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

LUA
-- 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)
}
OptionDescription
radiusErase 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.
sweepMsHow often each player’s game removes copies of hidden props that streamed back in, in milliseconds.

See Delete Mode.


Delete mode

LUA
-- 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.

OptionDescription
nearbyRadiusMinThe smallest radius Erase all of this model nearby uses, in metres. Never below 0.5.
nearbyRadiusMaxThe largest radius it uses, in metres. Never above 100.
hoverMsHow often the prop under the cursor is looked up in Delete mode, in milliseconds.
feedbackMsLeast time between updates of the Delete mode panel, in milliseconds.
colorDeleteColour of the box around a prop a click will remove, { r, g, b }.
colorRefusedColour of the box around a prop that cannot be removed, such as a vehicle or a prop another resource controls.
boxAlphaOpacity of the box, 0 to 255.
focusFactorGo 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.
focusSteepPitchWhen 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

LUA
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
    -- ...
}
OptionDescription
maxPerMapThe 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.
maxTotalThe most lights across all maps. More are refused with The server has reached its light limit. Checked on the server.
drawDistanceLights 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.
shadowDistanceShadows stop at this distance from the camera, in metres. 0 to 100000.
maxShadowsHow many shadow-casting lights are drawn at once, nearest first. 0 to 8.
idleWaitWhile no light is in range, how often the game looks for lights again, in milliseconds. 16 to 10000.
dropLiftHow high above the clicked spot a new light is placed, in metres.
autoNighttrue 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.
autoNightTimeThe time it switches to, { hour, minute }.
dayStartHour, dayEndHourThe daylight window that triggers it: from dayStartHour up to, but not including, dayEndHour.
markerColour 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.
markerDistanceHow far away light handles are drawn and can be clicked, in metres. Handles show whenever the editor is open.
markerMaxThe most light handles drawn at once.
markerSizeRadius of a handle, in metres. The selected light’s handle is larger.
markerAlphaOpacity of the orb. The rings around it stay solid.

Light defaults

LUA
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.

OptionPanelDescription
enabledEnabledtrue switches new lights on.
typeTypepoint glows all around, spot shines one way. Anything else counts as point.
rgbColour{ r, g, b }, each 0 to 255.
intensityIntensityBrightness.
rangeRangeHow far the light reaches, in metres.
shadowCast shadowstrue makes new lights cast shadows.
effectEffectsteady, glow, blink, sputter or ember. An unknown value counts as steady.
dimDepthDimmingHow much of the brightness an effect takes away at its lowest, 0 to 1.
cycleRateTempoThe effect’s tempo. 1 is one glow or blink cycle per second.
beamAngleBeam angle (from centre)Spot: the angle from the middle of the beam to its edge, in degrees.
coreAngleHot spot (from centre)Spot: the angle of the brighter hot spot, from the middle. Never wider than beamAngle.
edgeSharpnessRim sharpnessSpot: 0 gives a soft rim, 1 a crisp one.
falloffDrop-offSpot: how quickly the beam fades toward its reach.

Light limits

LUA
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

LUA
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.

OptionDescription
hotSpotBoostSpot: 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.
rimFeatherSpot: 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.
rimLevelSpot: the brightness of a soft rim, as a share of the beam. 0.05 to 1.
pointShadowSoftnessShadow softness of point lights that cast shadows. 0 to 1000.
sputterRateSputter jumps per second at Tempo 1. 0.1 to 60.
fastestCycleGlow, 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.
fadeDistanceLights 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.
shadowFadeMsHow long a shadow takes to fade out or in when it moves to another light, in milliseconds. 0 to 10000.
drawBudgetThe 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.
wheelIntensityStepShift + mouse wheel changes the selected light’s intensity by this much per notch. 0.1 to 0.6.
wheelRangeFactorThe mouse wheel multiplies or divides the selected light’s range by this much per notch. 1.04 to 1.2.
feedbackIntervalLeast time between updates of the Light panel, in milliseconds. 100 to 250.

Box Select

LUA
-- 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.

OptionDescription
maxAdoptThe 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.
reachGTA props farther than this from the camera are left out of the box, in metres.
rescanMsHow often the GTA props in the box are counted again, in milliseconds. 100 to 10000.
feedbackMsHow often the Box Select panel is refreshed, in milliseconds. 50 to 500.
modelTimeoutMsHow long an adopt waits for a prop’s model to load before it skips that prop, in milliseconds. 100 to 10000.
softHideRadiusAn adopted copy hides the GTA original within this many metres. 0.5 to 2.

Place tool

LUA
-- 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.

OptionDescription
ghostAlphaOpacity of the preview prop, 0 to 255.
modeMode: 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.
brushBrush (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.
spacingSpacing: the gap between props the brush lays, in metres. It follows the size of each new model until the player sets it.
spacingFitThat automatic gap is this share of the model’s footprint diagonal. 0.05 to 10.
spacingMin, spacingMaxThe range of the Spacing slider, in metres. spacingMin is at least 0.01.
distanceHow 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, distanceMaxCtrl + mouse wheel cannot move the preview closer or farther than this, in metres. distanceMin is at least 0.1.
distanceStepCtrl + mouse wheel moves it by this much per notch, in metres.
rotateStepThe mouse wheel turns the prop by this many degrees per notch.
heightStepShift + 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.
heightLimitThe most it can be raised or lowered, in metres.
alignToSurfaceFollow the surface slope: tilt props to match the surface. Not shown in perch mode.
randomizeHeadingRandom spin: give each prop a random heading.
tiltRangeTilt variation: a random tilt of up to this many degrees either way.
tiltRangeMaxThe top of the Tilt variation slider, in degrees. 0 to 90.
centerOnTargetDrop onto the target’s middle, in perch mode: true drops onto the middle of the prop below, false where you aim.
gridSnaps 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.
scatterScatter extra copies: every drop also places copies around it.
radiusSpread size: the scatter radius, in metres.
radiusMin, radiusMaxThe range of the Spread size slider, in metres. radiusMin is at least 0.1.
countProps per drop while scattering, the one at the aim point included.
countMaxThe top of the Props per drop slider. At least 1.
feedbackMsLeast time between panel updates while aiming, in milliseconds.

Tool previews

LUA
-- 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.

OptionDescription
ghostCapThe 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.
ghostAlphaOpacity of the preview props, 0 to 255.

Array tool

LUA
-- 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 fieldDescription
modeMode: line (Line), grid (Grid), radial (Radial) or perimeter (Perimeter).
countCount: slots in a line or ring, the original included. 1 up to objectLimit.
columns, rowsColumns and Rows of a grid. 1 up to objectLimit.
autoSpacingAuto: fit the gaps and the ring size to the props’ own size. Typing a gap in the panel turns it off.
spacingSpacing along a line or outline while Auto is off, in metres. 0.02 to 300.
columnSpacing, rowSpacingSpacing and Row spacing of a grid while Auto is off, in metres. 0.02 to 300.
radiusRadius of a ring while Auto is off, in metres. 0.02 to 300.
depthDepth of an outline, in metres. 0 makes it square. Up to 300.
startAngle, endAngleArc start and Arc end of a ring, in degrees. -1080 to 1080. A full turn closes the ring.
mirrorRows to the right for a grid, Run clockwise for a ring.
climbClimb per slot, in Line and Radial mode: each slot sits this much higher than the last, in metres. -10 to 10.
turnWithRingTurn with the ring: ring copies turn to follow the ring.
keepOriginalSkip the source’s slot: no copy is placed on top of the source.
chainSourceKeep the source in the next array: after Apply, the next source keeps the original as well as its new copies.
tiltToSurfaceLean with the ground slope: tilt each copy to the ground slope.
dropToGroundRest copies on the ground: set each copy on the ground below it.
seedSeed for the random shift and turn. 0 to 2147483647. New seed picks another.
randomTurnVary rotation: random turn of each copy, in degrees. 0 to 180.
randomOffsetVary position: random shift of each copy, in metres. 0 to 20.
randomHeightVary height: random raise or sink of each copy, in metres. 0 to 10.
OptionDescription
objectLimitThe 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.
fitGapThe starting Auto extra gap (under Advanced): extra gap Auto adds between copies, in metres. A negative value overlaps them. -10 to 10.
rowShiftThe starting Row stagger (under Advanced, Grid only): sideways shift of every other row, as a share of the column gap. -1 to 1.
wheelGapStepShift + mouse wheel changes the gap by this much per notch, in metres, and turns Auto off. 0.01 to 50.
wheelAngleStepIn Radial mode, Shift + mouse wheel moves Arc end by this many degrees per notch. 0.1 to 180.
wheelDepthStepIn Perimeter mode, the mouse wheel changes Depth by this much per notch, in metres. 0.01 to 50.
dragDeadZoneA drag point closer to the source than this, in metres, leaves the pattern alone, so it cannot flip or collapse. 0 to 50.
autoNoticeSizeWhen 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.
rememberSettingstrue saves each player’s panel settings in their game between sessions.
wireBoxLimitOnce the preview cap of Tool previews is reached, the most copies drawn as box outlines per frame. 0 to 1000.
previewDelayMsWait before the preview rebuilds after a change, in milliseconds. 0 to 5000.
panelIntervalMsLeast 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

LUA
-- 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.

OptionDescription
modeArrangement: random (Scattered) or grid (Grid). Anything but grid counts as random.
spacingSpacing: the distance between neighbouring props, in metres. 0.3 to 50.
facingFacing: random (Random) or fixed (Same way). Anything but fixed counts as random.
headingAngle: the heading of every prop while Facing is Same way, in degrees.
rotationSpreadVary rotation: a random turn either way, in degrees. 0 to 180.
heightSpreadVary height: a random raise or sink, in metres. Up to 20; the panel slider goes to 8.
snapToSurfaceSettle onto the surface below: each prop settles onto whatever lies beneath it. Without it, props sit at the average height of the corners.
tiltToSurfaceLean with the slope: tilt each prop to the surface slope. Only with Settle onto the surface below.
skipWaterKeep out of water: leave out spots under water. Only with Settle onto the surface below.
seedSeed for the layout. 0 to 2147483647. New seed picks another.
scatterGrid only: each spot may shift at random by at most this distance, in metres.
raiseLifts every prop by this much, or sinks it when negative, in metres. -30 to 30.
slopeLimitNo props on surfaces steeper than this, in degrees. Up to 89.
limitThe most props one Fill places. 1 to 2000. A larger layout shows Stops at the 750-prop limit for one fill.
minAreaThe 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.
rebuildDelayMsWait before the preview rebuilds after a change, in milliseconds. 0 to 5000.
feedbackMsLeast time between panel updates, in milliseconds. 0 to 5000.
outlineSegmentsPieces each outline edge is split into, so it follows the ground. 1 to 128.
markerLimitOnce the preview cap of Tool previews is reached, the most planned props drawn as markers per frame. 0 to 2000.

Thumbnail studio

LUA
-- 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.

OptionDescription
resolutionSize of the square pictures, in pixels. At least 16.
qualityWebP quality. 0.05 to 1.
fovField of view of the studio camera, in degrees.
viewYaw, viewPitchThe camera’s angle around and above the prop, in degrees.
marginRoom around the prop in the frame. A higher value shows the prop smaller.
studioWhere the studio is, as vector3(x, y, z). The default lies under the map.
backgroundblack shoots against black and turns the dark background transparent. chroma shoots against the chroma colour and keys it out.
chromaThe backdrop colour for chroma. The keying looks for magenta, so keep it magenta.
clockThe in-game time during a run, { hour, minute }.
lightPowerBrightness of the whole light rig. Lower is less washed out.
lightsThe 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.
settleFramesFrames waited after the camera is placed, so textures finish loading.
retrySettleFramesFrames waited before a prop that came out blank is shot again from another angle. At least 2.
captureTimeoutMsHow long one picture may take, in milliseconds.
batchSizePictures 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.
gcIntervalProps between memory clean-ups. Use 1 or more.
latentRateThe upload rate of the pictures to the server.
breatheEvery, breatheMsA short pause of breatheMs milliseconds after every breatheEvery props. breatheEvery is at least 10.
restEvery, restMsA long rest of restMs milliseconds after every restEvery props. restEvery is at least 100.
maxPerRunStops 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.
logEachPrints each model name in the F8 console before it is placed.
skipModelsModel names to skip, for example { 'prop_bad_frag_01' }.

Gizmo

LUA
-- 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.

OptionDescription
modeThe handles the gizmo starts with: move (arrows) or rotate (rings). G switches between them.
spaceworld keeps the axes on the map grid, local turns them with the selected prop.
gridSnaptrue starts with moves snapping to gridStep. This is the Snap chip.
turnSnaptrue makes turns snap to turnStep, even while the Snap chip is off. Turning Snap on or off sets both grid and turn snapping.
contactSnapStick: dragged props line up with neighbouring placed props and settle on the ground.
gridStepGrid spacing for snapped moves, in metres. Clone uses it for its gap too, see Edit actions.
turnStepThe step of a snapped turn, in degrees.
stickReachStick: a neighbour pulls from this close, in metres, and lets go a quarter further out.
stickScanRadiusStick: only placed props this close to the dragged selection are considered, in metres.
stickScanMaxStick: at most this many props are considered, nearest first.
stickMaxSpanStick: props that report a size larger than this, in metres, are not stuck to.
groundReachStick: a prop this close to the ground settles onto it, in metres, and leaves it when lifted a quarter further.
screenSizeArrow length as a share of the screen height.
nearDistanceThe gizmo stops shrinking when the camera is closer than this, in metres.
farDistanceThe gizmo stops growing when the camera is farther than this, in metres.
liftFromSelections taller than this get their handles raised, in metres.
liftShareRaised handles sit at this share of the selection’s height. At most 1.
liftMaxHandles are never raised more than this above the selection’s centre, in metres.
ringSegmentsStraight pieces per rotate ring. More is rounder but costs more draw calls. 8 to 128.
colorX, colorY, colorZThe axis colours, { r, g, b }.
colorAccentColour of the centre square, the lift line, the Stick guides and the rotate wedge.
colorActiveColour of the handle under the cursor or being dragged.

Edit actions

LUA
-- 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.

OptionDescription
groundProbeUpSet 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.
cloneGapStepsClone: 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.
focusFactorSelect 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.
focusDefaultThe distance used when the selection’s size cannot be measured, in metres.
focusSteepAngleA view within this many degrees of straight up or down counts as steep.
focusPitchA steep view is replaced by one looking down this many degrees.

Camera look

LUA
-- 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

LUA
-- 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.

OptionDescription
importMaxBytesThe largest paste Preview and Import accept, in bytes (32 MiB). A larger paste reads That doesn’t read as a map bundle.
previewCostRate 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.
previewUnknownMaxThe most unknown model names a preview lists under Not in the catalogue, will be skipped.
ymapEntityMarginYMAP export: padding around the props’ positions, in metres.
ymapStreamMarginYMAP export: padding added to each prop’s render distance for streaming, in metres.
detectScanBytesHow much of a pasted XML text is read to tell a Menyoo file from a YMAP, in bytes. At least 8192.