VehicleClientNot in this build

getVehicleCurrentRevRatio

_GET_VEHICLE_CURRENT_REV_RATIO0xF9DDA40BC293A61E

The GTA V native _GET_VEHICLE_CURRENT_REV_RATIO of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleCurrentRevRatio, in JavaScript and in Lua.

SignatureJavaScript
getVehicleCurrentRevRatio(vehicle: Vehicle): number
SignatureLua
getVehicleCurrentRevRatio(vehicle: Vehicle): number
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const value = getVehicleCurrentRevRatio(vehicle);
Lua
local value = getVehicleCurrentRevRatio(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Vehicle VEHICLE
In the game
float _GET_VEHICLE_CURRENT_REV_RATIO(Vehicle vehicle)
Hash
0xF9DDA40BC293A61E
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference