Used to stop listening to built-in events or custom events.

Declaration string, listener: (...args: any[]) => void): void

Usage'someEventName', someCallbackFunction);

Real World Example

This example shows that an event will automatically turn itself off after the first call.

function someCallbackFunction() {'someEventName', someCallbackFunction);

alt.on('someEventName', someCallbackFunction);

These examples assume you have imported alt from alt-client.

results matching ""

    No results matching ""