Come installare Spawn Selector Pro
Passaggio 1: utilizzo generale
- Trascina e rilascia la risorsa denominata CL-SpawnSelectorPRO nella cartella delle risorse del tuo server.
- Eseguire la tabella SQL denominata “cl_spawnselector”.
- Configurare i permessi per l'editor nel file config.lua.
- Quando si crea una nuova posizione utilizzando l'editor, assicurarsi di aggiungere i dati necessari a config.lua in Config.Locations.
Passaggio 2: rimuovere la dipendenza
- Aprire fxmanifest.lua nella risorsa qb-multicharacter.
- Rimuovere la dipendenza da qb-spawn, che in genere si trova alla riga 36.
Passaggio 3: modifica la prigione
- Vai alla risorsa qb-prison.
- In qb-prison > client > main.lua, trova l'evento “prison:client:Enter” (riga 207).
- Sostituisci l'evento esistente con l'evento aggiornato fornito di seguito:
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)
Inoltre, aggiungere and invokingResource ~= 'CL-SpawnSelector' alla riga 209.
Questi passaggi dovrebbero garantire la corretta installazione e integrazione della risorsa CL-SpawnSelectorPRO nel tuo ambiente server.





Mercedes (proprietario verificato) –
The support alone makes this worth purchasing. Fast answers and practical solutions.
Irving (proprietario verificato) –
The quality is noticeably better than many alternatives I have tried.
Gust (proprietario verificato) –
Performance is excellent. We have not noticed any significant increase in resource usage since installing it.
Ryann (proprietario verificato) –
Installed it today and everything worked immediately. Very satisfied with the purchase.
Virgil (proprietario verificato) –
Great item! It provides too many things compared to its price charged.
Samara (proprietario verificato) –
Excellent work. The resource runs smoothly and integrates well with our existing setup.
Mekhi (proprietario verificato) –
Thank you guys for this amazing creation! Absolutely mind-blowing!
Earnestine (proprietario verificato) –
Clean and optimized script. It works smoothly even with many players online.
Ali (proprietario verificato) –
The item and the design are very cool. Also the support is amazing, they always help you with any detail that you have.
Orville (proprietario verificato) –
Amazing thanks