Skip to content

Commit

Permalink
Fixed mp related rejoining bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vJoeyz committed Aug 24, 2020
1 parent 318744e commit 8222b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/ge/extensions/uj_base/ge_motd.lua
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion settings/resource.json
Original file line number Diff line number Diff line change
@@ -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)"
}

0 comments on commit 8222b28

Please sign in to comment.