SetVehicleTyreSmokeColor: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function sets the tyre smoke color as an RGB value. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehicleTyreSmokeColor(Vehicle vehicle,...")
 
No edit summary
Line 1: Line 1:
This function sets the tyre smoke color as an RGB value.
This function sets the tyre smoke color as an RGB value.


==Syntax==
{{CSharpContainer|
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehicleTyreSmokeColor(Vehicle vehicle, Color color);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehicleTyreSmokeColor(Vehicle vehicle, Color color);}}
=== Required Arguments ===
*'''vehicle:''' parameter input should be in '''Vehicle''' type
*'''color:''' parameter input should be in '''Color''' type
==Example==
{{CSharpContainer|
{{Parameters}}
{{Parameters}}
*'''vehicle:''' parameter input should be in '''Vehicle''' type
*'''vehicle:''' parameter input should be in '''Vehicle''' type

Revision as of 21:02, 27 November 2019

This function sets the tyre smoke color as an RGB value.


C# Syntax

void NAPI.Vehicle.SetVehicleTyreSmokeColor(Vehicle vehicle, Color color);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • color: parameter input should be in Color type

Example

NAPI.Vehicle.SetVehicleTyreSmokeColor(vehicle, new Color(255, 0, 0));