GetVehicleModColor2

From GTA Network Wiki
Jump to: navigation, search

GetVehicleModColor2
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Returns Vehicle's mod color 2 in RGB.

dialog-warning.png Page marked for deletion!

Syntax

API.GetVehicleModColor2(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.GetVehicleModColor2(vehicle, out red, out green, out blue);
   //Now the color values are stored in the latter variables.

Incorrect usage example

   byte cols, red, green, blue;
   cols = API.GetVehicleModColor2(vehicle, out red, out green, out blue);

Changelog

Version Description
1.0 Release.

References