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