GetVehicleHealth: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
{{FuncParam|vehicle|The vehicle identifier}}
{{FuncParam|vehicle|The vehicle identifier}}


{{FuncReturnValue|Vehicle health in float value between 0 to 5000}}
{{FuncReturnValue|Vehicle health in float value between 0 to 10000}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
__EDIT_ME__
print("Vehicle Health: " .. GetVehicleHealth(vehicle)/10000 .. "%"
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{VehicleFunctions}}
{{VehicleFunctions}}

Latest revision as of 14:52, 26 June 2021