Custom Props & Thumbnails
The Prop Browser lists the GTA props of the catalogue that ships with the resource (data/props.json, 14,843 props) and the props you add in config.lua. Every tile shows a thumbnail: a small picture of the prop. See Prop Browser.
Adding your own props
-- Custom streamed props to add to the browser: { model = 'my_prop', label = 'My Prop', category = 'misc' }
Config.CustomProps = {}Add one line for each prop, for example:
Config.CustomProps = {
{ model = 'vespucci_bench_01', label = 'Vespucci Bench', category = 'seating' },
{ model = 'pier_lamp_02', label = 'Pier Lamp', category = 'lights' },
}| Field | What it is |
|---|---|
model | The model name, as your stream resource names it. Required. |
label | The name on the tile. Without it, the tile shows the model name. |
category | The id of a prop browser category in Config.Categories, for example 'seating'. Without it, the prop goes under misc. |
Your props come after the catalogue’s props, under All Objects and under their category. The search box finds them by label and by model name. A model that is already in the catalogue is not added a second time. A prop with a category that is not in Config.Categories only shows under All Objects and in the search. With Config.DEBUG on, the server console then prints a line such as CustomProps: vespucci_bench_01 has unknown category benches.
The server only saves placed props whose model is in the catalogue or in Config.CustomProps. Any other model is refused with That model isn’t allowed., and imports skip it (the import preview lists it under Not in the catalogue, will be skipped). The list is read when the resource starts, so restart it after a change. See Custom props and Categories.
Streaming the model
The editor does not stream models itself. Stream your props from a resource of your own, with the files in its stream folder, and start that resource on your server.
When a player’s game can’t load a model, picking it in the browser gives That prop couldn’t be loaded or spawned., and placed props of that model don’t show up. The game tries such a prop again 30 seconds later.
To check a model, turn Config.DEBUG on and run /mapeditor_probe vespucci_bench_01. The F8 console prints the size box of the model, or could not be spawned or measured when the game can’t load it. See Commands.
Where thumbnails come from
Config.ThumbBaseUrl = 'https://props.babloresources.com/'For every tile, the prop browser:
- loads
<Config.ThumbBaseUrl><model>.webp, for examplehttps://props.babloresources.com/prop_bench_01a.webp. A/missing at the end of the URL is added. - If that fails, it loads
data/thumbs/<model>.webpfrom the resource. - If that fails too, the tile shows a
?.
While a picture loads, the tile shows a loading placeholder. With Config.ThumbBaseUrl = '', the browser skips the first step and only uses data/thumbs. See Thumbnails.
The resource ships without pictures in data/thumbs. With Config.ThumbBaseUrl = '', every tile shows a ? until you make the thumbnails with the thumbnail studio.
To host the pictures yourself, set Config.ThumbBaseUrl to your own URL and put a <model>.webp there for every prop, the catalogue’s included. Props that are missing there fall back to data/thumbs.
A thumbnail for your own prop
A custom prop shows a ? until a picture named after its model is found in one of the two places:
- Make a picture of the prop and save it as a WebP file named after the model, for example
vespucci_bench_01.webp. The tiles are square and the picture is scaled to fit. The thumbnail studio makes pictures of 256 by 256 pixels. - Put it in the
data/thumbsfolder ofbablo-mapeditorand restart the resource, or upload it to your own URL when you use one.
The thumbnail studio below can’t photograph your own props, because its runs only go through the catalogue in data/props.json. Its preview works with any model: /mapeditor_thumbs_preview vespucci_bench_01 shows your prop in the studio light, so you can take the picture yourself.
Thumbnail studio
The thumbnail studio only works while Config.DEBUG = true. Use it on a test server, and turn debug off again afterwards.
The studio photographs catalogue props one by one and saves the pictures in data/thumbs of the resource. Only editors can save pictures: for anyone else the server does not answer, and the run stops with You don’t have permission to generate thumbnails. Close the editor first, or you get Close the map editor before running a thumbnail batch.
-- 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)
-- ...
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)
-- ...
maxPerRun = 0, -- props per session chunk before stopping; 0 = run the whole catalog in one go
-- ...
skipModels = {}, -- model names to skip entirely: { 'prop_bad_frag_01' }
}Every setting of the studio is on Thumbnail studio.
A run
- Close the editor and run
/mapeditor_thumbs. - Your character is frozen, and the camera moves to the studio under the map (
studio). Your own game gets clear weather and the clock fromclock(02:00). - Each prop is spawned in the studio, photographed and removed again. A panel at the top shows Capturing thumbnails, the progress, the current model, the saved and failed counts, and
ENDstop. During the short pauses it shows letting the streamer breathe…. - The pictures are saved on the server in batches of 40, as
data/thumbs/<model>.webp, and each model is added todata/thumbs/index.json. When the run ends, the models that failed are written todata/thumbs/failed.jsonwith the reason. - At the end: Thumbnails done: 120 saved, 3 failed.
Endstops the run early: Thumbnail run cancelled. Batches that were saved stay saved. - Restart the resource, so players get the new files.
The browser only uses these pictures when Config.ThumbBaseUrl is '', or when the URL has no picture of that prop. See Where thumbnails come from.
Studio commands
| Command | What it photographs |
|---|---|
/mapeditor_thumbs | Every catalogue prop that is not in index.json or failed.json yet. |
/mapeditor_thumbs <first> <count> | <count> entries of the catalogue, starting at entry number <first>. |
/mapeditor_thumbs all | Every catalogue prop, also the ones in index.json and failed.json. force does the same. It can follow the numbers: /mapeditor_thumbs 1 500 all. |
/mapeditor_thumbs_find <text> [count] | Up to count (25) catalogue props whose model name contains <text>, which needs at least 3 characters. Also props that already have a picture. |
/mapeditor_thumbs_retry [count] | Up to count (60) models from failed.json, with more time to load each model. It uses the failed.json from the last start of the resource, so restart after a run before you retry. |
/mapeditor_thumbs_preview <model> | Nothing. It shows one model in the studio light until you press End. Any model works, your own props included. |
/mapeditor_thumbs_stop | Stops the run or the preview. Bound to End, the FiveM key binding Map Editor: stop thumbnail run. |
The index.json and failed.json that ship with the resource already list most of the catalogue, so a plain /mapeditor_thumbs only photographs the props that are in neither list. Add all to photograph everything.
With maxPerRun above 0 (at least 100), a run stops after that many props: Chunk saved (480 thumbs, stopped at 512 of 14843). Reconnect and rerun /mapeditor_thumbs to continue safely. The next run skips what was saved and goes on. Models in skipModels are never photographed.
failed.json gives a reason for each model. The common ones are uniform when the picture came out as one flat colour, nocd when the game does not know the model, timeout when it did not load or answer in time, spawn when it could not be spawned, and degenerate when its size box could not be measured.
Catalogue commands
These commands remove models from the prop catalogue data/props.json, for example models your game can’t spawn. Your own props in Config.CustomProps are never touched.
| Command | What it does | Who |
|---|---|---|
/mapeditor_catalog_validate | Checks every catalogue model against the game files and prints in the F8 console how many can’t be spawned, with up to 15 names. | Every player, with debug on |
/mapeditor_catalog_validate apply | Removes those models from the catalogue. | Editors, with debug on |
/mapeditor_catalog_clean | The same check, plus the catalogue models that failed with spawn, timeout or nocd in thumbnail runs. Models that only photograph as one flat colour are kept. | Every player, with debug on |
/mapeditor_catalog_clean apply | Removes the listed models from the catalogue. | Editors, with debug on |
mapeditor_thumbs_prune | Writes every model in failed.json to data/thumbs/failed_models.txt and removes all of them from the catalogue. | Server console at any time. In game: editors, with debug on |
mapeditor_catalog_remove <prefix> | Removes every catalogue model whose name starts with <prefix>: at least 4 letters, digits or _, in any case. | Server console at any time. In game: editors, with debug on |
mapeditor_thumbs_prune removes every model in failed.json, also models that only failed to photograph and place fine. The failed.json that ships with the resource lists 970 catalogue props. To remove only props that can’t be spawned, use /mapeditor_catalog_clean apply.
After a change:
- The first change saves the original catalogue as
data/props.backup.json. Later changes don’t overwrite it. To go back, put its content back intodata/props.jsonand restart the resource. validate applyandclean applyalso write the removed names todata/thumbs/unspawnable_models.txt.- When models were removed, the answer ends with
restart bablo-mapeditor to apply. In game it also shows as a notification. Restart the resource: the server and the prop browser read the catalogue when the resource starts. - Props of a removed model that are already placed stay on their maps, but no new ones can be placed, because the server only saves models that are in the catalogue or in
Config.CustomProps.
See Commands.

