Añadir al carrito
¡Oferta!
Script QBCore

Selector de aparición CL Pro (QB)

El precio original era: $31.00.El precio actual es: $16.00.

-48%

Spawn Selector PRO ahora con más funciones, más estilos y mejor interfaz de usuario.

añadir a la cesta
CL Spawn Selector Pro (QB) FiveM vista previa del recurso
Selector de aparición CL Pro (QB)
$31.00 El precio original era: $31.00.$16.00El precio actual es: $16.00.

Detalles del producto

Framework
QBCore
Tipo de recurso
Script
Archivos incluidos
1 archivo descargable

Detalles de la compra

Acceso a actualizaciones
Acceso de por vida a los archivos publicados en esta ficha Leer la política de acceso a actualizaciones
Formato de descarga
ZIP

Cómo instalar Spawn Selector Pro

Paso 1: Uso general

  1. Arrastre y suelte el recurso llamado CL-SpawnSelectorPRO en la carpeta de recursos de su servidor.
  2. Ejecute la tabla SQL denominada “cl_spawnselector”.
  3. Configure los permisos para el editor en el archivo config.lua.
  4. Al crear una nueva ubicación utilizando el editor, asegúrese de agregar los datos necesarios a config.lua en Config.Locations.

Paso 2: eliminar la dependencia

  1. Abra fxmanifest.lua en el recurso qb-multicharacter.
  2. Eliminar la dependencia de qb-spawn, que normalmente se encuentra en la línea 36.

Paso 3: Modificar la prisión

  1. Navegue hasta el recurso qb-prison.
  2. En qb-prison > client > main.lua, busque el evento “prison:client:Enter” (Línea 207).
  3. Reemplace el evento existente con el evento actualizado que se proporciona a continuación:
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)

Además, añade and invokingResource ~= 'CL-SpawnSelector' a la línea 209.

Estos pasos deberían garantizar la correcta instalación e integración del recurso CL-SpawnSelectorPRO en su entorno de servidor.

Valoraciones

No hay valoraciones aún.

Solo los usuarios registrados que hayan comprado este producto pueden hacer una valoración.