Hey, i made this while trying stuff out with React & TS in FiveM, it’s currently still in development and bugs are 100% expected, i want to go ahead and add more features to this, please go ahead and give me some suggestions, as of currently it’s kind of very minimalistic and not with that many features.
Originally this script was built with Vanilla HTML & JS, recently switched to using React, TypeScript, Tailwind CSS.
1.1
Added Optional support for Hunger and Thirst for ESX/QB Core Frameworks.
1.2
Seatbelt added (QB Only for now/Optional)
ID (Standalone/Optional)
Configuration for Both the ID and Seatbelt added.
Small changes for Icon’s/Text to make some things look cleaner.
Delayed the Stress Option for QB, i'm not that familiar with QB so unsure if i should just grab the metadata and display it, or i have to write a complete stress increase/decrease mechanic.
1.3
Added Player Stress (QB/Optional)
Whenever the user Enters the Pause Menu the UI Disappears now. (Standalone/Optional)
Changed some minor stuff, such as the Seatbelt functions.
Updated Dependencies.
Added Types Definitions to mostly every single data received.
Speedometer Delay has been lowered, it should feel more instant now.
1.31
Added support for vRP (vRP functionality was written by @TacoTheDev)
1.35
Completely new part of the Hud Added, displays Cash/Bank/Black_Money/Job in the Top right, look at the image below for a preview. (QB/ESX)
Whatever else i did, just read the GitHub commit changes for everything else.
1.4
Updated some script logic for vRP compatibility.
Mostly Focused on Front-End Side and Re-Designing parts of the HUD.
The script doesn’t change the map at all, the one in the Preview was my own private server which has other things that change the map, it’s just the default map, in the future i will probably add map options, and i will go ahead and add stress in Version 1.2.
Suggestion - You mentioned you were going to add it to where it shows your player ID, You should make it in the bottom right. The car hud is going to be covering it so whenever a player gets in a car the player id moves maybe above the gear and you could also put the seatbelt above the mph