<?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=Insigne</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=Insigne"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Insigne"/>
	<updated>2026-05-11T01:19:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76680</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76680"/>
		<updated>2023-04-10T18:20:54Z</updated>

		<summary type="html">&lt;p&gt;Insigne: Fixed feature numeric number&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.}}&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>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76658</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76658"/>
		<updated>2023-04-10T17:22:12Z</updated>

		<summary type="html">&lt;p&gt;Insigne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}}&lt;br /&gt;
{{Note|You can't load more than 2 IMG's due to GTA limitations.&lt;br /&gt;
IMG size can't be bigger than 1GB. (MTA limitation)}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&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;
==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>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76657</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76657"/>
		<updated>2023-04-10T17:18:12Z</updated>

		<summary type="html">&lt;p&gt;Insigne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}}&lt;br /&gt;
{{Note|You can't load more than 2 IMG's due to GTA limitations.&lt;br /&gt;
IMG size can't be bigger than 1GB. (MTA limitation)}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&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;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;br /&gt;
[[Category:Changes in 1.6.0]]&lt;/div&gt;</summary>
		<author><name>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76656</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76656"/>
		<updated>2023-04-10T17:12:52Z</updated>

		<summary type="html">&lt;p&gt;Insigne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}}&lt;br /&gt;
{{Note|You can't load more than 2 IMG's due to GTA limitations.&lt;br /&gt;
IMG size can't be bigger than 1GB. (MTA limitation)}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&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;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76655</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76655"/>
		<updated>2023-04-10T16:55:41Z</updated>

		<summary type="html">&lt;p&gt;Insigne: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}}&lt;br /&gt;
{{Note|You can't load more than 2 IMG's due to GTA limitations.&lt;br /&gt;
IMG size can't be bigger than 1GB. (MTA limitation)}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&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;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76537</id>
		<title>EngineLoadIMG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadIMG&amp;diff=76537"/>
		<updated>2023-04-08T23:54:26Z</updated>

		<summary type="html">&lt;p&gt;Insigne: Created page with &amp;quot;__NOTOC__ {{Client function}} {{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}} ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&amp;lt;/syntaxhighlight&amp;gt; {{OOP||EngineIMG}} ===Required Arguments=== * '''img_file''': The filepath to the IMG file you want to load.  ===Returns=== Returns an IMG element if the IMG file loaded, ''false'' otherwise.  ==See Also== {{Engine_functions}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|4|1.6.0|21708|This function loads an IMG container into GTA.}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;img engineLoadIMG( string img_file )&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;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Insigne</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MoveObject&amp;diff=75293</id>
		<title>MoveObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MoveObject&amp;diff=75293"/>
		<updated>2022-07-17T23:13:26Z</updated>

		<summary type="html">&lt;p&gt;Insigne: Corrected misspelled word&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will smoothly move an object from its current position to a specified rotation and position.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool moveObject ( object theObject, int time, float targetx, float targety, float targetz, [ float moverx, float movery, float moverz, string strEasingType, float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[object]]:move||}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theObject:''' the object that will be moved.&lt;br /&gt;
* '''time:''' the time in milliseconds the object will arrive at the destination.&lt;br /&gt;
* '''targetx:''' the X value of the target position&lt;br /&gt;
* '''targety:''' the Y value of the target position&lt;br /&gt;
* '''targetz:''' the Z value of the target position&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
* '''moverx:''' the rotation along the X axis '''relative''' to its current rotation, which is its starting angle.&lt;br /&gt;
* '''movery:''' the rotation along the Y axis '''relative''' to its current rotation, which is its starting angle.&lt;br /&gt;
* '''moverz:''' the rotation along the Z axis '''relative''' to its current rotation, which is its starting angle.&lt;br /&gt;
*'''strEasingType:''' the [[Easing|easing function]] to use for the interpolation (default is &amp;quot;Linear&amp;quot;)&lt;br /&gt;
*'''fEasingPeriod:''' the period of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
*'''fEasingAmplitude:''' the amplitude of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
*'''fEasingOvershoot:''' the overshoot of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if the function moved the object succesfully.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Examples ==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example moves every object in the game up 100 units in ten seconds.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
allObjects = getElementsByType ( &amp;quot;object&amp;quot; )&lt;br /&gt;
for key, theObject in ipairs ( allObjects ) do&lt;br /&gt;
	local origX, origY, origZ = getElementPosition ( theObject ) --get the original position&lt;br /&gt;
	local newZ = origZ + 100 -- make a new z position&lt;br /&gt;
	moveObject ( theObject, 10000, origX, origY, newZ ) --move the object to this position in 10 seconds.&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;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2:''' This example created a model (of a bed) near a player called ''someguy'', if they exist in the game. It will then move the model towards the player over 3 seconds.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find a player called 'someguy'&lt;br /&gt;
someGuy = getPlayerFromName ( &amp;quot;someguy&amp;quot; )&lt;br /&gt;
-- If a player called someguy was found then&lt;br /&gt;
if ( someGuy ) then&lt;br /&gt;
	-- Get the player's position&lt;br /&gt;
	x, y, z = getElementPosition ( someGuy )&lt;br /&gt;
	-- Create a bed (1700) object near to the player&lt;br /&gt;
	bed = createObject ( 1700, x + 5, y, z )&lt;br /&gt;
	-- Move the bed towards the player over 3 seconds (3000 milliseconds)&lt;br /&gt;
	moveObject ( bed, 3000, x, y, z )&lt;br /&gt;
	-- Tell the player in the chat box&lt;br /&gt;
	outputChatBox ( &amp;quot;Moving a bed towards you!&amp;quot;, someGuy )&lt;br /&gt;
else&lt;br /&gt;
	-- Tell everyone that a player called 'someguy' could not be found&lt;br /&gt;
	outputChatBox ( &amp;quot;Player someguy doesn't exist&amp;quot; )&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;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 3:''' This example creates a ball moving (in front of CJ's house in Grove Street) using easing functions. Test command is &amp;quot;/smove&amp;quot; for instance &amp;quot;/smove OutBounce&amp;quot;. This example is a serverside code but the same could be done clientside (adapting the command handler)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local START_POS = {2497.203125, -1672.4864501953, 12.640947341919}&lt;br /&gt;
local STOP_POS = {2480.2595214844, -1666.521484375, 12.640114784241}&lt;br /&gt;
local MOTION_DURATION = 5000&lt;br /&gt;
local WAIT_DURATION = 1000&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;smove&amp;quot;,&lt;br /&gt;
function (player, cmd, strEasingType, period, amplitude, overshoot)&lt;br /&gt;
	local x, y, z = unpack(START_POS)&lt;br /&gt;
	local object = createObject(1598, x, y, z)&lt;br /&gt;
	x, y, z = unpack(STOP_POS)&lt;br /&gt;
	&lt;br /&gt;
	period = period or 0.3&lt;br /&gt;
	amplitude = amplitude or 1.0&lt;br /&gt;
	overshoot = overshoot or 1.70158&lt;br /&gt;
	&lt;br /&gt;
	outputChatBox(string.format(&amp;quot;Server Easing %s %s %s %s&amp;quot;, strEasingType, tostring(period), tostring(amplitude), tostring(overshoot)))&lt;br /&gt;
	moveObject(object, MOTION_DURATION, x, y, z, 0, 0, 360, strEasingType, period, amplitude, overshoot)&lt;br /&gt;
	setTimer(destroyElement, MOTION_DURATION+WAIT_DURATION, 1, object)&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;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 4:''' This example move a gate with easing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local x,y,z = 2096.3, 1721, 12.7&lt;br /&gt;
local easing = &amp;quot;OutBounce&amp;quot;&lt;br /&gt;
local time = 2000&lt;br /&gt;
local gate = createObject(980, x,y,z, 0, 0, 63)&lt;br /&gt;
local marker = createMarker(x,y,z, &amp;quot;cylinder&amp;quot;, 12, 0, 0, 0, 0)&lt;br /&gt;
 &lt;br /&gt;
function moveGate(hitPlayer, matchingDimension)&lt;br /&gt;
        moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onMarkerHit&amp;quot;, marker, moveGate)&lt;br /&gt;
 &lt;br /&gt;
function moveBack()&lt;br /&gt;
    moveObject(gate, time, x, y, z, 0, 0, 0, easing)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onMarkerLeave&amp;quot;, marker, moveBack)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|549|Object rotation is wrong after moveObject serverside}}&lt;br /&gt;
}}&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Insigne</name></author>
	</entry>
</feed>