From 503e781f6cca617728a365f7717e5cf574251d97 Mon Sep 17 00:00:00 2001 From: root130130 <293827305+root130130@users.noreply.github.com> Date: Mon, 15 Jun 2026 21:11:57 +0800 Subject: [PATCH] Update compatibility with GTA Online build 3788 --- SoloMissions.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SoloMissions.lua b/SoloMissions.lua index 6288026..7c52bfb 100644 --- a/SoloMissions.lua +++ b/SoloMissions.lua @@ -9,7 +9,12 @@ function locals.set_bits(scriptName, index, ...) end local function IsOnline() - return network.is_session_started() and not script.is_active("maintransition") + if not network.is_session_started() then + return false + end + + local ok, transitionActive = pcall(script.is_active, "maintransition") + return not ok or not transitionActive end local function GetMissionScript() @@ -29,8 +34,6 @@ local FREEMODE = "freemode" -- VARIABLES ---------------------------------------- -local TARGET_VERSION = "1.72-3725" - -- search in fmmc_launcher.c local scrGlobals = { minNumParticipants = 4718592 + 3536, -- regex: Global_\d+\.f_\d+\s?=.+?"minNu" @@ -78,9 +81,6 @@ SOLO_MISSIONS:add_imgui(function() return end - ImGui.Text("Compatible Game Version: " .. TARGET_VERSION) - ImGui.Text("Please check your game version before using!") - ImGui.Dummy(1, 10) ImGui.SeparatorText("Solo Missions") ImGui.Spacing()