@altv/types-clientFunctionsonServerBranch: Release CandidateonServer CallableonServer<K>(eventName: K, listener: (...args: Parameters<ICustomServerClientEvent[K]>) => void): voidonServer<K>(eventName: Exclude<K, never>, listener: (...args: any[]) => void): voidonServer(listener: (eventName: string, ...args: any[]) => void): voidSubscribes to a server event with the specified listener.Type parametersK: never
Subscribes to a server event with the specified listener.