GET_VEHICLE_EXTRA_COLOURS
Signature
void GET_VEHICLE_EXTRA_COLOURS(Vehicle vehicle, int* pearlescentColor, int* wheelColor);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
pearlescentColor | int* | — |
wheelColor | int* | — |
Returns void
Usage
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)
-- always works, by hash
local pearlescentColor, wheelColor = Citizen.InvokeNative(0x80e4659b, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt())JavaScript and C#
const [pearlescentColor, wheelColor] = GetVehicleExtraColours(vehicle);
// by hash
const [pearlescentColor, wheelColor] = Citizen.invokeNative('0x80e4659b', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt());var pearlescentColor = new OutputArgument();
var wheelColor = new OutputArgument();
Function.Call((Hash)0x80e4659b, vehicle, pearlescentColor, wheelColor);
// pearlescentColor.GetResult<int>()
// wheelColor.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.