Page cover image

🎬HUD

This is for the customers of mfp_hud.

THIS IS NOT RELEASED YET!

🚧 INSTALLATION

Requirements

Server.cfg

start NativeUI
start esx_status
start mfp_milage
start mfp_hud

Thats it. Edit the config.lua the way you want it to and configure esx status. ^^


Style Problem: HUD is to small for you

If the HUD is to small for you just change the style.css with the style.css provided in mfp_hud\html\css\IF TO SMALL USE THIS\. Replace the css file and restart your script. Now the HUD shouldnt be such small on higher resolutions. Thats it!

Style Problem: HUD not showing mph, just kph

If the HUD is only showing your speed in kph but you changed to mph, make sure to replace the index.html with the index_mph.html. Thats it!


βš™ ESX STATUS INTEGRATION

Here you can find already implemented versions. We recommend integrating yourself to the newest esx_status version!

ESX 1.2.0 (up to 1.9.0)

Replace esx_status/client/client.lua - line 60 with this

-- Update hud
Citizen.CreateThread(function()
	  while true do

	  	for i=1, #Status, 1 do
	  		Status[i].onTick()
	  	end

			SendNUIMessage({
				update = true,
				status = GetStatusData()
			})
			
				TriggerEvent('mfp_hud:updateStatus', GetStatusData(true)) -- Das hier hinzuf gen!
	    Citizen.Wait(Config.TickTime)

	  end
	end)

ESX 1.9.4 (and above)

Replace esx_status/client/client.lua - line 190 with this

-- Update hud
Citizen.CreateThread(function()
	while true do
		TriggerEvent('mfp_hud:updateStatus', GetStatusData(true))
		Citizen.Wait(Config.TickTime)
	end
end)

Last updated