Changed whole project structure (split client and server into separat projects)

This commit is contained in:
hydrant
2019-02-25 22:12:05 +01:00
parent d2181c4987
commit 33abb3d04f
185 changed files with 282 additions and 596 deletions

View File

@@ -0,0 +1,33 @@
/**
* @overview Life of German Reallife - Save Main main.js
* @author VegaZ
* @copyright (c) 2008 - 2018 Life of German
*/
var saveBrowser;
mp.events.add('saveBlip', () => {
saveBrowser = mp.browsers.new('package://Save/blip/save.html');
mp.gui.chat.activate(false);
mp.gui.cursor.show(true, true);
});
mp.events.add('saveBlipData', (blipSprite, blipName, blipScale, blipColor, blipAlpha, blipDrawDistance, blipShortRange, blipRotation, blipDimension) => {
if (saveBrowser) {
saveBrowser.destroy();
}
mp.events.callRemote('OnSaveBlipData', blipSprite, blipName, blipScale, blipColor, blipAlpha,
blipDrawDistance, blipShortRange, blipRotation, blipDimension);
mp.gui.chat.push(blipShortRange);
mp.gui.cursor.show(false, false);
mp.gui.chat.activate(true);
});
mp.events.add('cancelData', () => {
if (saveBrowser) {
saveBrowser.destroy();
}
mp.gui.cursor.show(false, false);
mp.gui.chat.activate(true);
});