HUD
Functions

Vehicle: explode Engine

Sets the vehicles health to 0, and makes the vehicle inoperable.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_explodeEngine(Boolean silent)

Arguments

1. Boolean silent; Silent.
Will destroy the car silently. Will not damage the players, make any effects.

Example

concommand.Add("vehicle_makecargoboom", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_explodeEngine(false)
		print("Vehicle has been destroyed.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:37