Trygon HUD

$ 23,99

adicionar ao carrinho
Pré-visualização de recursos Trygon HUD FiveM
Trygon HUD
$ 23,99

Trygon HUD é um HUD de jogador e veículo para QBCore, ESX e OldQBCore com status, dinheiro, emprego, velocidade em KMH ou MPH, mapa retangular ou radial, cinto de segurança, estresse, nitro e um menu de configurações para cores.

Detalhes do produto

Framework
ESX, QBCore, Autônomo
Tipo de recurso
Script
Arquivos incluídos
1 arquivo para download

Detalhes da compra

Acesso a atualizações
Acesso vitalício aos arquivos publicados neste anúncio Ler a política de acesso a atualizações
Formato de download
ZIP

Trygon HUD by UZStore is a player and vehicle HUD for QBCore, ESX and older QBCore servers. It shows status, money, job and vehicle information, and each player can change colors, speed unit and map type in a settings menu.

Recursos

  • Player HUD com status, dinheiro, emprego e dinheiro sujo opcional e dinheiro de chefão (sociedade)
  • Exibição do nome do servidor, ID do jogador e contagem de jogadores online
  • HUD de veículo em KMH ou MPH com um gancho de combustível (uz_fuel por padrão, LegacyFuel ou combustível nativo como alternativas)
  • Minimapa retangular ou radial (texturas de mapa incluídas)
  • Quatro temas de cores padrão mais cores personalizadas; as configurações do jogador são salvas no banco de dados
  • Tecla do cinto de segurança, teclas de seta opcionais e um item de nitro (noos) com tecla, força e consumo configuráveis
  • Estresse ao atirar e dirigir rápido sem cinto de segurança, com níveis de tremor de tela e intervalos
  • Exports para visibilidade de HUD e prompts de perguntas sim/não

Requisitos

  • QBCore, ESX ou OldQBCore (definido em Customize.lua)
  • oxmysql, ghmattimysql ou mysql-async

Instalação

  • Importar InsertMe.sql (cria o uzstore_trygonhud tabela).
  • Coloque o uz_TrygonHud pasta na sua pasta resources e ajuste Customize.lua, incluindo a exportação de combustível.
  • Adicione ensure uz_TrygonHud para o seu server.cfg.

Arquivo de configuração:

Customize = {
    
    Framework = "QBCore", -- QBCore | ESX | OldQBCore (Write the framework you used as in the example)
    Mysql = "oxmysql", -- oxmysql | ghmattimysql | mysql-async (Write the sql script you use as in the example)
    DefaultColor = 2, -- 1: blue | 2: red | 3: purple | 4: green
    DefaultType = 'kmh', -- kmh | mph
    ServerName = 'UZ ROLEPLAY',
    VehHudText = 'uz-rp',
    ServerMaxOnline = 120,
    SeatbeltControl = 'K',

    QuestionYes = 246, -- Y: 246
    QuestionNo = 249, -- N: 249

--
    NitroItem = "noos", -- item to install nitro to a vehicle
    NitroControl = "G",
    NitroForce = 40.0, -- Nitro force when player using nitro
    RemoveNitroOnpress = 2, -- Determines of how much you want to remove nitro when player press nitro key

    SignalControl = false,
    RightSignalControl = 174, -- > : 174
    LeftSignalControl = 175, -- < : 175
--


    MoneyDisplay = true, -- true | false
    StatusDisplay = true, -- true | false


    JobLabel = false, -- true | false (true:Officer  -  false: Police)
    JobDisplay = true, -- true | false
    BlackMoneyDisplay = false, -- true | false
    BossMoneyDisplay = false, -- true | false

    SocietyMoney = function()
        return 0 -- You should edit this to your own server
    end,

    DefaultMapType = 'rectangle', -- rectangle | radial

    Lang = {
        ['Online'] = 'ONLINE',
        ['ID'] = 'ID',
    },

    GetVehFuel = function(Veh)
        return exports["uz_fuel"]:GetFuel(Veh) -- exports["LegacyFuel"]:GetFuel(Veh) - GetVehicleFuelLevel(Veh) - exports["uz_fuel"]:GetFuel(Veh)
    end,

    StressChance = 0.1, -- Default: 10% -- Percentage Stress Chance When Shooting (0-1)
    MinimumStress = 50, -- Minimum Stress Level For Screen Shaking
    MinimumSpeedUnbuckled = 50, -- Going Over This Speed Will Cause Stress

    WhitelistedWeaponStress = {
        `weapon_petrolcan`,
        `weapon_hazardcan`,
        `weapon_fireextinguisher`
    },

    Intensity = {
        [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,
        },
    },

    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)
        }
    }
}



function GetFramework()
    local Get = nil
    if Customize.Framework == "ESX" then
        while Get == nil do
            TriggerEvent('esx:getSharedObject', function(Set) Get = Set end)
            Citizen.Wait(0)
        end
    end
    if Customize.Framework == "QBCore" then
        Get = exports["qb-core"]:GetCoreObject()
    end
    if Customize.Framework == "OldQBCore" then
        while Get == nil do
            TriggerEvent('QBCore:GetObject', function(Set) Get = Set end)
            Citizen.Wait(200)
        end
    end
    return Get
end

function ExecuteSql(query)
    local IsBusy = true
    local result = nil
    if Customize.Mysql == "oxmysql" then
        if MySQL == nil then
            exports.oxmysql:execute(query, function(data)
                result = data
                IsBusy = false
            end)
        else
            MySQL.query(query, {}, function(data)
                result = data
                IsBusy = false
            end)
        end
    elseif Customize.Mysql == "ghmattimysql" then
        exports.ghmattimysql:execute(query, {}, function(data)
            result = data
            IsBusy = false
        end)
    elseif Customize.Mysql == "mysql-async" then   
        MySQL.Async.fetchAll(query, {}, function(data)
            result = data
            IsBusy = false
        end)
    end
    while IsBusy do
        Citizen.Wait(0)
    end
    return result
end


--[[
    if exports['uz_TrygonHud']:Question('UZStore', 'Do you want to open settings ?') then
        SendReactMessage('setOpenSettings', true)
        SetNuiFocus(true, true)
    end
]]

--[[
    exports['uz_TrygonHud']:SetHudVisibility(false)
    exports['uz_TrygonHud']:SetHudVisibility(true)
]]

Guia de configuração

O Trygon HUD entregue expõe suas configurações editáveis através de Customize.lua; o dump completo anterior foi reduzido às decisões necessárias.

Requisitos e preparação

  • Selecione QBCore, ESX ou OldQBCore.
  • Selecione oxmysql, ghmattimysql ou mysql-async e mantenha o adaptador correspondente disponível.

Instalação

  1. Extrair uz_TrygonHud no diretório de recursos.
  2. Configure o framework, adaptador SQL, unidade de velocidade, rótulo do servidor, controle do cinto de segurança e exportação de combustível em Customize.lua.
  3. Inicie o HUD após os recursos de framework, banco de dados e status que ele lê.

Pontos de verificação de configuração

  • Verifique os status de dinheiro, trabalho, fome/sede, voz, cinto de segurança e HUD do veículo.
  • Se o nitro estiver habilitado, confirme seu nome de item, controle e valores de consumo antes do uso em produção.

Segurança: Faça backup do recurso afetado e das tabelas do banco de dados, use credenciais de propriedade do seu servidor e conclua um teste de staging antes de substituir um recurso ativo. A configuração completa permanece no pacote de download.

Avaliações

Não há avaliações ainda.

Apenas clientes logados que compraram este produto podem deixar uma avaliação.