> For the complete documentation index, see [llms.txt](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/hud.md).

# HUD

## THIS IS NOT RELEASED YET!

## 🚧 INSTALLATION

#### Requirements

* [ ] [NativeUI / NativeUIReloaded](https://discord.com/channels/901573350076342312/1098336114529538148/1098336468029669409)
* [ ] [mysql-async/oxmysql](https://discord.com/channels/901573350076342312/1098336114529538148/1098336468029669409)
* [ ] ([mfp\_mileage](https://store.mfpscripts.com/package/6136980))
* [ ] es\_extended

Server.cfg

```lua
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!

{% file src="/files/Dskfx48xV02csWDBXUQc" %}

## ESX 1.2.0 (up to 1.9.0)

*Replace esx\_status/client/client.lua - line 60 with this*

```lua
-- 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*

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