Server module (alt-server)FunctionsonceClientBranch: DevelopmentonceClient CallableonceClient<K>(eventName: K, listener: (player: Player, ...args: Parameters<ICustomClientServerEvent[K]>) => void): voidonceClient<K>(eventName: Exclude<K, never>, listener: (player: Player, ...args: any[]) => void): voidonceClient(listener: (eventName: string, player: Player, ...args: any[]) => void): voidSubscribes to a client event with the specified listener, which only triggers once.Type parametersK: never
Subscribes to a client event with the specified listener, which only triggers once.