# Health

# Get the health of a vehicle SHARED

SV_GetHealth returns the health of a vehicle. SV_GetPercentHealth returns the percent health of a vehicle, between 0 and 100. SV_GetMaxHealth returns the maximum health of a vehicle.

if veh:SV_GetHealth() < 125 then
 -- The vehicle health is less than 125.
end

if veh:SV_GetPercentHealth() < 38 then
 -- The vehicle health is less than 38%.
end

if veh:SV_GetMaxHealth() < 200 then
 -- The vehicle maximum health is less than 200.
end

# Set the health of a vehicle SERVER

SV_SetHealth returns the health of a vehicle. SV_SetMaxHealth returns the maximum health of a vehicle.

veh:SV_SetHealth(125)

veh:SV_SetMaxHealth(200)