0 to 60 timer/60ft time

I want to make some sort of timer to count the 0 to 60 in any vehicle. maybe activate it by a chat command or keybind. Any suggestion as to start on such a thing would be great. Thanks!

local player = GetPlayerPedInVehicle

table.count {
10
9
8
7
6
5
4
3
2
1
}

if player == InAnyVehicle then
print(table.count("")

Thats probaly not right, but idk

I am a little confused on what the purpose of this is for. Might help people understand if you give a prime example of all the stuff it does at the end of the timer etc…??

I originally wanted to use it so I could see what the vehicle is doing vs. what I want it to be doing. For example, I have a Mercedes AMG with custom handling on it. I want to see how quick the car is, to know if it’s at the speeds I need it to go. You could also find some people who would use those stats. Such as gearheads, or just someone wanting to see the stats their vehicle can put out.

ah… so like.

  1. You trigger the timer to stage
  2. When the accelerator is pressed it counts how long it takes you to get from 0 - 60 mph.

AccelerationTimer.rar (924 Bytes)

There ya go. It works fine.

Commands are /stagetimer [speedtotimeto] ex. 60 or 100 | /resettimer

1 Like

amazing good sir, thanks!