iHUD v2 - A lightweight, modern ESX HUD that shows player status , jobs , money , and a voice-talking cue via NUI. Compatible with ESX framework for FiveM serve
Política de reembolso de 14 días
Actualizaciones gratuitas para siempre
Inspecciona y modifica el código
Haz clic para cargar el video de YouTube. Al verlo, aceptas su política de privacidad.
fxmanifest.lua
ui_page NUI/index.htmlNUI/src/*shared_script config.luaclient_script client/*.luaclient/main.luaconfig.luaNUI/index.html, NUI/src/css/*, NUI/src/js/{config.js,index.js,events.js}, NUI/src/images/micro.pngConfig = {
DEBUG = false,
-- How to get ESX:
ESX_method = function, -- function (export) or event
eventNameESX = esx:getSharedObject,
extendedName = extended, -- e.g. es_extended / extended
VERSION_ESX = final, -- legacy or final (informational)
-- Status source (list of {name, percent}):
statusEventName = esx_customui:updateStatus,
ACTIVED = {
JOB = true,
JOB2 = true,
MONEY = true,
BLACK_MONEY = true,
MICRO = true
}
}
sigma_hud:onTick), the client listens on Config.statusEventName or falls back to sigma_hud:onTick.esx:playerLoaded → HUD initializes with ESX player data.SendNUIMessage({ type = init, config = Config.ACTIVED })
Config.statusEventName (default esx_customui:updateStatus) and emit a list like:
TriggerEvent(esx_customui:updateStatus, {
{ name = hunger, percent = 48.0 },
{ name = thirst, percent = 72.0 }
})
esx:setJob and esx:setJob2 are handled automatically. NUI receives:
SendNUIMessage({ type = updateJob, jobs = {
{ label = job.label, grade = job.grade_label },
{ label = job2.label, grade = job2.grade_label }
}})
esx:setAccountMoney updates cash and black money:
SendNUIMessage({ type = updateMoney, moneys = {
{ label = Liquide, value = cash.money },
{ label = black.label, value = black.money }
}})
NetworkIsPlayerTalking(PlayerId()); shows/hides mic icon with:
SendNUIMessage({ type = toogleMicro, show = true/false })
type = changeMicro), so you can hook it into your voice resource if desired.TriggerEvent(iHud-V2::show, true) -- show
TriggerEvent(iHud-V2::show, false) -- hide
resources (e.g. resources/[ui]/iHud-V2).ensure iHud-V2
config.lua.{ name = hunger/thirst, percent = <0-100> } arrays to Config.statusEventName.function mode expects: ESX = exports[Config.extendedName]:getSharedObject()event mode expects: TriggerEvent(Config.eventNameESX, function(obj) ESX = obj end)type=changeMicro and your chosen CSS class.0 preguntas
Aún no hay preguntas
¡Sé el primero en hacer una pregunta sobre este producto!