Hello everyone,
Here is a quick thing I put together to work for fiveM, a tesla styled Speedometer.
You don’t need anything extra to run this, just fiveM.
[NOTE]: The positioning of the speedometer is based on 1080x1920 resolution monitor, other resolutions may be broken or misplaced ( since all the graphics are created in the JS ) If this is the case for you then you need to go to the js part of the code and change it yourself.
Credits
The NUI was adapted from Tameem Imamdad and his post on code pen all credit goes to him.
It technically does! Go to “xSpeedometer/client.lua”, then change the number in line 7 from “2.237” to “3.6”. That will change it from MPH to KPH. The text will still say “mph” though, to change that head over to “xSpeedometer/script.js”, line 155 and change ctx.fillText("mph", 250, 235); to say either “kph” or “kmh”, depending on your preference, just edit the “mph” part though
Read the description, it is standalone, it is coded to be for a 1920 x 1080 p monitor and has to be adjusted for other screens, this is not a practical resource to use in a public sever instead something for others to build off of like a dev resource.