weaponschein fertig

This commit is contained in:
hydrant
2020-03-13 22:51:30 +01:00
parent 6467615a32
commit 359762965d
16 changed files with 1574 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ export default class RageEvents implements IEvents {
}
callServer(event: string, args?: any[] | any): void {
if (args) {
if (args !== null) {
if (typeof args === 'object') {
args.push(event);
} else {
@@ -41,7 +41,10 @@ export default class RageEvents implements IEvents {
} else {
args = [event];
}
mp.events.callRemote('CLIENT:Event', JSON.stringify(args));
var params = JSON.stringify(args);
mp.events.callRemote('CLIENT:Event', params);
}
bindKey(key: Key, hold: boolean, callback: Function) {