Spawn Selector for QB-Core Framework 🦅
- qb-core
- qb-houses - Lets player select the house
- qb-apartment - Lets player select the apartment
- qb-garages - For house garages
- Ability to select spawn after selecting the character
- Download the script and put it in the
[qb]
directory. - Add the following code to your server.cfg/resouces.cfg
ensure qb-core
ensure qb-spawn
ensure qb-apartments
ensure qb-garages
An example to add spawn option
QB.Spawns = {
["spawn1"] = { -- Needs to be unique
coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coords player will be spawned
location = "spawn1", -- Needs to be unique
label = "Spawn 1 Name", -- This is the label which will show up in selection menu.
},
["spawn2"] = { -- Needs to be unique
coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coords player will be spawned
location = "spawn2", -- Needs to be unique
label = "Spawn 2 Name", -- This is the label which will show up in selection menu.
},
}