Compare commits

...

2 Commits

  1. 3
      changelog
  2. 18
      corn-hud.lua
  3. 2
      version

@ -3,3 +3,6 @@
Теперь можно сменить клавиши активации
Скрипт переведен в кодировку UTF-8
Добавлен модуль автообновлений /rubin-mods
Версия от 28.01.23.1
Фикс проверки /finfo
Фикс загрузки с фермы

@ -1,14 +1,14 @@
script_name('corn-hud')
script_author("Serhiy_Rubin")
script_version("28.01.2023")
script_version("28.01.23.1")
require 'lib.sampfuncs'
require 'lib.moonloader'
local dlstatus = require("moonloader").download_status
local vkeys = require "lib.vkeys"
local sampev, inicfg = require 'lib.samp.events', require 'inicfg'
local render, antiflood = false, 0
local zerno, urojai, narko, priceZerno, priceUrojai, priceNarko, finfoCheck = 0, 0, 0, 0, 0, 0, 0
local coord = {
dlstatus = require("moonloader").download_status
vkeys = require "lib.vkeys"
sampev, inicfg = require 'lib.samp.events', require 'inicfg'
render, antiflood = false, 0
zerno, urojai, narko, priceZerno, priceUrojai, priceNarko, finfoCheck = 0, 0, 0, 0, 0, 0, 0
coord = {
['Farm 0'] = {x = -379.220367, y = -1425.855591, z = 25.862316 },
['Farm 1'] = {x = -116.514381, y = 2.906076, z = 3.227722 },
['Farm 2'] = {x = -1055.663330, y = -1203.198486, z = 129.136978 },
@ -510,7 +510,7 @@ script_update = {
local result, text = pcall(openURL, script_update.version_url, fpath)
if result then
ini.settings.server_version = text
if text ~= "" and not string.find(text, thisScript().version) then
if text ~= "" and text ~= thisScript().version then
addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) )
if ini.settings.auto_update then
addChatMessage( string.format("Автообновление скрипта включено. Процесс запущен!") )
@ -529,7 +529,7 @@ script_update = {
local fpath = os.tmpname()
local result, text = pcall(openURL, script_update.version_url, fpath)
if result then
if text ~= "" and not string.find(text, thisScript().version) then
if text ~= "" and text ~= thisScript().version then
addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) )
local fpath = os.tmpname()
local result, text = pcall(openURL, script_update.script_url, fpath)

@ -1 +1 @@
28.01.2023
28.01.23.1
Loading…
Cancel
Save