Documentation
›
API Reference
›
Object
›
Vehicle
GetGear
Lua
C++
This command returns the gear the vehicle's transmission is currently using. This can be used to modulate a sound's pitch for engine noises.
Syntax
int
GetGear
()
Returns
Returns the current gear the vehicle's transmission is in.