@altv/types-clientFunctionsonceServerBranch: DevelopmentonceServer CallableonceServer<K>(eventName: K, listener: (...args: Parameters<ICustomServerClientEvent[K]>) => void): voidonceServer<K>(eventName: Exclude<K, never>, listener: (...args: any[]) => void): voidonceServer(listener: (eventName: string, ...args: any[]) => void): voidSubscribes to a server event with the specified listener, which only triggers once.Type parametersK: never
Subscribes to a server event with the specified listener, which only triggers once.