From b0d01d222d22cfc3c30bff4a3a7230da36b66e39 Mon Sep 17 00:00:00 2001 From: rubin Date: Sat, 23 Nov 2024 22:00:15 +0300 Subject: [PATCH] fix crash script & bump version --- changelog | 4 +++- easy-cruise.lua | 3 ++- version | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changelog b/changelog index 2d27ead..68958d9 100644 --- a/changelog +++ b/changelog @@ -1,2 +1,4 @@ Версия от 18.02.2023 - Добавлен диалог настроек /cruise \ No newline at end of file + Добавлен диалог настроек /cruise +Версия от 23.11.2024 + Пофикшен вылет скрипта если спрыгнуть с ТС во время рабочего круиза \ No newline at end of file diff --git a/easy-cruise.lua b/easy-cruise.lua index 6023d6b..4a7f547 100644 --- a/easy-cruise.lua +++ b/easy-cruise.lua @@ -1,6 +1,6 @@ script_name("easy-cruise") script_author("rubin") -script_version("18.02.2023") +script_version("23.11.2024") inicfg = require "inicfg" dlstatus = require("moonloader").download_status @@ -25,6 +25,7 @@ end function doCruise() if not config.data.status then return end + if not isCharInAnyCar(PLAYER_PED) then return end local car = storeCarCharIsInNoSave(playerPed) if not isCharInAnyCar(playerPed) or not isCarEngineOn(car) then if cruise then diff --git a/version b/version index cac16cd..79779c5 100644 --- a/version +++ b/version @@ -1 +1 @@ -18.02.2023 \ No newline at end of file +23.11.2024 \ No newline at end of file