Hey so the question is that how do I calculate how much kilometrage has been driven on the current ped’s vehicle / or spawned cruiser or whatever.
GTA’s speed is based on meters/second. Simply convert to km/h
I was wondering how to print out the kilometrage that has been driven with the current vehicle they’re on.
You will need to create a script that stores the data then shows it.
Finally someone with a brain here, about it, how do I store it for every specific driven vehicle or atleast personal vehicles?
Well, some sort of logic would be required to actually measure how far a vehicle has been driven. This could be done by logging the coordinate of the vehicle every x seconds, and then measuring between each log. This is very basic and would be somewhat inaccurate, but it is what I thought of on the spot.
As far as storing the data, you could store the number on each vehicle itself as a decorator. However, that will only last as long as the vehicle is spawned. In order to keep it forever (which I assume you want to do), you should probably integrate it into whatever database your server uses for storing its personal vehicle information.
Thanks for the advise tho, you can lock the thread it was very helpful comment