Skip to content

FiveM: Manage and Customize Spawnpoints with QbCore

Discover how to customize and add spawnpoints in the QBCore framework for a better player experience → Learn more now

12 November 20262 min read13 Views0 helpful

Introduction

Want to change the default spawnpoints or add new ones? Managing spawnpoints in the QBCore Framework is done via the qb-spawn resource. Below, you'll learn how to customize them.

Configuration

Spawnpoints are set in the config.lua configuration file of the qb-spawn resource. You can edit this file via FTP. If you’re not familiar with FTP yet, we recommend checking out our FTP Access guide.

The default spawnpoint configuration looks like this:

Code
QB.Spawns = {
    ["legion"] = { -- Index for the table
        coords = vector4(195.17, -933.77, 29.7, 144.5), -- Where the player spawns
        location = "legion", -- So the JavaScript knows which spawn you chose
        label = "Legion Square", -- What the player sees in the menu
    },

    ["policedp"] = {
        coords = vector4(428.23, -984.28, 29.76, 3.5),
        location = "policedp",
        label = "Police Department",
    },

    ["paleto"] = {
        coords = vector4(80.35, 6424.12, 31.67, 45.5),
        location = "paleto",
        label = "Paleto Bay",
    },

    ["motel"] = {
        coords = vector4(327.56, -205.08, 53.08, 163.5),
        location = "motel",
        label = "Motels",
    },

If you want to add more spawnpoints, simply add another entry in the configuration file:

Code
["new_spawn_name"] = { -- Must be unique
    coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coordinates where the player spawns
    location = "new_spawn_name", -- Must be unique
    label = "New spawn name", -- The label shown in the selection menu
},
Info

Determining coordinates You need a suitable resource to find the current coordinates. You can find several tools online; just pick the one that suits you best. :)

The final result looks like this:

Code
    QB.Spawns = {
    
        ["legion"] = { -- Index for the table
            coords = vector4(195.17, -933.77, 29.7, 144.5), -- Where the player spawns
            location = "legion", -- So the JavaScript knows which spawn you chose
            label = "Legion Square", -- What the player sees in the menu
        },
    
        ["policedp"] = {
            coords = vector4(428.23, -984.28, 29.76, 3.5),
            location = "policedp",
            label = "Police Department",
        },
    
        ["paleto"] = {
            coords = vector4(80.35, 6424.12, 31.67, 45.5),
            location = "paleto",
            label = "Paleto Bay",
        },
    
        ["motel"] = {
            coords = vector4(327.56, -205.08, 53.08, 163.5),
            location = "motel",
            label = "Motels",
        },
        
        ["new_spawn_name"] = { -- Must be unique
        coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coordinates where the player spawns
        location = "new_spawn_name", -- Must be unique
        label = "New spawn name", -- The label shown in the selection menu
         },
    }

Conclusion

You have successfully changed existing spawnpoints or added new ones by following this method. If you have further questions or need help, our support team is available daily! 🙂

FAQ

Frequently asked questions

Spawnpoints are set in the config.lua configuration file of the qb-spawn resource, which you edit via FTP.
Add a new entry with a unique name, coords (vector4 with x, y, z, and heading), location, and label in the QB.Spawns table inside config.lua.
You need a suitable resource to determine the current coordinates in-game.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.