RedM Natives

GET_VEHICLE_HEADLIGHTS_COLOUR

Hash0xD7147656
Runtime nameGetVehicleHeadlightsColour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_HEADLIGHTS_COLOUR(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int

Usage

Lua
local retval = GetVehicleHeadlightsColour(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xd7147656, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleHeadlightsColour(vehicle);

// by hash
const retval = Citizen.invokeNative('0xd7147656', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xd7147656, vehicle);

Sources

Cfx.re native reference

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