Difference between revisions of "ScriptHook.RepairLocalPlayerVehicle"

From Nomad DB
(Created page with "If the player is sitting inside a Vehicle, this function will repair it. If not in a Vehicle, this function does nothing. {{Warning|This does not repair dead vehicles, and bug...")
 
 
Line 10: Line 10:
 
* [[GetCurrentVehicleEntityId]]
 
* [[GetCurrentVehicleEntityId]]
  
[[WD2 ScriptHook Lua]]
+
[[Category:WD2 ScriptHook Lua]]

Latest revision as of 13:04, 18 April 2020

If the player is sitting inside a Vehicle, this function will repair it. If not in a Vehicle, this function does nothing.

This does not repair dead vehicles, and bugs might still occur when using this function.

Syntax

ScriptHook.RepairLocalPlayerVehicle()

Related Pages