CL Spawn Selector Pro (QB)

Ursprünglicher Preis: $34.00Aktueller Preis ist: $18.00.

Spawn Selector PRO jetzt mit mehr Funktionen, mehr Stilen und besserer Benutzeroberfläche.

Zur Wunschliste hinzufügen
Zur Wunschliste hinzufügen
Kategorie:
Garantiert sicherer Checkout

Holen Sie sich Ihren Download sofort.

  • Geld-zurück-Garantie ohne Risiko!
  • Support inklusive
  • Zukünftige Updates

How to install the Spawn Selector Pro

Step 1: General Usage

  1. Drag and drop the resource named CL-SpawnSelectorPRO into your server’s resources folder.
  2. Run the SQL table named “cl_spawnselector”.
  3. Configure permissions for the editor in the config.lua file.
  4. When creating a new location using the editor, ensure to add the necessary data to config.lua under Config.Locations.

Step 2: Remove Dependency

  1. Open fxmanifest.lua in the qb-multicharacter resource.
  2. Remove the dependency on qb-spawn, typically found at line 36.

Step 3: Modify Prison

  1. Navigate to the qb-prison resource.
  2. In qb-prison > client > main.lua, find the event “prison:client:Enter” (Line 207).
  3. Replace the existing event with the updated event provided below:
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[fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"][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)

Additionally, add and invokingResource ~= 'CL-SpawnSelector' to line 209.

These steps should ensure the proper installation and integration of the CL-SpawnSelectorPRO resource into your server environment.

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

Bewertungen

There are no reviews yet

Eine Rezension verfassen
CL Spawn Selector Pro (QB) CL Spawn Selector Pro (QB)
Bewertung*
0/5
* Bewertung ist erforderlich
Deine Rezension
* Rezension ist erforderlich
Name
* Name ist erforderlich
Fotos oder Video zur Rezension hinzufügen

Q&A

Es sind noch keine Fragen vorhanden

Eine Frage stellen

Deine Frage wird von einem Mitarbeiter der Filiale oder anderen Kunden beantwortet.

Vielen Dank für die Frage!

Deine Frage ist eingegangen und wird bald beantwortet. Bitte reiche die gleiche Frage nicht noch einmal ein.

Fehler

Warning

Beim Speichern deiner Frage ist ein Fehler aufgetreten. Bitte melde ihn dem Website-Administrator. Zusätzliche Informationen:

Eine Antwort hinzufügen

Vielen Dank für die Antwort!

Deine Antwort ist eingegangen und wird bald veröffentlicht. Bitte reiche die gleiche Antwort nicht noch einmal ein.

Fehler

Warning

An error occurred when saving your answer. Please report it to the website administrator. Additional information:

Warenkorb
CL Spawn Selector Pro (QB)
Ursprünglicher Preis: $34.00Aktueller Preis ist: $18.00.
Zur Wunschliste hinzufügen
Zur Wunschliste hinzufügen
Nach oben scrollen