Configuration
Everything you can change is in config.lua.
General
| Option | Default | What it does |
|---|---|---|
Config.Debug | false | Console messages while setting up. Keep it off on a live server. |
Config.Framework | 'auto' | Finds your framework. Name one ('qb', 'qbx' or 'esx') only if more than one is installed. |
Spawn locations
Config.Spawns lists where people can start. Each one needs a key, a label and coordinates.
Config.Spawns = {
legion = {
coords = vector4(195.17, -933.77, 29.7, 144.5),
label = 'Legion Square',
},
paleto = {
coords = vector4(80.35, 6424.12, 31.67, 45.5),
label = 'Paleto Bay',
},
}
Included by default: legion (Legion Square), policedp (Police Department), paleto (Paleto Bay) and motel (Motels).
Photos
The key names the photograph: legion shows html/places/legion.png.
- Drop a
.pngwith the same name as the key intohtml/placesand restart the resource. - Use 16:9. Other shapes are centered and trimmed.
- 480 x 270 is plenty.
- A place without a photo just shows its name.
Map markers
Config.Pins nudges each marker on the map. Add a line for every place you add.
| Option | Default | What it does |
|---|---|---|
dx | 0.00 | Moves the marker right (negative moves it left). One unit is one percent of the map. |
dy | 0.00 | Moves the marker down (negative moves it up). |
Config.Pins = {
['legion'] = { dx = 0.00, dy = 0.00 },
['policedp'] = { dx = 0.00, dy = 0.00 },
['paleto'] = { dx = 0.00, dy = 0.00 },
['motel'] = { dx = 0.00, dy = 0.00 },
}
Easier than guessing:
- Open the menu and press F9 (needs the
fusing-spawn.pinsace). - Drag the markers with the mouse.
- Copy the
Config.Pinsblock from the box in the top right over the one inconfig.lua. - Press F9 to finish, then restart the resource.