RedM Natives

GET_VEHICLE_DASHBOARD_COLOUR

Hash0xA0DBD08D
Runtime nameGetVehicleDashboardColour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void GET_VEHICLE_DASHBOARD_COLOUR(Vehicle vehicle, int* color);

Parameters

NameTypeDescription
vehicleVehicle—
colorint*—

Returns void

Usage

Lua
local color = GetVehicleDashboardColour(vehicle, color)

-- always works, by hash
local color = Citizen.InvokeNative(0xa0dbd08d, vehicle, Citizen.PointerValueIntInitialized(color))
JavaScript and C#
JavaScript
const color = GetVehicleDashboardColour(vehicle, color);

// by hash
const color = Citizen.invokeNative('0xa0dbd08d', vehicle, Citizen.pointerValueIntInitialized(color));
C#
var color = new OutputArgument();
Function.Call((Hash)0xa0dbd08d, vehicle, color);
// color.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

Cfx.re native reference

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