HUD
Functions

Vehicle: repair Health

Repairs the main vehicles health.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_repairHealth(Integer amount)

Arguments

1. Integer amount; Amount of health.
The amount of health that needs to be given to the vehicle in VCMod health units.

Example

concommand.Add("vehicle_repairengineabit", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_repairHealth(20)
		print("Givig some extra health.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:40