# 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)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/hud.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
