🌏Spawnselector / Spawn

You can follow the methods below to integrate the spawnselector or to spawn automatically in the last position.

ESX Spawnselector Integration

circle-info

When you do not integrate spawnselector in ESX, you are automatically spawned in the last position.

To activate the Spawnselector, find the function below and follow the steps.

Config.SpawnSelector = function()
    -- ONLY USE FOR ESX FRAMEWORKS
    -- You can spawn the character selector with export or trigger here
    -- if you put the export or trigger please change return value to true
    
    TriggerEvent('your-spawnselector-trigger-here')
    exports['your-script']:openUI()
    return true
end
circle-info

When you put an export or event, you should return true.

triangle-exclamation

QBCore Spawnselector Integration

circle-info

If you are using qb-apartment and qb-spawn, the script will automatically bring the spawnselector to your screen.

circle-exclamation

To activate the Spawnselector, find the function below and follow the steps.

Last updated