HUD
Functions

Vehicle: repair Part

Checks if the part is damaged or not.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_repairPart(String class, Integer part)

Arguments

1. String class; Class
The class of the object.

2. Integer part; Part
The part you want to fix.

Example

concommand.Add("vehicle_repair_front_left_wheel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_repairPart("wheel", 1)
		print("Your front left wheel is now repaired.")
		print("Repairing vehicles front left wheel.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:40