SET_VEHICLE_COLOURS
colorPrimary & colorSecondary are the paint indexes for the vehicle.
Signature
void SET_VEHICLE_COLOURS(Vehicle vehicle, int colorPrimary, int colorSecondary);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
colorPrimary | int | — |
colorSecondary | int | — |
Returns void
Description
colorPrimary & colorSecondary are the paint indexes for the vehicle. For a list of valid paint indexes, view: pastebin.com/pwHci0xK
This is the server-side RPC native equivalent of the client native SET_VEHICLE_COLOURS.
Usage
SetVehicleColours(vehicle, colorPrimary, colorSecondary)
-- always works, by hash
Citizen.InvokeNative(0x57f24253, vehicle, colorPrimary, colorSecondary)JavaScript and C#
SetVehicleColours(vehicle, colorPrimary, colorSecondary);
// by hash
Citizen.invokeNative('0x57f24253', vehicle, colorPrimary, colorSecondary);Function.Call((Hash)0x57f24253, vehicle, colorPrimary, colorSecondary);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.