getVehicleExhaustBone
_GET_VEHICLE_EXHAUST_BONE0xE728F090D538CB18The 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.
getVehicleExhaustBone(vehicle: Vehicle, index: number): [
ok: boolean,
boneIndex: number,
axisX: boolean
]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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
index | int | number | integer |
Returns
3 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | boneIndex | int | number | integer | output |
| 3 | axisX | BOOL | boolean | boolean | output |
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