[HELP] Trew-Hud-UI doesn´t show

For those people who have issues AND using Kashacters:

Open the client/client.lua and around line 580 you change it with the following

AddEventHandler('es:allowedToSpawn', function()

	SendNUIMessage({ action = 'ui', config = Config.ui })
	SendNUIMessage({ action = 'setFont', url = Config.font.url, name = Config.font.name })
	SendNUIMessage({ action = 'setLogo', value = Config.serverLogo })
	
	if Config.ui.showVoice == true then
		if Config.voice.levels.current == 0 then
			NetworkSetTalkerProximity(Config.voice.levels.default)
		elseif Config.voice.levels.current == 1 then
			NetworkSetTalkerProximity(Config.voice.levels.shout)
		elseif Config.voice.levels.current == 2 then
			NetworkSetTalkerProximity(Config.voice.levels.whisper)
		end
	end
end)

AddEventHandler('es:allowedToSpawn', function()
	if Config.ui.showVoice == true then
	    NetworkSetTalkerProximity(5.0)
	end

	HideHudComponentThisFrame(7) -- Area
	HideHudComponentThisFrame(9) -- Street
	HideHudComponentThisFrame(6) -- Vehicle
	HideHudComponentThisFrame(3) -- SP Cash
	HideHudComponentThisFrame(4) -- MP Cash
	HideHudComponentThisFrame(13) -- Cash changes!
end)
4 Likes

doesnt work for me

What path is that file?

omg i love u man, after 4 days i found this. My problem was that when i join i should put /toggleui to see blakc money, cash and bank money. I didnt see stamina food… And i literally copy this, went to client.lua in trew_hud_ui and scroll down to the finall, put – local solution toggleui2 (press enter 2 times and copi this and it works! THX man

1 Like

happy to help

this worked for me thanks!

2 Likes

where client.lua or html is located

1 Like

i am trying to use the ESX version but after following everything it says to do i only get the speedomitor when in a car driving but no huid in the top right. What do i need to do

2 Likes

thanks brother, that was the definitive solution. and with visual studio change all at the same time

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.