VimpClientEvents
@vimp-mp/types 2.0.1Custom events received from the server (broadcast via vimp.emitAllClients or sent to one player via player.emit).
Extend in your own project. CEF UI events are also delivered as named client events (vimp.on('ui:ping', (data) => ...)), so declare them here to strongly type their payload.
ts
declare module '@vimp-mp/types/client' {
interface VimpClientEvents {
scoreUpdate: { score: number };
}
}ts
interface VimpClientEvents