I decided I’d do a bit of lua work so I coded up a simple command that sends stats about the car/vehicle you’re in to your chat.
Feedback is welcome and encouraged.
Displays:
Name (not spawn name) of the car
Max speed in MPH
Acceleration rate
Number of gears
Capacity
Enjoy, everyone!
Usage: /carstats when you’re in a vehicle
Maybe in the future try adding the spawn name that way we can blacklist the vehicles we don’t know the spawn names too and are too lazy to look it up… lol…
Maximum speed is affected by everything from acceleration to certain suspension settings in the handlings file, this simply pulls what the maximum top speed “should be” from fInitialDriveMaxFlatVel and setting this variable to a certain value does not guarantee the vehicle will reach this speed.
hmm its strange because it says all cars go slower than they actually do, do you know if there would be a way to pull the stat for trunk space from something like esx_trunk to put it in the stats?