Continue script abstraction

This commit is contained in:
hydrant
2020-03-01 13:15:50 +01:00
parent 37f499a446
commit d7a76caf2a
14 changed files with 531 additions and 8 deletions

View File

@@ -4,6 +4,9 @@
* @copyright (c) 2008 - 2018 Life of German
**/
import { IGame } from './game';
import RageGame from './core/rage-mp/game';
let globalData: GlobalData = {
InTuning: false,
HideGui: false,
@@ -21,6 +24,13 @@ let globalData: GlobalData = {
}
};
const game: IGame = new RageGame();
export default game;
game.events.onPlayerCommand((cmd) => {
game.events.callServer("Command", cmd.split(' '));
});
var inMenu = false;
mp.game.vehicle.defaultEngineBehaviour = false;