Hoe installeer je de Spawn Selector Pro
Stap 1: Algemeen Gebruik
- Sleep de resource genaamd CL-SpawnSelectorPRO naar de resources map van uw server.
- Voer de SQL tabel genaamd “cl_spawnselector” uit.
- Configureer permissies voor de editor in het config.lua bestand.
- Zorg er bij het maken van een nieuwe locatie met de editor voor dat je de benodigde gegevens toevoegt aan config.lua onder Config.Locations.
Stap 2: Verwijder Afhankelijkheid
- Open fxmanifest.lua in de qb-multicharacter bron.
- Verwijder de afhankelijkheid van qb-spawn, meestal te vinden op regel 36.
Stap 3: Gevangenis Aanpassen
- Navigeer naar de qb-prison resource.
- In qb-prison > client > main.lua, find the event “prison:client:Enter” (Line 207).
- Vervang het bestaande event met het bijgewerkte event hieronder:
RegisterNetEvent('prison:client:Enter', function(time)
local invokingResource = GetInvokingResource()
if invokingResource and invokingResource ~= 'CL-SpawnSelector' and invokingResource ~= 'qb-policejob' and invokingResource ~= 'qb-ambulancejob' and invokingResource ~= GetCurrentResourceName() then
-- Use QBCore.Debug here for a quick and easy way to print to the console to grab your attention with this message
QBCore.Debug({('Player with source %s tried to execute prison:client:Enter manually or from another resource which is not authorized to call this, invokedResource: %s'):format(GetPlayerServerId(PlayerId()), invokingResource)})
return
end
QBCore.Functions.Notify( Lang:t("error.injail", {Time = time}), "error")
TriggerEvent("chatMessage", "SYSTEM", "warning", "Your property has been seized, you'll get everything back when your time is up..")
DoScreenFadeOut(500)
while not IsScreenFadedOut() do
Wait(10)
end
local RandomStartPosition = Config.Locations.spawns[math.random(1, #Config.Locations.spawns)]
SetEntityCoords(PlayerPedId(), RandomStartPosition.coords.x, RandomStartPosition.coords.y, RandomStartPosition.coords.z - 0.9, 0, 0, 0, false)
SetEntityHeading(PlayerPedId(), RandomStartPosition.coords.w)
Wait(500)
TriggerEvent('animations:client:EmoteCommandStart', {RandomStartPosition.animation})
inJail = true
jailTime = time
local tempJobs = {}
local i = 1
for k in pairs(Config.Locations.jobs) do
tempJobs[i] = k
i += 1
end
currentJob = tempJobs[math.random(1, #tempJobs)]
CreateJobBlip(true)
TriggerServerEvent("prison:server:SetJailStatus", jailTime)
TriggerServerEvent("prison:server:SaveJailItems", jailTime)
TriggerServerEvent("InteractSound_SV:PlayOnSource", "jail", 0.5)
CreateCellsBlip()
Wait(2000)
DoScreenFadeIn(1000)
QBCore.Functions.Notify( Lang:t("error.do_some_work", {currentjob = Config.Jobs[currentJob] }), "error")
end)
Voeg bovendien toe and invokingResource ~= 'CL-SpawnSelector' naar regel 209.
Deze stappen zouden moeten zorgen voor de juiste installatie en integratie van de CL-SpawnSelectorPRO resource in uw serveromgeving.





Mercedes (geverifieerde eigenaar) –
The support alone makes this worth purchasing. Fast answers and practical solutions.
Irving (geverifieerde eigenaar) –
The quality is noticeably better than many alternatives I have tried.
Gust (geverifieerde eigenaar) –
Performance is excellent. We have not noticed any significant increase in resource usage since installing it.
Ryann (geverifieerde eigenaar) –
Installed it today and everything worked immediately. Very satisfied with the purchase.
Virgil (geverifieerde eigenaar) –
Geweldig item! Het biedt te veel dingen in verhouding tot de gevraagde prijs.
Samara (geverifieerde eigenaar) –
Uitstekend werk. De bron draait soepel en integreert goed met onze bestaande setup.
Mekhi (geverifieerde eigenaar) –
Thank you guys for this amazing creation! Absolutely mind-blowing!
Earnestine (geverifieerde eigenaar) –
Clean and optimized script. It works smoothly even with many players online.
Ali (geverifieerde eigenaar) –
The item and the design are very cool. Also the support is amazing, they always help you with any detail that you have.
Orville (geverifieerde eigenaar) –
Amazing thanks