Skip to content

Location Spawning System Used With QB-Core 🏙️

Notifications You must be signed in to change notification settings

Hazzer278/qb-spawn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qb-spawn

Spawn Selector for QB-Core Framework 🦅

Dependencies

Screenshots

Spawn selector

Features

  • Ability to select spawn after selecting the character

Installation

Manual

  • Download the script and put it in the [qb] directory.
  • Import qb-spawn.sql in your database
  • Add the following code to your server.cfg/resouces.cfg
ensure qb-core
ensure qb-spawn
ensure qb-apartmen
ensure qb-garages

Configuration

An example to add spawn option

QB.Spawns = {
    ["spawn1"] = { -- Needs to be unique
        coords = {
            x = 0.0, -- Coords player will be spawned
            y = 0.0, 
            z = 0.0, 
            h = 180.0
        },
        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 = {
            x = 1.1, -- Coords player will be spawned
            y = -1.1, 
            z = 1.1, 
            h = 180.0 
        }, 
        location = "spawn2", -- Needs to be unique
        label = "Spawn 2 Name", -- This is the label which will show up in selection menu.
    },
}

About

Location Spawning System Used With QB-Core 🏙️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 61.7%
  • JavaScript 20.4%
  • CSS 13.9%
  • HTML 4.0%