RedM Natives

SET_VEHICLE_EXTRA

Hash0xBB6F89150BC9D16B
Runtime nameSetVehicleExtra
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7EE3A3C5E4A40CC9

Signature

void SET_VEHICLE_EXTRA(Vehicle vehicle, int extraId, BOOL disable);

Parameters

NameTypeDescription
vehicleVehicle—
extraIdint—
disableBOOL—

Returns void

Description

Note: only some vehicle have extras
https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_extras.lua

Usage

Lua
SetVehicleExtra(vehicle, extraId, disable)

-- always works, by hash
Citizen.InvokeNative(0xBB6F89150BC9D16B, vehicle, extraId, disable)
JavaScript and C#
JavaScript
SetVehicleExtra(vehicle, extraId, disable);

// by hash
Citizen.invokeNative('0xBB6F89150BC9D16B', vehicle, extraId, disable);
C#
Function.Call((Hash)0xBB6F89150BC9D16B, vehicle, extraId, disable);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.