[RELEASE] TREW HUD UI - A lightweight HUD for ESX, VRP AND VRPEX

i have the same error esx v1.2

Same error here.

Look this code:

setMoney: function(data) {
data.value = data.value.toLocaleString(Error is here ? What to put there ?);
var oldValue = document.querySelector(‘#’+data.id+’ span’).innerHTML;
if (oldValue != data.value) { document.querySelector(‘#’+data.id).classList.add(‘pulse’); }
eventCallback’setText’;

EDIT I spent the night looking for how to fix this money error and finally found the right version where I made some changes :slight_smile: HAVE FUN GUYS trew_hud_ui.rar (2.9 MB) Work of es_extended 1.1.0 and essential mode 6.4.2 !

image

7 Likes

How can i display the second job(double job ) in hud

Do you remember how did you fixed it?

When i put it on server it shows me only money in the job.

Helllo, i am currently using crypto customs for the cardealer job and the society money isnt showing for me. The society is showing for every other job except the cardealer job

someone help me please image

when i FIRST spawn and i make IDENTITY hud is JOBNAME , but when i take jobs its fine… can help me?

Good afternoon gents.
After doing my own customization i started to get my console spammed with:
nui:console Uncaught Error: safeInnerHTML: Please provide a valid element to inject content into (https://cdn.jsdelivr.net/gh/cferdinandi/saferInnerHTML@1/dist/saferInnerHTML.polyfills.min.js:2)

Did anyone ever faced this issue and figured out where does it come from?

Thank you very much.

I’ve got same problem?

anyone can help me with this?

3 Likes

Does someone know how to turn off the car hud

yeah someone help?same with me this error

So, I installed the HUD, and when I type /setmoney (ID) bank (amount) it shows it in my bank but when I type /setmoney (ID) wallet (ammount) it says “Wallet it not a valid money type”

how do I get my esx money to show in Trew HUD wallet, and not my basic esx inventory?

Hi,

Somehow my HUD is broken. Even if I download the HUD, it won’t work. If I log into my server, the only thing I see is the following in the image: UI at startup - Album on Imgur
Once I do /toggleui twice, I see the following in the image: After /toggleui - Album on Imgur

Would anyone happen to know how this is possible?

i got the same error…need help!

1 Like

My version fix your bug , just go up messages :slight_smile:

1 Like

how do i get this on the server side its only showing on my screen noone else?

Greetings everyone, i have been toying with the hud and have everything almost in the right position the status that i want… but i have tried and failed to get the Player ID from the server and add it to the hud area near the life button…

I managed to do get it on screen with :

Citizen.CreateThread(function()
    Wait(50)
    while true do
        miid(0.815, 1.435, 1.0,1.0,0.50, "~b~ID:~r~  ".. GetPlayerServerId(NetworkGetEntityOwner(GetPlayerPed(-1))) .. '', 255, 255, 255, 255)
        Citizen.Wait(1)
    end
end)

function miid(x,y ,width,height,scale, text, r,g,b,a, outline)
    SetTextFont(4)
    SetTextProportional(0)
    SetTextScale(scale, scale)
	SetTextColour( 0,0,0, 255 )
    SetTextDropShadow(0, 0, 0, 0,255)
    SetTextEdge(1, 0, 0, 0, 255)
    SetTextDropShadow()
	SetTextOutline()
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x - width/2, y - height/2 + 0.005)
end

but have been failing on multiple accounts to add it to the Trew_Hud_Ui
any tips on it? or code?
Thanks!