RedM Natives

SET_VEHICLE_CUSTOM_PRIMARY_COLOUR

p1, p2, p3 are RGB values for color (255,0,0 for Red, ect) This is the server-side RPC native equivalent of the client native SET_VEHICLE_CUSTOM_PRIMARY_COLOUR.

Hash0x8DF9F9BC
Runtime nameSetVehicleCustomPrimaryColour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(Vehicle vehicle, int r, int g, int b);

Parameters

NameTypeDescription
vehicleVehicle—
rint—
gint—
bint—

Returns void

Description

Cfx.re native reference

p1, p2, p3 are RGB values for color (255,0,0 for Red, ect)

This is the server-side RPC native equivalent of the client native SET_VEHICLE_CUSTOM_PRIMARY_COLOUR.

Usage

Lua
SetVehicleCustomPrimaryColour(vehicle, r, g, b)

-- always works, by hash
Citizen.InvokeNative(0x8df9f9bc, vehicle, r, g, b)
JavaScript and C#
JavaScript
SetVehicleCustomPrimaryColour(vehicle, r, g, b);

// by hash
Citizen.invokeNative('0x8df9f9bc', vehicle, r, g, b);
C#
Function.Call((Hash)0x8df9f9bc, vehicle, r, g, b);

See also

Sources

Cfx.re native reference

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