fixed menu indicators on/off

test-utf-8
rubin 2 years ago
parent 189f336dc1
commit 1b1a57e3bb
  1. 9
      TruckHUD.lua

@ -583,6 +583,10 @@ function doDialog()
local str = dialogLine[list + 1] local str = dialogLine[list + 1]
if str:find("TruckHUD") then if str:find("TruckHUD") then
script_run = not script_run script_run = not script_run
if script_run then
delay.paycheck = 1
end
menu[i].run = script_run
ShowDialog1(1) ShowDialog1(1)
end end
if str:find("Сменить позицию статистики с таймером") then if str:find("Сменить позицию статистики с таймером") then
@ -2136,6 +2140,10 @@ function loadEvents()
end end
if params:lower() == " hud" then if params:lower() == " hud" then
script_run = not script_run script_run = not script_run
if script_run then
delay.paycheck = 1
end
menu[i].run = script_run
return false return false
end end
if params:lower() == " auto" then if params:lower() == " auto" then
@ -2145,6 +2153,7 @@ function loadEvents()
end end
if params:lower() == " chat" then if params:lower() == " chat" then
inifiles.Settings.Report = not inifiles.Settings.Report inifiles.Settings.Report = not inifiles.Settings.Report
menu[3].run = inifiles.Settings.Report
sampAddChatMessage( sampAddChatMessage(
string.format("Авто Доклад в рацию %s", (inifiles.Settings.Report and "активирован" or "деактивирован")), string.format("Авто Доклад в рацию %s", (inifiles.Settings.Report and "активирован" or "деактивирован")),
0xFF2f72f7 0xFF2f72f7

Loading…
Cancel
Save