<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Streaming%3A%3ArequestRuntimeAssetFromUrl</id>
	<title>Streaming::requestRuntimeAssetFromUrl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Streaming%3A%3ArequestRuntimeAssetFromUrl"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Streaming::requestRuntimeAssetFromUrl&amp;action=history"/>
	<updated>2026-07-20T18:44:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Streaming::requestRuntimeAssetFromUrl&amp;diff=27479&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot;{{ClientsideJsFunction}} {{JSContainer|  ===Required Params=== *&#039;&#039;&#039;resourceName:&#039;&#039;&#039; {{RageType|string}} — The name of the resource. *&#039;&#039;&#039;url:&#039;&#039;&#039; {{RageType|string}} — The URL from which to request the asset.  ===Return value=== *&#039;&#039;&#039;{{RageType|Promise&lt;boolean&gt;}}&#039;&#039;&#039; — Resolves to `true` if the asset was successfully loaded, otherwise `false`.  ==Syntax== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; mp.game.streaming.requestRuntimeAssetFromUrl(string resourceName, string url) &lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Streaming::requestRuntimeAssetFromUrl&amp;diff=27479&amp;oldid=prev"/>
		<updated>2025-03-16T17:46:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ClientsideJsFunction}} {{JSContainer|  ===Required Params=== *&amp;#039;&amp;#039;&amp;#039;resourceName:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The name of the resource. *&amp;#039;&amp;#039;&amp;#039;url:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The URL from which to request the asset.  ===Return value=== *&amp;#039;&amp;#039;&amp;#039;{{RageType|Promise&amp;lt;boolean&amp;gt;}}&amp;#039;&amp;#039;&amp;#039; — Resolves to `true` if the asset was successfully loaded, otherwise `false`.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; mp.game.streaming.requestRuntimeAssetFromUrl(string resourceName, string url) &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;resourceName:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The name of the resource.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;url:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The URL from which to request the asset.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;{{RageType|Promise&amp;lt;boolean&amp;gt;}}&amp;#039;&amp;#039;&amp;#039; — Resolves to `true` if the asset was successfully loaded, otherwise `false`.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.streaming.requestRuntimeAssetFromUrl(string resourceName, string url)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.streaming.requestRuntimeAssetFromUrl(&amp;quot;myAsset&amp;quot;, &amp;quot;https://example.com/asset.ytd&amp;quot;)&lt;br /&gt;
    .then(success =&amp;gt; {&lt;br /&gt;
        if (success) {&lt;br /&gt;
            mp.gui.chat.push(&amp;quot;Asset successfully loaded.&amp;quot;);&lt;br /&gt;
        } else {&lt;br /&gt;
            mp.gui.chat.push(&amp;quot;Failed to load asset.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    });&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Streaming_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>