Shared module (alt-shared)Functionsonceonce Callableonce(eventName: string, listener: (...args: any[]) => void): voidonce(listener: (eventName: string, ...args: any[]) => void): voidSubscribes to a custom local event with the specified listener, which only triggers once.
Subscribes to a custom local event with the specified listener, which only triggers once.