SetVehiclePrimaryColor: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This sets the vehicle's primary color. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehiclePrimaryColor(Vehicle vehicle, int color);}} === R...")
 
No edit summary
 
Line 1: Line 1:
This sets the vehicle's primary color.
This sets the vehicle's primary color.


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

Latest revision as of 21:03, 27 November 2019

This sets the vehicle's primary color.


C# Syntax

void NAPI.Vehicle.SetVehiclePrimaryColor(Vehicle vehicle, int color);

Parameters

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

Example

NAPI.NAPI.Vehicle.SetVehiclePrimaryColor(vehicle, 45);