Spawn Selector
Instructions on how to download and install the basics of Spawn Selector
Installation #
First of all, you assign the cb-spawn-selector and cb-spawn-selector-prop file from your keymaster account to the ‘resources’ section of your server.
then go to your server's server.cfg file
ensure cb-spawn-selector-prop
ensure cb-spawn-selector
these 2 scripts should be started after ox_lib
First you go to the config.lua file of the script and select the infrastructure you are using.
['Framework'] = 'esx' -- or qb
SECTION 1 ( IF U HAVE QB-APARTMENTS )
Now we move on to the installation phase in a simple way, first of all, if you have qb-apartmens script on your server, you make this part true via config.
['Apartments'] = true
And you search for this code ;
TriggerClientEvent('apartments:client:setupSpawnUI', src, newData)
After finding this code, you change this code with the code below.
TriggerClientEvent('cb-spawn-selector:client:open', src, true)
SECTION 2
After changing the codes at the top, you search for this section ;
TriggerClientEvent('qb-spawn:client:setupSpawns', src, cData, false, nil)
TriggerClientEvent('qb-spawn:client:openUI', src, true)
After finding this lines, you change this code with the code below.
TriggerClientEvent('cb-spawn-selector:client:open', src, false)
If you have qb-apartments on your server you do both Section 1 and SECTION 2, if you don't have qb-apartments on your server you only need to do SECTION 2.
Last updated