Scripting/Server/Classes/Vehicle/Fix
Restores full health and removes damage.
Contents
Syntax
vehicle.Fix()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "fix" )
{
local veh = player.Vehicle;
if ( !veh ) return MessagePlayer( "Sit in a vehicle first.", player );
veh.Fix();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- vehicle.Remove
- vehicle.Respawn
- vehicle.Explode
- vehicle.SetBurstableTyres
- player.AttachTo
- object.AttachTo
- object.AttachToBone
- vehicle.SetComponentStatus
- vehicle.SetComponentStatus
- vehicle.SetComponentAngle
- vehicle.SetComponentColour
- vehicle.TurretRotation
Section: Vehicle
Categories: Server methods | Vehicle