Configuration

Everything you can change is in config.lua.

General

OptionDefaultWhat it does
Config.DebugfalseConsole 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 .png with the same name as the key into html/places and 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.

OptionDefaultWhat it does
dx0.00Moves the marker right (negative moves it left). One unit is one percent of the map.
dy0.00Moves 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:

  1. Open the menu and press F9 (needs the fusing-spawn.pins ace).
  2. Drag the markers with the mouse.
  3. Copy the Config.Pins block from the box in the top right over the one in config.lua.
  4. Press F9 to finish, then restart the resource.