HUD
Functions

Vehicle: has God Mode

If god mode is on the vehicle is not able to be damaged at any spot by any means.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_hasGodMode()

Returns

1. Boolean Vehicle has god mode or not.

Example

concommand.Add("vehicle_togglegodmode", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		if ent:VC_hasGodMode() then
			ent:VC_setGodMode(false)
		else
			ent:VC_setGodMode(false)
		end
	else
		print("Invalid entity.")
	end

	print("Toggled vehicles god mode.")
end)
Page modified:
...2018-11-02 09:24:39