ESX Car Mileage

Hey everyone, back again to FiveM, guess I’ve wanted this for a long time but never found the time to do it so now that I’ve had a free afternoon I just got with it.

So here it is, a car mileage script, for ESX as of now, might make it standalone if I find the way to, haha.

No pictures since it just adds a little KMs text to your screen which shows the KMs your car has been driven.

For now it’s only KMs, might make it miles soon, made it an afternoon so haven’t made all the retard-checks yet.

Download: https://github.com/D3uxx/esx_carmileage/releases/tag/1.0

Pictures

Picture thanks to @dkostin :
https://forum.cfx.re/uploads/default/original/4X/c/c/0/cc0f78b53b5f7fea976150b7d2c46f7253ff2f6b.jpeg
It’s that thing that says 0.05 km next to the radar, thanks mate!

Picture thanks to @_7rk :
https://forum.cfx.re/uploads/default/original/4X/3/2/4/32460441d15615ec1c37a86ff1d87c4b7eaaa983.jpeg
On the picture it’s that thing where it says 0.91 KM

Thanks to @Jordanpkl for gaytesting the script.

19 Likes

Hello @hypr9xaThank you for this love script
I got this error

SCRIPT ERROR in reference call: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
in console

What FiveM build are you running this on?

Could you screenshot the whole console and send it?

Have you uploaded the DB correctly?

Could you replicate how did you get to that error or it just popped up like that?

let me check the build.
1715

it just came out. The script works perf. writes in db and it shows for other people without any other problems. The only problem is that is fulls my console with warnings

Just tried with latest build, instead of ensure use start in server.cfg

See if that works, if still gives errors let me know.

I use start in server.cfg

What version of MySQL async are you using?
I’m using 3.2.0

people still like to see pics bro

I actually took a screenshot but reshade saved it to I don’t know where and cba to find it tbh.

Someone please take a sick picture and I’ll give you a big THANK YOU!

1 Like

not sure. what time did you say to write in db?

pictures of a text? lel

1 Like

I haven’t understood that to be honest, also, as of now I’ve been running the server with the script on for around 20 minutes and no errors so far, I need more info to replicate, and are you sure it’s this plugin that is causing it?

Stop it and see if it’s not other.


proof of script. just edited the position

Here also without errors

Amazing release!

Hello man nice script but can you give coordinates for hud position?