RedM Natives

SET_VEHICLE_COLOUR_COMBINATION

Sets the selected vehicle's colors to their default value (specific variant specified using the colorCombination parameter).

Hash0xA557AEAD
Runtime nameSetVehicleColourCombination
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle, int colorCombination);

Parameters

NameTypeDescription
vehicleVehicle

The vehicle to modify.

colorCombinationint

One of the default color values of the vehicle.

Returns void

Description

Cfx.re native reference

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

Lua
SetVehicleColourCombination(vehicle, colorCombination)

-- always works, by hash
Citizen.InvokeNative(0xa557aead, vehicle, colorCombination)
JavaScript and C#
JavaScript
SetVehicleColourCombination(vehicle, colorCombination);

// by hash
Citizen.invokeNative('0xa557aead', vehicle, colorCombination);
C#
Function.Call((Hash)0xa557aead, vehicle, colorCombination);

Sources

Cfx.re native reference

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