Bablo ResourcesDocs

Camera & Controls

Bablo Map Editor is a flying camera with panels on top of the game. You fly through the world, click props and panels with the mouse, and your character waits where you left it. This page covers the camera, the keys and the bar at the top of the screen. Each tool has its own page.


Opening and closing

Open the editor with the command from Config.Command, /mapeditor by default:

PLAINTEXT
/mapeditor

The command works as a switch: running it while the editor is open closes it. See Command.

Only editors can open it: players with the ACE in Config.AcePermission (mapeditor.use by default) and framework admins. Framework admins are QBCore players with the admin or god permission, Qbox players with admin, ESX players in the admin or superadmin group, and on every framework anyone with the command ACE. See Permission.

MessageWhy
You can’t open the map editor from a vehicle.Leave the vehicle first.
You don’t have permission.The player is not an editor.
You’re doing that too fast.Too many editor requests in a short time, see Rate limit.
The map editor database isn’t ready.The database tables are not set up yet, or setting them up failed. The server console says why.
The editor didn’t answer. If the resource just restarted, try again in a few seconds.The server did not answer.

To close the editor, run /mapeditor again, click the close button at the right end of the top bar, or press Esc until it closes.

What Esc does

Esc backs out one step at a time:

  1. It closes the right-click menu or the Transform panel.
  2. It stops a drag with the gizmo and puts the props back where they were.
  3. It puts away the prop you are placing and goes back to the Select tool.
  4. It leaves the active tool for Select.
  5. It clears the selection.
  6. It closes the editor. In fly mode it switches to cursor mode instead.

The Workshop and the World map window close first when they are open.


Your character

Your character stays where it stood when you opened the editor. While the editor is open, it:

  • is frozen in place and can’t be hurt,
  • is marked as busy for inventory scripts (the invBusy and inv_busy state bags),
  • can’t use ox_target, when ox_target runs.

All of this is switched back when the editor closes.

The flying camera starts where the game camera was, looking the same way. The game loads the world around the camera, not around your character, and placed props stream in around the camera as you fly. Props you have selected stay loaded when you fly away from them. See Map Streaming & Sync.


Camera modes

The editor switches between three modes:

ModeHow you get thereMouseWhat you can do
Cursor modeThe editor opens in it. Caps Lock or Esc from fly mode.A free cursor. Hold the right mouse button to look around.Everything: panels, the top bar, clicking props, the gizmo and every tool.
Fly modeCaps Lock from cursor mode, or F from the game camera.No cursor. The mouse looks around.Fly, and place props with the Place tool, aimed at the middle of the screen.
Game cameraF from cursor mode or fly mode.A free cursor, for the panels only.The flying camera is off and the view is back on your character. The panels, the top bar and the editing keys work, clicks in the world do nothing.

From the game camera, F turns the flying camera back on in fly mode, starting from the game camera. Buttons that move the camera, such as Teleport here in the Prop Browser, turn it back on as well.

In fly mode these keys work too:

KeyAction
FSwitch to the game camera.
GSwitch the gizmo between Move and Rotate.
Shift + GSet On Ground for the selection.
EscBack out one step, see What Esc does.

Undo, copy, paste and the other editing keys only work in cursor mode and with the game camera.


Flying the camera

ActionCursor modeFly mode
Forward / backW / SW / S
Left / rightA / DA / D
UpE or ↑E or Space
DownQ or ↓Q or Ctrl
FasterShiftShift
SlowerAltAlt
Look aroundHold the right mouse button and move the mouseMove the mouse

The camera flies where it looks: W with the camera tilted down takes it down as well. E and Q always go straight up and down.

The cursor mode keys are the defaults of the Workshop’s Keybinds tab, where every editor can set their own, see Keybinds. Fly mode reads GTA’s own controls, so changes in that tab do not apply there.

While you type in a text field, such as the search box of the prop browser, the keys type and the camera stands still.

LUA
Config.FreecamSpeeds = { base = 14.0, fast = 6.0, slow = 0.25 }
Config.FreecamSensitivity = 16.0
Config.FreecamFov = 50.0
SettingWhat it does
baseThe flying speed in metres per second: 14 m/s by default.
fastShift multiplies the speed by this: 84 m/s by default.
slowAlt multiplies the speed by this: 3.5 m/s by default.
Config.FreecamSensitivityHow fast the camera turns with the mouse.
Config.FreecamFovThe field of view of the camera in degrees.

See Freecam.


Looking around

In cursor mode, hold the right mouse button and move the mouse to turn the camera. The movement keys keep working while you look.

A short right click opens the right-click menu instead: release the button within 400 milliseconds and without moving the mouse more than 6 pixels. See Selecting & Editing Props.

Once the mouse has moved during a look, the cursor is hidden until you let go of the button, and then comes back to where you pressed it. Very small movements leave the cursor where it is:

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

See Camera look.


Free cursor key

Caps Lock switches between cursor mode and fly mode. It is a FiveM key binding named Map Editor: free cursor, so each player can change it in the game under Settings → Key Bindings → FiveM. It does nothing while the editor is closed or while you type in a text field.

The default key is set in the script, not in config.lua. The Workshop’s Keybinds tab lists Free Cursor under Fixed with the badge GTA settings, because it can only be changed there.


Key hint bar

A row of key hints sits under the top bar. It always shows every entry of Config.Keybinds, in the same order:

Key shownHint
ESCExit
WASDMove
Q/EDown / Up
SHIFTFast
ALTSlow
RMBLook
CAPSFree Cursor
LMBPlace
HOLD LMBBrush
SCROLLRotate
SHIFT+SCROLLHeight
XCancel
GGizmo mode
SHIFT+GGround
LUA
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' },
}
FieldWhat it does
idWhich hint to show. The text comes from hint.<id> in the language file.
keyThe key label in front of the hint.

Remove a line to hide that hint, or move lines to change the order. One more hint exists that is not in the list: { id = 'freecam', key = 'F' } shows Freecam.

For Move, Down / Up, Fast, Slow, Gizmo mode, Ground, Cancel and Freecam, the bar shows the player’s own first key from the Keybinds tab, so key only sets the label of the other hints. See Keybind hints.


Top bar

The tool buttons are icons. Hover one to see its name.

PartWhat it does
Map EditorThe title, with your player name under it.
SelectClick and select placed props, then move them with the gizmo. See Selecting & Editing Props.
PlacePlace props from the browser. See Placing Props.
Delete modeClick props to remove them. See Delete Mode.
Box SelectDrag a box over the world to select props and catch GTA props. See Box Select.
ArrayRepeat the selection in a row, grid, ring or rectangle. See Array Tool.
FillFill an area on the ground with props. See Fill Tool.
LightPlace and edit lights. See Lights.
World mapFly the camera to a spot on the map, see World map.
Move / RotateThe gizmo shows arrows to move or rings to turn. G switches. See Move & Rotate Gizmo.
World / LocalGizmo axes along the map, or turned with the selected prop.
SnapMoves and turns go in steps.
StickDragged props snap against their neighbours and the ground.
3 selectedHow many props are selected. Only shown while something is selected.
Current projectYour working map. Click it to switch, see Project switcher.
Saving…Shown while changes are on their way to the server.
WorkshopOpens the Map Workshop, the panel for maps, placed props, categories and publishing. See Map Workshop.
Close buttonCloses the editor.

World map

The map button opens World map: Click anywhere on the map to fly there. Click a spot, the coordinates show at the top, then press Teleport. The camera moves there, not your character. It starts at a height of 400 metres and drops to 15 metres above the ground as soon as the ground there has loaded. Meanwhile the notice Loading the area… shows.

Esc, the close button or a click outside the map closes the window without moving. The Workshop has its own World Map tab that shows your props, see World Map.

Project switcher

Current project, at the right of the top bar, shows the name of your working map. Everything you place, adopt or erase is saved to it. Without a working map it reads No map selected, and placing gives No working map selected.

Click it to list every map. Maps that are switched off carry a Draft badge. Click a map to make it your working map.

To start a new map, type a name in New project… at the bottom of the list and press Enter or the plus button next to it. The new map starts switched off and becomes your working map right away. Names are 1 to 64 characters.

Each editor has their own working map. After joining the server it is the oldest map that is switched on. Maps are managed in the Map Workshop.