Hello people. Few days ago I started creating a new PlayerStats panel mainly focused on racing. I added the following things so far and they all work perfectly:
-Cars destroyed
-Bikes destroyed
-Boats destroyed
-Planes & Helicopters destroyed
-Race starts
-Race finishes
-Race wins
-Toptimes set
-Checkpoints collected
-Total earnings
-Money spent
-Current balance
But I also wanted to add these things:
*Distance travelled by car
*Distance travelled by motorbike
*Distance travelled by boat
*Distance travelled by aircraft
*Distance travelled by bicycle
So my question is, how can I record the distance travelled and save it as account data like all other stats above? I saw this and although I found the code responsible for recording the distance it's done in a pretty hard way (at least for me). Is there an easy way to record distance travelled by each of the above vehicles (in KMh)?