RedM Natives

GET_VEHICLE_EXTRA_COLOURS

Hash0x80E4659B
Runtime nameGetVehicleExtraColours
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void GET_VEHICLE_EXTRA_COLOURS(Vehicle vehicle, int* pearlescentColor, int* wheelColor);

Parameters

NameTypeDescription
vehicleVehicle—
pearlescentColorint*—
wheelColorint*—

Returns void

Usage

Lua
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)

-- always works, by hash
local pearlescentColor, wheelColor = Citizen.InvokeNative(0x80e4659b, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt())
JavaScript and C#
JavaScript
const [pearlescentColor, wheelColor] = GetVehicleExtraColours(vehicle);

// by hash
const [pearlescentColor, wheelColor] = Citizen.invokeNative('0x80e4659b', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt());
C#
var pearlescentColor = new OutputArgument();
var wheelColor = new OutputArgument();
Function.Call((Hash)0x80e4659b, vehicle, pearlescentColor, wheelColor);
// pearlescentColor.GetResult<int>()
// wheelColor.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

Sources

Cfx.re native reference

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