@altv/types-serverFunctionsoffBranch: Developmentoff Callableoff<K>(eventName: K, listener: (...args: Parameters<K extends keyof IServerEvent ? IServerEvent[K] : K extends never ? ICustomEmitEvent[K] : never>) => void): voidoff<K>(eventName: Exclude<K, keyof IServerEvent>, listener: (...args: any[]) => void): voidUnsubscribes from a event with the specified listener.Remarks Listener should be of the same reference as when event was subscribed to.Type parametersK: keyof IServerEvent
Unsubscribes from a event with the specified listener.
Remarks
Listener should be of the same reference as when event was subscribed to.