GetVehicleMod: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Returns vehicle's tires smoke color in Color. {{CSharpContainer| {{#tag:pre|int {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleMod(Vehicle vehicle, int slot);}} {{...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Returns vehicle's tires smoke color in Color.
Returns the vehicle's mod.


{{CSharpContainer|
{{CSharpContainer|
Line 5: Line 5:
{{Parameters}}
{{Parameters}}
*'''vehicle:''' parameter input should be in '''Vehicle''' type
*'''vehicle:''' parameter input should be in '''Vehicle''' type
'''NOTE:''' This function returns the color in '''int''' type.
'''NOTE:''' This function returns the mod in '''int''' type.
{{Example}}
{{Example}}
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|

Latest revision as of 14:16, 12 December 2019

Returns the vehicle's mod.


C# Syntax

int NAPI.Vehicle.GetVehicleMod(Vehicle vehicle, int slot);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the mod in int type.

Example

NAPI.Vehicle.GetVehicleMod(vehicle, slot);