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.
Signature
void SET_VEHICLE_CUSTOM_PRIMARY_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_PRIMARY_COLOUR.
Usage
SetVehicleCustomPrimaryColour(vehicle, r, g, b)
-- always works, by hash
Citizen.InvokeNative(0x8df9f9bc, vehicle, r, g, b)JavaScript and C#
SetVehicleCustomPrimaryColour(vehicle, r, g, b);
// by hash
Citizen.invokeNative('0x8df9f9bc', vehicle, r, g, b);Function.Call((Hash)0x8df9f9bc, vehicle, r, g, b);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.