Skip to content

Commit eaf76a9

Browse files
committed
fix(platform-ragemp-client): fix emit event.
1 parent d3e3b82 commit eaf76a9

File tree

1 file changed

+2
-2
lines changed
  • packages/platforms/ragemp/client/src

1 file changed

+2
-2
lines changed

packages/platforms/ragemp/client/src/driver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export class RageClientDriver implements IPlatformDriver {
8181
/**
8282
* Emits a global client-side event.
8383
*/
84-
public emit(_eventName: string, ..._args: any[]): void {
85-
// TODO
84+
public emit(eventName: string, ...args: any[]): void {
85+
mp.events.call(eventName, ...args);
8686
}
8787

8888
// TODO: Check if we can pass an object as an argument (to make { hello: 'world' } (typescript type))

0 commit comments

Comments
 (0)