SET_VEHICLE_COLOUR_COMBINATION
Sets the selected vehicle's colors to their default value (specific variant specified using the colorCombination parameter).
Signature
void SET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle, int colorCombination);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to modify. |
colorCombination | int | One of the default color values of the vehicle. |
Returns void
Description
Sets the selected vehicle's colors to their default value (specific variant specified using the colorCombination parameter). Range of possible values for colorCombination is currently unknown, I couldn't find where these values are stored either (Disquse's guess was vehicles.meta but I haven't seen it in there.)
This is the server-side RPC native equivalent of the client native SET_VEHICLE_COLOUR_COMBINATION.
Usage
SetVehicleColourCombination(vehicle, colorCombination)
-- always works, by hash
Citizen.InvokeNative(0xa557aead, vehicle, colorCombination)JavaScript and C#
SetVehicleColourCombination(vehicle, colorCombination);
// by hash
Citizen.invokeNative('0xa557aead', vehicle, colorCombination);Function.Call((Hash)0xa557aead, vehicle, colorCombination);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.