GET_VEHICLE_CUSTOM_SECONDARY_COLOUR
Signature
void GET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int* r, int* g, int* b);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
r | int* | — |
g | int* | — |
b | int* | — |
Returns void
Usage
local r, g, b = GetVehicleCustomSecondaryColour(vehicle)
-- always works, by hash
local r, g, b = Citizen.InvokeNative(0x3ff247a2, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())JavaScript and C#
const [r, g, b] = GetVehicleCustomSecondaryColour(vehicle);
// by hash
const [r, g, b] = Citizen.invokeNative('0x3ff247a2', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());var r = new OutputArgument();
var g = new OutputArgument();
var b = new OutputArgument();
Function.Call((Hash)0x3ff247a2, vehicle, r, g, b);
// r.GetResult<int>()
// g.GetResult<int>()
// b.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
See also
SET_VEHICLE_CUSTOM_SECONDARY_COLOURp1, p2, p3 are RGB values for color (255,0,0 for Red, ect) This is the server-side RPC native equivalent of the client native SET_VEHICLE_CUSTOM_SECONDARY_COLOUR.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.