Skip to content

Zones and the editor

A trunk zone is the floor shape and usable height of a vehicle’s trunk. Each vehicle model uses, in this order:

  1. Your zone, made with the editor (data/zones/custom/<model>.lua).
  2. The generated zone (data/zones/generated.lua): 465 vanilla vehicles with a trunk, generated from the game’s own models. 267 vanilla vehicles have no usable trunk (sports cars with the engine at the back, bikes…) and show no props.
  3. The heuristic by vehicle class, for addon vehicles. It keeps clear of the rear wheel arches. Front trunks are not guessed: draw them with the editor.

Rear trunks, front trunks and rear doors (vans) are supported; the lid is found by its position, not by its name.

/sltrunk_zone [name] next to a vehicle. It needs the sl_trunk.editor ace or being an admin of the framework. The optional name is the model name, for addon cars whose name the game does not know.

Control
Click a point and drag Move it
Click an edge Add a point
Right click Remove a point
Mouse wheel Floor height
Shift + wheel Usable height
Tab Trunk type: rear trunk, front trunk, rear doors
R Back to the automatic zone
Delete This vehicle has no trunk (on/off)
Enter Save
Backspace Leave without saving

The panel shows the floor area, the height and how many boxes fit. On saving, the zone is written to data/zones/custom/, applied to every player at once, and the trunks of that model are re-packed. If part of the outline is where the car has no floor (wheel arches), you are warned.