<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Globals%3A%3AwaitAsync</id>
	<title>Globals::waitAsync - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Globals%3A%3AwaitAsync"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Globals::waitAsync&amp;action=history"/>
	<updated>2026-07-24T19:18:04Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Globals::waitAsync&amp;diff=10162&amp;oldid=prev</id>
		<title>imported&gt;Rootcause в 06:37, 18 августа 2020</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Globals::waitAsync&amp;diff=10162&amp;oldid=prev"/>
		<updated>2020-08-18T06:37:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ClientsideJsFunction}}&lt;br /&gt;
An asynchronous function that pauses execution of your current script.&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.game.waitAsync(ms);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ms&amp;#039;&amp;#039;&amp;#039;: {{RageType|Int}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests the specified scaleform, waits until it is loaded then returns the scaleform handle.&lt;br /&gt;
&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
async function requestScaleform(scaleformName) {&lt;br /&gt;
    const handle = mp.game.graphics.requestScaleformMovie(scaleformName);&lt;br /&gt;
&lt;br /&gt;
    while (!mp.game.graphics.hasScaleformMovieLoaded(handle)) {&lt;br /&gt;
        await mp.game.waitAsync(0);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return handle;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{GameGlobals}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Rootcause</name></author>
	</entry>
</feed>