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.
Signature
void SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int r, int g, int b);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
r | int | — |
g | int | — |
b | int | — |
Returns void
Description
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
SetVehicleCustomSecondaryColour(vehicle, r, g, b)
-- always works, by hash
Citizen.InvokeNative(0x9d77259e, vehicle, r, g, b)JavaScript and C#
SetVehicleCustomSecondaryColour(vehicle, r, g, b);
// by hash
Citizen.invokeNative('0x9d77259e', vehicle, r, g, b);Function.Call((Hash)0x9d77259e, vehicle, r, g, b);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.