Jak zainstalować Spawn Selector Pro
Krok 1: Ogólne użycie
- Przeciągnij i upuść zasób o nazwie CL-SpawnSelectorPRO do folderu zasobów swojego serwera.
- Uruchom tabelę SQL o nazwie “cl_spawnselector”.
- Skonfiguruj uprawnienia dla edytora w pliku config.lua.
- Podczas tworzenia nowej lokalizacji za pomocą edytora, upewnij się, że dodałeś niezbędne dane do pliku config.lua w sekcji Config.Locations.
Krok 2: Usuń zależności
- Otwórz plik fxmanifest.lua w zasobie qb-multicharacter.
- Usuń zależność od qb-spawn, zazwyczaj znajdującą się w linii 36.
Krok 3: Zmodyfikuj Więzienie
- Przejdź do zasobu qb-prison.
- In qb-prison > client > main.lua, find the event “prison:client:Enter” (Line 207).
- Zastąp istniejące zdarzenie zaktualizowanym zdarzeniem podanym poniżej:
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)
Dodatkowo dodaj and invokingResource ~= 'CL-SpawnSelector' do linii 209.
Te kroki powinny zapewnić prawidłową instalację i integrację zasobu CL-SpawnSelectorPRO w środowisku serwera.





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