VehicleClient

getVehicleHasKers

GET_VEHICLE_HAS_KERS0x50634E348C8D44EF

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

SignatureJavaScript
getVehicleHasKers(vehicle: Vehicle): boolean
SignatureLua
getVehicleHasKers(vehicle: Vehicle): boolean

Usage

JavaScript
const result = getVehicleHasKers(vehicle);
Lua
local result = getVehicleHasKers(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns true if the vehicle has a HF_HAS_KERS (strHandlingFlags 0x4) handing flag set, for instance the lectro/vindicator bikes or the open wheelers.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL GET_VEHICLE_HAS_KERS(Vehicle vehicle)
Hash
0x50634E348C8D44EF
Introduced
Game build 372 legacy numbering
Formerly
_HAS_VEHICLE_KERS_BOOST

Open in the interactive natives reference