-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" | ||
} |