Aggiungi al carrello
In offerta!
Script QBCore

Selettore di spawn CL Pro (QB)

Il prezzo originale era: $31.00.Il prezzo attuale è: $16.00.

-48%

Spawn Selector PRO ora con più funzionalità, più stili e un'interfaccia utente migliore.

(10 recensioni dei clienti)

Product facts

Framework
QBCore
Resource type
Script
Included files
1 downloadable file
Add to Cart
Anteprima della risorsa FiveM di CL Spawn Selector Pro (QB)
Selettore di spawn CL Pro (QB)
$31.00 Il prezzo originale era: $31.00.$16.00Il prezzo attuale è: $16.00.

Come installare Spawn Selector Pro

Passaggio 1: utilizzo generale

  1. Trascina e rilascia la risorsa denominata CL-SpawnSelectorPRO nella cartella delle risorse del tuo server.
  2. Eseguire la tabella SQL denominata “cl_spawnselector”.
  3. Configurare i permessi per l'editor nel file config.lua.
  4. 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

  1. Aprire fxmanifest.lua nella risorsa qb-multicharacter.
  2. Rimuovere la dipendenza da qb-spawn, che in genere si trova alla riga 36.

Passaggio 3: modifica la prigione

  1. Vai alla risorsa qb-prison.
  2. In qb-prison > client > main.lua, trova l'evento “prison:client:Enter” (riga 207).
  3. 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.

10 recensioni per CL Spawn Selector Pro (QB)

  1. Mercedes (proprietario verificato)

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

  2. Irving (proprietario verificato)

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

  3. Gust (proprietario verificato)

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

  4. Ryann (proprietario verificato)

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

  5. Virgil (proprietario verificato)

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

  6. Samara (proprietario verificato)

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

  7. Mekhi (proprietario verificato)

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

  8. Earnestine (proprietario verificato)

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

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

  10. Orville (proprietario verificato)

    Amazing thanks

Solamente clienti che hanno effettuato l'accesso ed hanno acquistato questo prodotto possono lasciare una recensione.