<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/EngineStreamingReleaseModel?action=history&amp;feed=atom</id>
	<title>EngineStreamingReleaseModel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/EngineStreamingReleaseModel?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineStreamingReleaseModel&amp;action=history"/>
	<updated>2026-05-09T21:59:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineStreamingReleaseModel&amp;diff=80075&amp;oldid=prev</id>
		<title>TheNormalnij: Created page with &quot;__NOTOC__ {{Client function}}  {{New feature/item|4|1.6.1|22676|This function sends a unloading request to the game model streamer.}}  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; boolean engineStreamingReleaseModel( number modelID [, boolean removeRef = false ] ) &lt;/syntaxhighlight&gt;  ===Required Arguments=== * '''modelID''': ID of the model you want to unload.  ===Optional Arguments=== {{OptionalArg}} * '''removeRef''': decrease references counter.  ===Returns=== Returns ''tr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineStreamingReleaseModel&amp;diff=80075&amp;oldid=prev"/>
		<updated>2024-08-29T09:59:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}}  {{New feature/item|4|1.6.1|22676|This function sends a unloading request to the game model streamer.}}  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; boolean engineStreamingReleaseModel( number modelID [, boolean removeRef = false ] ) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== * &amp;#039;&amp;#039;&amp;#039;modelID&amp;#039;&amp;#039;&amp;#039;: ID of the model you want to unload.  ===Optional Arguments=== {{OptionalArg}} * &amp;#039;&amp;#039;&amp;#039;removeRef&amp;#039;&amp;#039;&amp;#039;: decrease references counter.  ===Returns=== Returns &amp;#039;&amp;#039;tr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|4|1.6.1|22676|This function sends a unloading request to the game model streamer.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean engineStreamingReleaseModel( number modelID [, boolean removeRef = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''modelID''': ID of the model you want to unload.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''removeRef''': decrease references counter.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the model was unloaded, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Simple example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example draws a model&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local modelId = 1337&lt;br /&gt;
&lt;br /&gt;
local function drawMyModel()&lt;br /&gt;
    dxDrawModel3D(modelId, 0, 0, 4, 0, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function startDraw()&lt;br /&gt;
    engineStreamingRequestModel(modelId, true, true)&lt;br /&gt;
    addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, drawMyModel)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function stopDraw()&lt;br /&gt;
    engineStreamingReleaseModel(modelId, true)&lt;br /&gt;
    removeEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, drawMyModel)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>TheNormalnij</name></author>
	</entry>
</feed>