From f64ba55c034478ca6a08c5638267f19ba8590187 Mon Sep 17 00:00:00 2001 From: rubin Date: Thu, 19 Jan 2023 13:16:18 +0300 Subject: [PATCH] delete comments --- TruckHUD.lua | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/TruckHUD.lua b/TruckHUD.lua index c165f6a..91029f2 100644 --- a/TruckHUD.lua +++ b/TruckHUD.lua @@ -347,25 +347,6 @@ function settings_load() end end - -- try( - -- function() - -- local file, error = io.open(AdressJson, "r") - -- if file then - -- inifiles = decodeJson(file:read("*a")) - -- io.close(file) - -- end - -- end, - -- function(e) - -- sampAddChatMessage("[TruckHUD] Ошибка чтения конфига! Сбрасываю конфиг!", 0xff0000) - -- local file, error = io.open(AdressJson, "w") - -- if file ~= nil then - -- file:write(encodeJson(table_std)) - -- file:flush() - -- io.close(file) - -- end - -- end - -- ) - local readJson = function() local file, error = io.open(AdressJson, "r") if file then @@ -999,12 +980,6 @@ function doPair() end end - -- Проверка напарника на противоположное место - -- pair_table["pos"]["x"], pair_table["pos"]["y"], pair_table["pos"]["z"] - - -- Содержать переменную готовности локального перса - -- Содержать переменную готовности напарника - if pair_table["pos"] ~= nil then local x, y, z = getCharCoordinates(playerPed) local result_find = false @@ -2731,11 +2706,6 @@ function loadEvents() prices_3dtext[k .. "n"], prices_3dtext[k .. "y"], prices_3dtext[k .. "l"] = cargoN, cargoY, cargoL prices_3dtext_id[k .. "n"], prices_3dtext_id[k .. "y"], prices_3dtext_id[k .. "l"] = id, id, id prices_3dtext_pos[k .. "n"], prices_3dtext_pos[k .. "y"], prices_3dtext_pos[k .. "l"] = position, position, position - -- for k, v in pairs(prices_3dtext) do - -- if string.find(tostring(prices_3dtext[k]), "99") then - -- prices_3dtext[k] = tonumber(prices_3dtext[k]) + 1 - -- end - -- end local port = (text:find("ЛС") and "ЛС" or "СФ") local ctext = string.format(