Skip to content
ZDP Scripts
GitHub Discord

💧 zdp-hud-neon

Introduction (EN)

A new hud, designed to facilitate the experience of players. Easy to Customize: We have a Config where you can change position, keys and more.

Usage Example

Select the Framework you are using

Config.Framework = “QBCore” or “ESX”

Config.lua
-- Select the Framework you are using
Config.Framework = "QBCore"

-- Change the default key to open the menu, open map, limit speed, etc
-- (The user can change it in their game settings)
Config.KeyVisibleHud = 'J'
Config.KeyBigMap = 'M'
Config.KeyLimitSpeed = 'U'

-- Choose the colors of the car hud
Config.CarHudDisabled = false
Config.HudCarPosition = 'left' -- left, right, center

-- Config for the stress animations and screen shaking
Config.DisableStress = true        -- Disable Stress animations and screen shaking
Config.MinimumStress = 50          -- Minimum Stress Level For Screen Shaking

-- Config for the seatbelt system in ESX
-- For update stress value in ESX use the following trigger
-- TriggerEvent('ZDP_Hud:GetStress', VALUE)

-- For update seatbelt value in ESX change in the config of esx_cruisecontrol
-- Config.HudResource = 'ZDP_Hud'

-- Uso de la velocidad en MPH
Config.UseMPH = false

-- Config for the stress animations, blur and screen shaking
Config.Intensity = {
    ['blur'] = {
        [1] = {
            min = 50,
            max = 60,
            intensity = 1500,
        },
        [2] = {
            min = 60,
            max = 70,
            intensity = 2000,
        },
        [3] = {
            min = 70,
            max = 80,
            intensity = 2500,
        },
        [4] = {
            min = 80,
            max = 90,
            intensity = 2700,
        },
        [5] = {
            min = 90,
            max = 100,
            intensity = 3000,
        },
    }
}

-- Config for the stress effect interval
Config.EffectInterval = {
    [1] = {
        min = 50,
        max = 60,
        timeout = math.random(50000, 60000)
    },
    [2] = {
        min = 60,
        max = 70,
        timeout = math.random(40000, 50000)
    },
    [3] = {
        min = 70,
        max = 80,
        timeout = math.random(30000, 40000)
    },
    [4] = {
        min = 80,
        max = 90,
        timeout = math.random(20000, 30000)
    },
    [5] = {
        min = 90,
        max = 100,
        timeout = math.random(15000, 20000)
    }
}

Stress System

In QBCore the stress system is already configured, but if you use another framework, or you don’t use the stress system that comes by default in QBCore, you can use the following trigger to update the stress value.

TriggerEvent('ZDP_Hud:GetStress', VALUE)

Introducción (ES)

Un nuevo hud, diseñado para facilitar la experiencia de los jugadores. Fácil de personalizar: tenemos un Config donde puedes cambiar la posición, las teclas y más.

Ejemplo de uso

Seleccione el Framework que está utilizando

Config.Framework = “QBCore” o “ESX”

config.lua
-- Seleccione el Framework que está utilizando
Config.Framework = "QBCore"

-- Cambie la tecla predeterminada para abrir el menú, abrir el mapa, limitar la velocidad
-- (El usuario puede cambiarlo en la configuración de su juego)
Config.KeyVisibleHud = 'J'
Config.KeyBigMap = 'M'
Config.KeyLimitSpeed = 'U'

-- Elija los colores del hud del coche
Config.CarHudDisabled = false
Config.HudCarPosition = 'left' -- left, right, center

-- Configuración para las animaciones de estrés y la vibración de la pantalla
Config.DisableStress = true -- Deshabilitar animaciones de estrés y vibración de pantalla
Config.MinimumStress = 50   -- Nivel de estrés mínimo para la vibración de la pantalla

-- Configuración para el sistema de cinturón de seguridad en ESX
-- Para actualizar el valor de estrés en ESX, use el siguiente disparador
-- TriggerEvent('ZDP_Hud:GetStress', VALUE)

-- Para actualizar el valor del cinturón de seguridad en ESX,
-- cambie en la configuración de esx_cruisecontrol
-- Config.HudResource = 'ZDP_Hud'

-- Uso de la velocidad en MPH
Config.UseMPH = false

-- Configuración para las animaciones de estrés, desenfoque y vibración de la pantalla
Config.Intensity = {
    ['blur'] = {
        [1] = {
            min = 50,
            max = 60,
            intensity = 1500,
        },
        [2] = {
            min = 60,
            max = 70,
            intensity = 2000,
        },
        [3] = {
            min = 70,
            max = 80,
            intensity = 2500,
        },
        [4] = {
            min = 80,
            max = 90,
            intensity = 2700,
        },
        [5] = {
            min = 90,
            max = 100,
            intensity = 3000,
        },
    }
}

-- Configuración para el intervalo de efecto de estrés
Config.EffectInterval = {
    [1] = {
        min = 50,
        max = 60,
        timeout = math.random(50000, 60000)
    },
    [2] = {
        min = 60,
        max = 70,
        timeout = math.random(40000, 50000)
    },
    [3] = {
        min = 70,
        max = 80,
        timeout = math.random(30000, 40000)
    },
    [4] = {
        min = 80,
        max = 90,
        timeout = math.random(20000, 30000)
    },
    [5] = {
        min = 90,
        max = 100,
        timeout = math.random(15000, 20000)
    }
}

Sistema de Estrés

En QBCore ya está configurado el sistema de estrés, pero si usas otro framework, o no usas el sistema de estrés que viene por defecto en QBCore, puedes usar el siguiente trigger para actualizar el valor.

TriggerEvent('ZDP_Hud:GetStress', VALUE)