Dodaj do koszyka
Promocja!
Script QBCore

CL Spawn Selector Pro (QB)

Pierwotna cena wynosiła: $31.00.Aktualna cena wynosi: $16.00.

-48%

Spawn Selector PRO now with more features more styles and better UI.

(10 opinii klienta)

Product facts

Framework
QBCore
Resource type
Script
Included files
1 downloadable file
Add to Cart
CL Spawn Selector Pro (QB) podgląd zasobu FiveM
CL Spawn Selector Pro (QB)
$31.00 Pierwotna cena wynosiła: $31.00.$16.00Aktualna cena wynosi: $16.00.

Jak zainstalować Spawn Selector Pro

Krok 1: Ogólne użycie

  1. Przeciągnij i upuść zasób o nazwie CL-SpawnSelectorPRO do folderu zasobów swojego serwera.
  2. Uruchom tabelę SQL o nazwie “cl_spawnselector”.
  3. Skonfiguruj uprawnienia dla edytora w pliku config.lua.
  4. 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

  1. Otwórz plik fxmanifest.lua w zasobie qb-multicharacter.
  2. Usuń zależność od qb-spawn, zazwyczaj znajdującą się w linii 36.

Krok 3: Zmodyfikuj Więzienie

  1. Przejdź do zasobu qb-prison.
  2. In qb-prison > client > main.lua, find the event “prison:client:Enter” (Line 207).
  3. 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.

10 opinii dla CL Spawn Selector Pro (QB)

  1. Mercedes (zweryfikowany)

    The support alone makes this worth purchasing. Fast answers and practical solutions.

  2. Irving (zweryfikowany)

    The quality is noticeably better than many alternatives I have tried.

  3. Gust (zweryfikowany)

    Performance is excellent. We have not noticed any significant increase in resource usage since installing it.

  4. Ryann (zweryfikowany)

    Installed it today and everything worked immediately. Very satisfied with the purchase.

  5. Virgil (zweryfikowany)

    Great item! It provides too many things compared to its price charged.

  6. Samara (zweryfikowany)

    Excellent work. The resource runs smoothly and integrates well with our existing setup.

  7. Mekhi (zweryfikowany)

    Thank you guys for this amazing creation! Absolutely mind-blowing!

  8. Earnestine (zweryfikowany)

    Clean and optimized script. It works smoothly even with many players online.

  9. 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.

  10. Orville (zweryfikowany)

    Amazing thanks

Tylko zalogowani klienci, którzy kupili ten produkt mogą napisać opinię.