General information
Most errors come from a bad update or hand-edited code. If you hit an error that isn’t covered here, test with the default resource first.
Which frameworks are supported?
ESX (
The script uses the framework to find out who is an admin, and to read each editor’s character identifier: their own keys are saved under it, and the History tab shows it when you point at their name.
es_extended), QBCore (qb-core) and Qbox (qbx_core). With Config.Framework = "auto" the script looks for a started es_extended, then qbx_core, then qb-core, and waits up to 5 seconds for one of them to start. Make sure the framework starts before bablo-mapeditor. See Configuration.The script uses the framework to find out who is an admin, and to read each editor’s character identifier: their own keys are saved under it, and the History tab shows it when you point at their name.
Which dependencies are required?
Do I need to import any SQL?
No. On every start the resource creates the tables that are missing and adds the columns and indexes an update needs. The server console then prints
The tables are
If a step fails, the console prints the error and then
[bablo-mapeditor] Database ready: 9 tables checked. The database user of oxmysql needs the rights to create and alter tables.The tables are
bablo_mapeditor_maps (maps), bablo_mapeditor_objects (placed props), bablo_mapeditor_hides (erased GTA props), bablo_mapeditor_lights (lights), bablo_mapeditor_categories (Workshop categories), bablo_mapeditor_schedules (schedule rules), bablo_mapeditor_settings (whether the schedule is live), bablo_mapeditor_keybinds (each editor’s own keys) and bablo_mapeditor_audit (the History tab).If a step fails, the console prints the error and then
[bablo-mapeditor] Database not ready: 1 step(s) failed, so the editor stays disabled until this is fixed. Editors get The map editor database isn’t ready. See Installation.Who can open the editor?
Editors: players with the ACE in
ESX: players in the
The server checks this when the editor opens and again for every change an editor saves. Everyone else gets You don’t have permission. See Installation.
Config.AcePermission (default mapeditor.use) and framework admins.ESX: players in the
admin or superadmin group. QBCore: players with the QBCore permission admin or god. Qbox: players with the Qbox permission admin. On all three, players with the ACE command count as admins too, like group.admin in the default server.cfg.The server checks this when the editor opens and again for every change an editor saves. Everyone else gets You don’t have permission. See Installation.
What do players without access see?
Every map that is switched on: its props, the GTA props it erased and its lights, streamed in around them. Maps that are switched off are never sent to them.
Editors also see the maps that are switched off, even while the editor is closed, unless they turn off Show maps that are off in the Workshop’s Maps tab. See Map Streaming & Sync.
Editors also see the maps that are switched off, even while the editor is closed, unless they turn off Show maps that are off in the Workshop’s Maps tab. See Map Streaming & Sync.
Where are the maps stored?
In your database, in the tables listed above. The script only writes files into its own folder when an editor publishes a map (in
Props and lights you delete stay in the database for
Each editor’s favourite props and the Show maps that are off choice are saved in that player’s own game.
exports/), and from the thumbnail studio and the catalogue commands (in data/).Props and lights you delete stay in the database for
Config.PurgeDeletedAfterDays (7) days, so undo can bring them back, and are then removed for good. History entries older than keepDays in Config.History (45 days) are removed. Both happen when the resource starts and once a day. See Maps and limits and History.Each editor’s favourite props and the Show maps that are off choice are saved in that player’s own game.
What happens to the GTA props I erase?
They are saved with the map you are working on. While that map is switched on, they are hidden for every player: each game hides them with GTA’s own model hide, and every
The ones of the map you work on are listed in the Prop Browser under Erased World Props. Each card has Go to prop, which takes the camera to it, and Restore, which brings the prop back for everyone. They also come back when the map is switched off, for the players who no longer get it, and when the resource stops. Erased GTA props are never purged from the database. See Delete Mode and Hidden map props.
Config.Hides.sweepMs (5000 ms) it removes copies that streamed back in. Props that another script spawned can’t be erased.The ones of the map you work on are listed in the Prop Browser under Erased World Props. Each card has Go to prop, which takes the camera to it, and Restore, which brings the prop back for everyone. They also come back when the map is switched off, for the players who no longer get it, and when the resource stops. Erased GTA props are never purged from the database. See Delete Mode and Hidden map props.
Are there limits?
Yes, set in
Props: 5000 per map (
Lights: 320 per map (
Deleted props and lights don’t count. Erased GTA props have no limit. See Maps and limits and Lights.
config.lua.Props: 5000 per map (
Config.MaxObjectsPerMap) and 50000 on all maps together (Config.MaxObjectsTotal). Above that, editors get This map has reached its object limit. or The server object limit is reached.Lights: 320 per map (
maxPerMap) and 3000 in total (maxTotal) in Config.Lights. Above that: This map has reached its light limit or The server has reached its light limit.Deleted props and lights don’t count. Erased GTA props have no limit. See Maps and limits and Lights.
Does it work with MLOs and other map resources?
The editor does not change other map resources or MLOs. Its props are spawned on top of whatever the game has loaded, and props of other map resources can be erased like GTA props, as long as no script spawned them.
Does it work in other routing buckets?
The script does not use routing buckets. Every player gets the maps that are switched on, whatever bucket they are in, and each player’s game spawns the props itself.
How many players can edit at the same time?
There is no limit. Each editor has their own working map, selection and undo history. Every change is saved in the database straight away and sent live to the players who get that map, so editors see each other’s work as it happens. See Map Streaming & Sync.
What happens to my character while I edit?
It stays where it stood, frozen and unable to be hurt, while the camera flies free. ox_target is turned off for you when it runs, and the
invBusy and inv_busy state bags mark you as busy. Everything is switched back when the editor closes. You can’t open the editor from a vehicle: You can’t open the map editor from a vehicle. See Camera & Controls.How heavy is the editor on players’ games?
Each game spawns placed props only near the player: in the cells within
When a player joins, the server sends the list of all props, erased GTA props and lights of the maps that are switched on. Only the spawning depends on distance.
Lights are not entities. Every game draws the lights within
The limits above keep the size of the maps in check. See Map Streaming & Sync.
Config.StreamRadius (300 metres), or within a map’s own load distance, checked every Config.StreamInterval (750 ms). Props farther away are removed again.When a player joins, the server sends the list of all props, erased GTA props and lights of the maps that are switched on. Only the spawning depends on distance.
Lights are not entities. Every game draws the lights within
Config.Lights.drawDistance (120 metres) each frame, nearest first, with at most drawBudget (256) light draw calls per frame.The limits above keep the size of the maps in check. See Map Streaming & Sync.
Can I change the texts or add a language?
Yes. The texts of the editor, the Map Workshop and the notifications are in
locales/en.json. English and Swedish are included. See Languages.Which files can I edit?
config.lua, the language files in locales/ with locales/loader.lua, and the files in src/resource/utils/. The rest of the script is escrowed, frameworks/ included. See the Script Explorer.What does Config.DEBUG do?
It prints extra lines in the server console and the F8 console, for example
Detected framework: qbcore, and it turns on the test commands and the thumbnail studio. Some of those commands have no permission check. It is meant for testing. Keep Config.DEBUG = false on a live server. See Commands.
