HUD
Functions

GM: player Repaired Part

Called after a part of vehicle is repaired by using VCMod wrench.

Used in: VCMod Main addon.

Server GM:VC_playerRepairedPart(Player ply, Entity ent, String class, Integer object)

Arguments

1. Player ply; Entity
The hero.

2. Entity ent; Entity
The unlucky vehicle.

3. String class; Class
The part type.

4. Integer object; Object
The part numnber.

Example

hook.Add("VC_playerRepairedPart", "CheckForEngineRepairs", function(ply, ent, class, object)
	if class == "engine" then
		print(ply:Nick().." has just finished repairing "..VC_GetName(ent).." vehicles "..class..".")
	end
end)
Page modified:
...2018-11-02 09:24:40