@altv/types-serverFunctionsonceBranch: Developmentonce Callableonce<K>(eventName: K, listener: (...args: Parameters<K extends keyof IServerEvent ? IServerEvent[K] : K extends never ? ICustomEmitEvent[K] : never>) => void): voidonce<K>(eventName: Exclude<K, keyof IServerEvent>, listener: (...args: any[]) => void): voidSubscribes to a server event with the specified listener, which only triggers once.Type parametersK: keyof IServerEvent
Subscribes to a server event with the specified listener, which only triggers once.