RedM Natives

GET_VEHICLE_INTERIOR_COLOUR

Hash0xCCFF3B6E
Runtime nameGetVehicleInteriorColour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void GET_VEHICLE_INTERIOR_COLOUR(Vehicle vehicle, int* color);

Parameters

NameTypeDescription
vehicleVehicle—
colorint*—

Returns void

Usage

Lua
local color = GetVehicleInteriorColour(vehicle, color)

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

// by hash
const color = Citizen.invokeNative('0xccff3b6e', vehicle, Citizen.pointerValueIntInitialized(color));
C#
var color = new OutputArgument();
Function.Call((Hash)0xccff3b6e, 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.