<?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=Streaming%3A%3ArequestAnimDict</id>
	<title>Streaming::requestAnimDict - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Streaming%3A%3ArequestAnimDict"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Streaming::requestAnimDict&amp;action=history"/>
	<updated>2026-07-24T22:20:42Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Streaming::requestAnimDict&amp;diff=14282&amp;oldid=prev</id>
		<title>imported&gt;MrPancakers2 в 01:51, 25 апреля 2021</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Streaming::requestAnimDict&amp;diff=14282&amp;oldid=prev"/>
		<updated>2021-04-25T01:51:50Z</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;
Requests and loads the animation dictionary required to play an animation. &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.streaming.requestAnimDict(animDict);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;animDict:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
A function to load the animation dictionary used for the lucky wheel spin animations.&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
async function loadLuckyWheelAnimLib(){&lt;br /&gt;
    if(mp.players.local.model === mp.game.joaat(&amp;quot;mp_m_freemode_01&amp;quot;)){&lt;br /&gt;
        animationLib = &amp;quot;anim_casino_a@amb@casino@games@lucky7wheel@male&amp;quot;&lt;br /&gt;
    } else if(mp.players.local.model === mp.game.joaat(&amp;quot;mp_f_freemode_01&amp;quot;)) {&lt;br /&gt;
        animationLib = &amp;quot;anim_casino_a@amb@casino@games@lucky7wheel@female&amp;quot;&lt;br /&gt;
    } else {&lt;br /&gt;
        return mp.gui.chat.push(&amp;quot;You must be using a freemode character model&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    mp.game.streaming.requestAnimDict(animationLib);&lt;br /&gt;
&lt;br /&gt;
    for(let i = 0; mp.game.streaming.hasAnimDictLoaded(animationLib) === 0 &amp;amp;&amp;amp; i &amp;lt; 15; i++){&lt;br /&gt;
        if(i === 14) return mp.game.graphics.notify(&amp;#039;~r~Error loading Lucky Wheel spin animation.&amp;#039;);&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;Loading wheel spin animation...&amp;quot;);&lt;br /&gt;
        await mp.game.waitAsync(100);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    mp.gui.chat.push(&amp;quot;Anim loaded.&amp;quot;)&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;
{{Streaming_functions_c}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Client-side Function]]&lt;/div&gt;</summary>
		<author><name>imported&gt;MrPancakers2</name></author>
	</entry>
</feed>