VehicleClientNot in this build2 outputs

getVehicleExhaustBone

_GET_VEHICLE_EXHAUST_BONE0xE728F090D538CB18

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

SignatureJavaScript
getVehicleExhaustBone(vehicle: Vehicle, index: number): [
  ok: boolean,
  boneIndex: number,
  axisX: boolean
]
SignatureLua
getVehicleExhaustBone(
  vehicle: Vehicle,
  index: integer
): boolean, integer, boolean
⚠
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 [ok, boneIndex, axisX] = getVehicleExhaustBone(vehicle, index);
Lua
local ok, boneIndex, axisX = getVehicleExhaustBone(vehicle, index)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
indexintnumberinteger

Returns

3 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2boneIndexintnumberintegeroutput
3axisXBOOLbooleanbooleanoutput

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL _GET_VEHICLE_EXHAUST_BONE(Vehicle vehicle, int index, int* boneIndex, BOOL* axisX)
Hash
0xE728F090D538CB18
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference