Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -19,4 +19,7 @@ build:
|
|||||||
- "dotnet build -c ServerBuild"
|
- "dotnet build -c ServerBuild"
|
||||||
- "cd ReallifeGamemode.Client/"
|
- "cd ReallifeGamemode.Client/"
|
||||||
- "npm install"
|
- "npm install"
|
||||||
- "npm run build:server"
|
- "npm run build:server"
|
||||||
|
- "cd ../"
|
||||||
|
- "./gm_copy_build_files.sh"
|
||||||
|
- "sudo /bin/systemctl restart ragempsrv"
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
* @copyright (c) 2008 - 2018 Life of German
|
* @copyright (c) 2008 - 2018 Life of German
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function(): void {
|
export default function(globalData: GlobalData): void {
|
||||||
var loginBrowser: BrowserMp;
|
var loginBrowser: BrowserMp;
|
||||||
var loginCam: CameraMp = mp.cameras.new('login', new mp.Vector3(-1883.736, -781.4911, 78.27616), new mp.Vector3(3.185999, 0, -79.59519), 40);
|
var loginCam: CameraMp = mp.cameras.new('login', new mp.Vector3(-1883.736, -781.4911, 78.27616), new mp.Vector3(3.185999, 0, -79.59519), 40);
|
||||||
|
|
||||||
@@ -52,6 +52,8 @@ export default function(): void {
|
|||||||
mp.game.ui.displayHud(true);
|
mp.game.ui.displayHud(true);
|
||||||
mp.game.ui.displayRadar(true);
|
mp.game.ui.displayRadar(true);
|
||||||
|
|
||||||
|
globalData.LoggedIn = true;
|
||||||
|
|
||||||
loginCam.setActive(false);
|
loginCam.setActive(false);
|
||||||
mp.game.cam.renderScriptCams(false, false, 0, true, false);
|
mp.game.cam.renderScriptCams(false, false, 0, true, false);
|
||||||
});
|
});
|
||||||
|
|||||||
3
ReallifeGamemode.Client/global.d.ts
vendored
3
ReallifeGamemode.Client/global.d.ts
vendored
@@ -2,7 +2,8 @@
|
|||||||
InTuning: boolean,
|
InTuning: boolean,
|
||||||
HideGui: boolean,
|
HideGui: boolean,
|
||||||
Interaction: boolean,
|
Interaction: boolean,
|
||||||
InChat: boolean
|
InChat: boolean,
|
||||||
|
LoggedIn: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
declare interface FactionRanks {
|
declare interface FactionRanks {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ let globalData: GlobalData = {
|
|||||||
HideGui: false,
|
HideGui: false,
|
||||||
Interaction: false,
|
Interaction: false,
|
||||||
InChat: false,
|
InChat: false,
|
||||||
|
LoggedIn = false
|
||||||
};
|
};
|
||||||
|
|
||||||
import voice from './Voice/main';
|
import voice from './Voice/main';
|
||||||
@@ -66,7 +67,7 @@ import playerInteraction from './Interaction/playerinteraction';
|
|||||||
playerInteraction(globalData);
|
playerInteraction(globalData);
|
||||||
|
|
||||||
import Login from './Login/main';
|
import Login from './Login/main';
|
||||||
Login();
|
Login(globalData);
|
||||||
|
|
||||||
import dutyCloth from './Player/dutycloth';
|
import dutyCloth from './Player/dutycloth';
|
||||||
dutyCloth();
|
dutyCloth();
|
||||||
|
|||||||
Reference in New Issue
Block a user