@altv/types-sharedFunctionsonceonce 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.