<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hashmap</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hashmap"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Hashmap"/>
	<updated>2026-05-28T14:57:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=78756</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=78756"/>
		<updated>2024-01-05T18:32:13Z</updated>

		<summary type="html">&lt;p&gt;Hashmap: Add note for possible fixes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|21708|This function loads an IMG container into GTA. '''Only 2 IMG archives can be loaded into GTA'''&lt;br /&gt;
}}&lt;br /&gt;
{{Note|&lt;br /&gt;
If you're experiencing crashes/game hangs with default values, try to adjust memory/buffer/cache sizes with [[engineStreamingSetMemorySize]], [[engineStreamingSetBufferSize]] and/or [[engineStreamingSetModelCacheLimits]].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
img engineLoadIMG ( string img_file )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[DFF|EngineIMG]]}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''img_file''': The [[filepath]] to the [[IMG]] file you want to load.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[IMG]] element if the [[IMG]] file loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
This example loads IMG file from directory and then prints number of files in it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local img = engineLoadIMG('file.img')&lt;br /&gt;
&lt;br /&gt;
iprint('Number of files: ',#engineImageGetFiles(img))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Changes in 1.6.0]]&lt;/div&gt;</summary>
		<author><name>Hashmap</name></author>
	</entry>
</feed>