GET_VEHICLE_DASHBOARD_COLOUR
Signature
void GET_VEHICLE_DASHBOARD_COLOUR(Vehicle vehicle, int* color);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
color | int* | — |
Returns void
Usage
local color = GetVehicleDashboardColour(vehicle, color)
-- always works, by hash
local color = Citizen.InvokeNative(0xa0dbd08d, vehicle, Citizen.PointerValueIntInitialized(color))JavaScript and C#
const color = GetVehicleDashboardColour(vehicle, color);
// by hash
const color = Citizen.invokeNative('0xa0dbd08d', vehicle, Citizen.pointerValueIntInitialized(color));var color = new OutputArgument();
Function.Call((Hash)0xa0dbd08d, vehicle, color);
// color.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.