Continue script abstraction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user