@altv/types-clientFunctionsonon Callableon<K>(eventName: K, listener: (...args: Parameters<K extends keyof IClientEvent ? IClientEvent[K] : K extends never ? ICustomEmitEvent[K] : never>) => void): voidon<K>(eventName: Exclude<K, keyof IClientEvent>, listener: (...args: any[]) => void): voidSubscribes to a client event with the specified listener.Type parametersK: keyof IClientEvent
Subscribes to a client event with the specified listener.