GetVehicleBulletproofTyres: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Returns wheter the vehicle's tyres are bullet proof or not. {{CSharpContainer| {{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleBulletproofTyres(Vehi...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Warning|This feature is currently not implemented server-side.}}
Returns wheter the vehicle's tyres are bullet proof or not.
Returns wheter the vehicle's tyres are bullet proof or not.


Line 11: Line 13:
if(tiresBulletProof)
if(tiresBulletProof)
{
{
   //Tires are bullet proof
   //Tyres are bullet proof
}
}
|lang=csharp}}
|lang=csharp}}
}}
}}
[[Category:Serverside API]]
[[Category:Serverside API]]

Latest revision as of 15:09, 23 December 2022

This feature is currently not implemented server-side.

Returns wheter the vehicle's tyres are bullet proof or not.


C# Syntax

bool NAPI.Vehicle.GetVehicleBulletproofTyres(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the status in bool type.

Example

bool tiresBulletProof = NAPI.Vehicle.GetVehicleBulletproofTyres(vehicle);
if(tiresBulletProof)
{
   //Tyres are bullet proof
}