Globals::waitForAsync: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 December 2024

  • curprev 18:1518:15, 25 December 2024Shr0x talk contribs 975 bytes +975 Created page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Executes a callback function and resolves a promise when the callback completes, or rejects if the timeout is reached. === Syntax === <syntaxhighlight lang="javascript"> mp.game.waitForAsync(cb, timeout = 60000); </syntaxhighlight> === Required Parameters === * '''cb:''' {{RageType|function}} - The callback function to execute. * '''timeout:''' {{RageType|number}} - Optional. Timeout in milliseconds (default: 600..."