SetVehiclePetrolTankHealth

From GT-MP
Jump to: navigation, search
SetVehiclePetrolTankHealth
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#


See also: GetVehiclePetrolTankHealth

Sets the durability of the petrol tank of the specified vehicle.

Syntax

API.setVehiclePetrolTankHealth(NetHandle vehicle, float health);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.
  • health: parameter input should be in float type.

Usage example(s)

API.setVehiclePetrolTankHealth(NetHandle vehicle, float health);

Changelog

Version Description
1.638.634 Release.

References