From 8222b289c4f39cf186c837cf44635373139ff491 Mon Sep 17 00:00:00 2001 From: Joey Date: Mon, 24 Aug 2020 22:04:05 +0200 Subject: [PATCH] Fixed mp related rejoining bug --- lua/ge/extensions/uj_base/ge_motd.lua | 2 +- settings/resource.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/ge/extensions/uj_base/ge_motd.lua b/lua/ge/extensions/uj_base/ge_motd.lua index 3b67a1d..f72a07f 100644 --- a/lua/ge/extensions/uj_base/ge_motd.lua +++ b/lua/ge/extensions/uj_base/ge_motd.lua @@ -1 +1 @@ -local a={}local b,c;local function d()if b.motd.enabled then guihooks.trigger('ScenarioChange',{name=b.motd.title,description=b.motd.description,introType=b.motd.type})end end;local function e()b=require("settings/config")if b.motd.enabled then guihooks.trigger("ChangeState",{state="scenario-start"})end;if b.restrictMenu then extensions.core_gamestate.setGameState("scenario","freeroam","uj_base")end end;local function f()extensions.core_gamestate.setGameState("freeroam","freeroam","freeroam")end;local function g(h,i)local j=be:getPlayerVehicle(0)if j then core_vehicles.replaceVehicle(h,i)else core_vehicles.spawnNewVehicle(h,i)end end;local function k(l)if l=="start"then d()elseif l=="play"then if not c then g("pickup",{})end end end;local function m(n)if b.motd.type=="selectableVehicle"then if n.model and n.config then local o=createPlayerSpawningData(n.model,n.config,n.color,n.licenseText)g(o.model,o.options)c=true end end end;a.onExtensionLoaded=e;a.onExtensionUnloaded=f;a.onVehicleSelected=m;a.onScenarioUIReady=k;return a +local a={}local b,c;local function d()if b.motd.enabled then guihooks.trigger('ScenarioChange',{name=b.motd.title,description=b.motd.description,introType=b.motd.type})end end;local function e()b=require("settings/config")if b.motd.enabled then guihooks.trigger("ChangeState",{state="scenario-start"})end;if b.restrictMenu then extensions.core_gamestate.setGameState("scenario","freeroam","uj_base")end end;local function f()end;local function g(h,i)local j=be:getPlayerVehicle(0)if j then core_vehicles.replaceVehicle(h,i)else core_vehicles.spawnNewVehicle(h,i)end end;local function k(l)if l=="start"then d()elseif l=="play"then if not c then g("pickup",{})end end end;local function m(n)if b.motd.type=="selectableVehicle"then if n.model and n.config then local o=createPlayerSpawningData(n.model,n.config,n.color,n.licenseText)g(o.model,o.options)c=true end end end;a.onExtensionLoaded=e;a.onExtensionUnloaded=f;a.onVehicleSelected=m;a.onScenarioUIReady=k;return a diff --git a/settings/resource.json b/settings/resource.json index a3e9076..cec01b8 100644 --- a/settings/resource.json +++ b/settings/resource.json @@ -1,6 +1,6 @@ { "name": "uj_base", - "version": "1.0.2", + "version": "1.0.2.1", "url": "https://github.com/vJoeyz/uj_base", "author": "vJoeyz#5115 (Uncle Joey)" } \ No newline at end of file