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

Have you managed to find a solution for this? I’m getting the same error and can’t figure out what it is.

where did you install it?

I set up this hud for esx v1 final. Everything seems like is going well, but I am receiving an error.
Maybe someone could look into this and enlighten me, as I would prefer not getting this error. I looked through the github script and found that it is about a line, that has recently been altered so the script would apply for the last esx, but yeah… still getting an error about that exact line.

The error -

The line in the script which the error is referring to -
image

And area and vehicle names are showing in the lower right corner. I used this script some time ago and then this script removed that (which was really nice).
I looked through client.lua file, it seems like there is code for removing those hud elements (area and vehicle name that appears in lower right when you take a vehicle or when your locations changes), but it is not working now. If someone is interested, maybe somebody could check this out… if not, I think I will just need to use older version, which is a bummer, because in the latest code, many things are updated, which is nice, but yeah… the thing I mentioned - not working.

Can we change the logo?

probably need to edit it in the config somewhere to ensure that jobname says unemployed instead of jobname. that’s a relatively small issue

i’m getting the same issue. The heads up display does not Appear in game except for the vehicle display so i know i have it in and started correctly. it’s unfortunate that this script is no longer being updated as it is a really nice display

1 Like

};

function ajaxio(method,url,type=null,data=null) {
return new Promise((resolve, reject) => {
const req = new XMLHttpRequest();
req.open(method, url, true);

	if (method == 'POST') {
		if (type == 'json' && data != null) {
			req.setRequestHeader('Content-Type', 'application/json');
			var data = JSON.stringify(data);
		}
		else { req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); }
	}

	req.onload = () => req.status === 200 ? resolve(req.response) : reject(Error(req.statusText));
	req.onerror = (e) => reject(Error(`Network Error: ${e}`));

	if (method == 'POST') { req.send(data); }
	else { req.send(); }
});

}

error on the function ajaxio(method,url,type=null,data=null) {

(error: parsing error: unexpected token = ) this is the error and it courses 105 app.js error in game help please i can not find any where and @Gadash your update does not fix this issue.

that’s not correct your see what iv put your error is the same

Somehow only the green money symbol of es_extended stays activated, would anyone happen to know how to disable this? Already set it to ‘false’.

did you find fix???

Hey Bro, Thanks for your changes, ui finally works.
But my ui only show my health amount right, it can’t show job name/hunger/thirst/and money.
What should I do for now? Thank you so much.

has how to add the life of the engine?

Help, I have this problem:

1 Like

give me pls

How do i get rid of the turn signals and seatbelt option

Hello guys is there someone who have the update version of it ?
i have the issue with the RegisterCommand
thanks a lot

Using ES_Extended 1.2 final

Uncaught TypeError: Cannot read property ‘toLoacaleString’ of undefined (@threw_hud_ui/html?app.js:105) Can eny help me

I fixed this issue, wipe out the entire code and replace with this:

ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

TriggerEvent('es:addCommand', 'toggleui', function()
end, { help = _U('toggleui') })

RegisterServerEvent('trew_hud_ui:syncCarLights')
AddEventHandler('trew_hud_ui:syncCarLights', function(status)
	TriggerClientEvent('trew_hud_ui:syncCarLights', -1, source, status)
end)
4 Likes

whats the bag icon for