[Release] Simple Speedometer

Thanks a lot for your scripts!

I’ve made a version of your speedometer to learn how it works.
Maybe someone would be interested so I put it here:
gui_speedometer.7z (14.9 KB)


I’ve changed a few things:

  • it appears a bit higher on the screen to allow space for vehicles and streets names
  • speeds are displayed both in MPH and KM/H.
    If you want the speed in MPH to be the biggest number, you can switch the following values in client.lua:
SendNUIMessage({
	showhud = true,

	unitLine1 = "KM/H",		-- Change this to: unitLine1 = "MPH",
	speedLine1 = speedKmh,		-- Change this to: speedLine1 = speedMph,
	unitLine2 = "MPH",		-- Change this to: unitLine2 = "KM/H",
	speedLine2 = speedMph		-- Change this to: speedLine2 = speedKmh,
})

I didn’t try it on another computer, so I hope it will not be screwed up if you use a different resolution (my game uses 1920*1080).

10 Likes