|
|
@ -2681,16 +2681,25 @@ function loadEvents() |
|
|
|
id_3D_text = id |
|
|
|
id_3D_text = id |
|
|
|
if text:find("Ïîðò") then |
|
|
|
if text:find("Ïîðò") then |
|
|
|
unload_location = true |
|
|
|
unload_location = true |
|
|
|
|
|
|
|
local one_plus = function(price) |
|
|
|
|
|
|
|
for i = 1, #price do |
|
|
|
|
|
|
|
if string.find(tostring(price[i]), "99") then |
|
|
|
|
|
|
|
price[i] = tonumber(price[i]) + 1 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
return price[1], price[2], price[3] |
|
|
|
|
|
|
|
end |
|
|
|
local cargoN, cargoY, cargoL = string.match(text, v) |
|
|
|
local cargoN, cargoY, cargoL = string.match(text, v) |
|
|
|
|
|
|
|
cargoN, cargoY, cargoL = one_plus({cargoN, cargoY, cargoL}) |
|
|
|
luChecker.set3Dtext("Ïîðò", {prices_3dtext[k .. "n"], prices_3dtext[k .. "y"], prices_3dtext[k .. "l"]}, {cargoN, cargoY, cargoL}, position) |
|
|
|
luChecker.set3Dtext("Ïîðò", {prices_3dtext[k .. "n"], prices_3dtext[k .. "y"], prices_3dtext[k .. "l"]}, {cargoN, cargoY, cargoL}, position) |
|
|
|
prices_3dtext[k .. "n"], prices_3dtext[k .. "y"], prices_3dtext[k .. "l"] = cargoN, cargoY, cargoL |
|
|
|
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_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 |
|
|
|
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 |
|
|
|
-- for k, v in pairs(prices_3dtext) do |
|
|
|
if string.find(tostring(prices_3dtext[k]), "99") then |
|
|
|
-- if string.find(tostring(prices_3dtext[k]), "99") then |
|
|
|
prices_3dtext[k] = tonumber(prices_3dtext[k]) + 1 |
|
|
|
-- prices_3dtext[k] = tonumber(prices_3dtext[k]) + 1 |
|
|
|
end |
|
|
|
-- end |
|
|
|
end |
|
|
|
-- end |
|
|
|
local port = (text:find("ËÑ") and "ËÑ" or "ÑÔ") |
|
|
|
local port = (text:find("ËÑ") and "ËÑ" or "ÑÔ") |
|
|
|
local ctext = |
|
|
|
local ctext = |
|
|
|
string.format( |
|
|
|
string.format( |
|
|
@ -4119,7 +4128,7 @@ function luChecker.checker() |
|
|
|
old_price = luChecker.price_set[1].old_price |
|
|
|
old_price = luChecker.price_set[1].old_price |
|
|
|
new_price = luChecker.price_set[1].new_price |
|
|
|
new_price = luChecker.price_set[1].new_price |
|
|
|
position_3dtext = luChecker.price_set[1].position |
|
|
|
position_3dtext = luChecker.price_set[1].position |
|
|
|
position_trailer = luChecker.trailer_delete[1].position |
|
|
|
positioaan_trailer = luChecker.trailer_delete[1].position |
|
|
|
|
|
|
|
|
|
|
|
local dist = getDistanceBetweenCoords3d(position_3dtext.x,position_3dtext.y,position_3dtext.z,position_trailer.x,position_trailer.y,position_trailer.z) |
|
|
|
local dist = getDistanceBetweenCoords3d(position_3dtext.x,position_3dtext.y,position_3dtext.z,position_trailer.x,position_trailer.y,position_trailer.z) |
|
|
|
|
|
|
|
|
|
|
|