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_setGodMode(Boolean val)
1. Boolean val; God mode is on.
Toggles god mode for vehicle.
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)