RedM Natives

SET_VEHICLE_CUSTOM_SECONDARY_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_SECONDARY_COLOUR.

Hash0x9D77259E
Runtime nameSetVehicleCustomSecondaryColour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_VEHICLE_CUSTOM_SECONDARY_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_SECONDARY_COLOUR.

Usage

Lua
SetVehicleCustomSecondaryColour(vehicle, r, g, b)

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

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

See also

Sources

Cfx.re native reference

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