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

Loading…
Cancel
Save