GetVehicleCustomSecondaryColor

From GT-MP
Jump to: navigation, search
GetVehicleCustomSecondaryColor
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Returns Vehicle's custom Secondary color in RGB.


Syntax

API.getVehicleCustomSecondaryColor(NetHandle vehicle, out byte red, out byte green, out byte blue);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.
  • red: parameter should be a defined as byte type variable.
  • green: parameter should be a defined as byte type variable.
  • blue: parameter should be a defined as byte type variable.


NOTE: This function stores data to the following 'red, green and blue' defined variables.

NOTE: This is a void function.

Correct usage example

   byte red, green, blue;
   API.getVehicleCustomSecondaryColor(vehicle, out red, out green, out blue);
   //Now the color values are stored in the latter variables.

Incorrect usage example

   byte seccols, red, green, blue;
   seccols = API.getVehicleCustomSecondaryColor(vehicle, out red, out green, out blue);


References