diff --git a/TruckHUD.lua b/TruckHUD.lua index 48bcbe5..8662e4a 100755 --- a/TruckHUD.lua +++ b/TruckHUD.lua @@ -2213,21 +2213,6 @@ function loadEvents() end end - function find_gruz_name(text) - local result = false - for i = 1, #what_is_uploaded do - if text:find(what_is_uploaded[i]) then - result = true - end - end - for k,v in pairs(texts_of_reports) do - if text:find(v) then - result = true - end - end - return result - end - function sampev.onServerMessage(color, message) if message == " У вас бан чата!" then delay.chatMon = 0 @@ -4270,7 +4255,6 @@ function luChecker.checker() if luChecker.price_set[1] ~= nil and luChecker.trailer_delete[1] ~= nil then playerId = luChecker.trailer_delete[1].playerId - type = luChecker.price_set[1].type old_price = luChecker.price_set[1].old_price new_price = luChecker.price_set[1].new_price position_3dtext = luChecker.price_set[1].position @@ -4292,7 +4276,7 @@ function luChecker.checker() cargo = key, time = os.time() } - local text = string.format("игрок %s %s %s %s", playerId, (type == "load" and "загрузил" or "разгрузил"), inifiles.Settings.luCheckerCargo, dist ) + local text = string.format("игрок %s %s %s %s", playerId, (luChecker.price_set[1].type == "load" and "загрузил" or "разгрузил"), inifiles.Settings.luCheckerCargo, dist ) say(">> "..text) end end