local function canLBeams(ent) return VC.getServerSetting("Lights") and VC.getServerSetting("HeadLights") and IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.LBeam end local function canHBeams(ent) return VC.getServerSetting("Lights") and VC.getServerSetting("HeadLights") and IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.HBeam end  concommand.Add("vc_lowbeams_toggle", function(ply) local ent = ply:GetVehicle() if canLBeams(ent) then if !VC.GetState(ent, "LowBeamsOn") then VC.LowBeamsOn(ent) else VC.LowBeamsOff(ent) end end end) concommand.Add("vc_highbeams_toggle", function(ply) local ent = ply:GetVehicle() if canHBeams(ent) then if !VC.GetState(ent, "HighBeamsOn") then VC.HighBeamsOn(ent) else VC.HighBeamsOff(ent) end end end)  concommand.Add("VC_highbeams", function(ply, cmd, arg)  local ent, HA = ply:GetVehicle(), tonumber(arg[1]) if !HA then HA = 0 end   if canHBeams(ent) then  local on = VC.GetState(ent, "HighBeamsOn")  if HA == 2 or HA == 0 and on then  VC.HighBeamsOff(ent)  else  VC.HighBeamsOn(ent)  end  end end)  concommand.Add("VC_Hazards_OnOff", function(ply) local ent = ply:GetVehicle() if IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.Blinker then if VC.getServerSetting("Lights") and !VC.GetState(ent, "HazardLightsOn") then VC.HazardLightsOn(ent) else VC.HazardLightsOff(ent) end end end) concommand.Add("VC_Blinker_Left", function(ply) local ent = ply:GetVehicle() if IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.Blinker then if VC.getServerSetting("Lights") and !VC.GetState(ent, "TurnLightLeftOn") then VC.TurnLightLeftOn(ent) else VC.TurnLightLeftOff(ent) end end end) concommand.Add("VC_Blinker_Right", function(ply) local ent = ply:GetVehicle() if IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.Blinker then if VC.getServerSetting("Lights") and !VC.GetState(ent, "TurnLightRightOn") then VC.TurnLightRightOn(ent) else VC.TurnLightRightOff(ent) end end end)  concommand.Add("VC_FogLights_OnOff", function(ply) local ent = ply:GetVehicle() if IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.Fog then if VC.getServerSetting("Lights") and VC.getServerSetting("FogLights") and !VC.GetState(ent, "FogLightsOn") then VC.FogLightsOn(ent) else VC.FogLightsOff(ent) end end end) concommand.Add("vc_runninglights_toggle", function(ply) local ent = ply:GetVehicle() if IsValid(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable and VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable.Running then if VC.getServerSetting("Lights") and !VC.GetState(ent, "RunningLightsOn") then VC.RunningLightsOn(ent) else VC.RunningLightsOff(ent) end end end)  concommand.Add("vc_lights_switch", function(ply)  local ent = ply:GetVehicle()  if !VC.getServerSetting("Lights") then return end  if IsValid(ent) then  local data = VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent) if !data then return end  local lTable = VC_DFO11a33504e893f8f7c471c32458e6a5b7iGm(ent).LightTable if !lTable then return end   local hasRunning, hasLowBeam = VC.getServerSetting("Lights_Running") and lTable.Running, VC.getServerSetting("HeadLights") and lTable.LBeam if !hasRunning and !hasLowBeam then return end  local onRunning, onLowBeam = VC.GetState(ent, "RunningLightsOn"), VC.GetState(ent, "LowBeamsOn")   if onRunning and onLowBeam then  VC.RunningLightsOff(ent, true)  VC.LowBeamsOff(ent)  elseif (!hasRunning or onRunning) and hasLowBeam and !onLowBeam then  VC.LowBeamsOn(ent)  elseif !onRunning and hasRunning then  VC.RunningLightsOn(ent)  elseif onRunning and !hasLowBeam then  VC.RunningLightsOff(ent)  elseif onLowBeam and !hasRunning then  VC.LowBeamsOff(ent)  end  end end)  concommand.Add("VC_Cruise_OnOff", function(ply)  local ent = ply:GetVehicle() local GVeh = ent.VC_Parent or ent  if IsValid(ent) and ent == GVeh then  if VC.GetState(ent, "CruiseOn") then  VC.CruiseOff(ent)  else  VC.CruiseOn(ent)  end  end end) local rs7 = "vc.check_msg_work_ALS_k4" 