<?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=Wassmas</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=Wassmas"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Wassmas"/>
	<updated>2026-06-05T08:40:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceScripts&amp;diff=82170</id>
		<title>GetResourceScripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceScripts&amp;diff=82170"/>
		<updated>2025-06-26T21:36:00Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function show all scripts in resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getResourceScripts ( resource theResource )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theResource''': The resource where you want to get the scripts from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''table'' scripts on [[resource]].&lt;br /&gt;
&lt;br /&gt;
==Code==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getResourceScripts(resource)&lt;br /&gt;
    local scripts = {}&lt;br /&gt;
    local resourceName = getResourceName(resource)&lt;br /&gt;
    local theMeta = xmlLoadFile(&amp;quot;:&amp;quot;..resourceName..&amp;quot;/meta.xml&amp;quot;)&lt;br /&gt;
    for i, node in ipairs (xmlNodeGetChildren(theMeta)) do&lt;br /&gt;
        if (xmlNodeGetName(node) == &amp;quot;script&amp;quot;) then&lt;br /&gt;
            local script = xmlNodeGetAttribute(node, &amp;quot;src&amp;quot;)&lt;br /&gt;
            if (script) then&lt;br /&gt;
                table.insert(scripts, script)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    xmlUnloadFile(theMeta)&lt;br /&gt;
    return scripts&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;
==Example== &lt;br /&gt;
This example will compile all script on resource&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;compile&amp;quot;, &lt;br /&gt;
function (source, cmd, resourceName)&lt;br /&gt;
    local resource = getResourceFromName(resourceName)&lt;br /&gt;
    if (resource) then&lt;br /&gt;
        for i, script in ipairs (getResourceScripts(resource)) do&lt;br /&gt;
            local localFile = &amp;quot;:&amp;quot;..resourceName..&amp;quot;/&amp;quot;..script&lt;br /&gt;
            local theScript = fileExists(localFile) and fileOpen(localFile, true)&lt;br /&gt;
            if (theScript) then&lt;br /&gt;
                local code = fileRead(theScript, fileGetSize(theScript)), fileClose(theScript)&lt;br /&gt;
                if not (string.byte(code) == 28) then&lt;br /&gt;
                    if (fetchRemote(&amp;quot;http://luac.mtasa.com/?compile=1&amp;amp;debug=0&amp;amp;obfuscate=1&amp;quot;, myCallback, code, true, localFile, source)) then&lt;br /&gt;
                        outputChatBox(localFile..&amp;quot;: Start copy compile script...&amp;quot;, source, 0, 255, 0)&lt;br /&gt;
                    else&lt;br /&gt;
                        outputChatBox(localFile..&amp;quot;: Problem fetch remort&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
                    end&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(localFile..&amp;quot;: Already compiled&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
                end&lt;br /&gt;
            else&lt;br /&gt;
                outputChatBox(localFile..&amp;quot;: Does not exist or script don't opened&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(resourceName..&amp;quot;: Does not exist&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
function myCallback(responseData, errno, localFile, source)&lt;br /&gt;
    if (errno == 0) and (responseData) then&lt;br /&gt;
        local localFileC = localFile..&amp;quot;c&amp;quot;&lt;br /&gt;
        if (string.find(responseData, &amp;quot;ERROR&amp;quot;)) then&lt;br /&gt;
            outputChatBox(localFile..&amp;quot;: &amp;quot;..responseData, source, 255, 0, 0)&lt;br /&gt;
        else&lt;br /&gt;
            if (fileExists(localFileC)) then fileDelete(localFileC) end&lt;br /&gt;
            local theScriptC = fileCreate(localFileC)&lt;br /&gt;
            if (theScriptC) then&lt;br /&gt;
                fileWrite(theScriptC, responseData)&lt;br /&gt;
                fileClose(theScriptC)&lt;br /&gt;
                outputChatBox(localFile..&amp;quot;: Successfully compiled&amp;quot;, source, 0, 255, 0)&lt;br /&gt;
            else&lt;br /&gt;
                outputChatBox(localFile..&amp;quot;: Failed to compiled&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(localFile..&amp;quot;: Failed get compiled code&amp;quot;, source, 255, 0, 0)&lt;br /&gt;
    end&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;
==Credits==&lt;br /&gt;
*'''Author:''' WASSIm.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Wassim.png&amp;diff=81806</id>
		<title>File:Wassim.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Wassim.png&amp;diff=81806"/>
		<updated>2025-02-11T20:09:06Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: Wassmas uploaded a new version of File:Wassim.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81750</id>
		<title>User:Wassmas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81750"/>
		<updated>2025-01-18T22:52:26Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==  &lt;br /&gt;
[[Image:wassim.png|thumb|190px|WASSIm. – Founder of Omerta Roleplay]]  &lt;br /&gt;
&lt;br /&gt;
Hello! My name is WASSIm., and I am the Founder and Lead Developer of Omerta Roleplay a unique tunisian roleplay server for Multi Theft Auto: San Andreas (MTA:SA).  &lt;br /&gt;
I am a dedicated developer and entrepreneur from Tunisia [[File:Flag of Tunisia.svg|20px]] with expertise in Lua scripting and server development. My work focuses on creating immersive gameplay experiences tailored for the MTA:SA community.  &lt;br /&gt;
I am fluent in Arabic, French, and English, which helps me connect with diverse audiences and collaborate effectively.  &lt;br /&gt;
&lt;br /&gt;
== Useful Functions == &lt;br /&gt;
* [[IsSoundFinished]]&lt;br /&gt;
* [[IsVehicleUpgraded]]&lt;br /&gt;
* [[GetPlayerAcls]]&lt;br /&gt;
* [[SetResourcePriority]]&lt;br /&gt;
* [[GuiGridListGetSelectedText]]&lt;br /&gt;
* [[GetResourceScripts]]&lt;br /&gt;
&lt;br /&gt;
== Profiles ==  &lt;br /&gt;
You can learn more about my work or connect with me through the following platforms:  &lt;br /&gt;
* [https://community.multitheftauto.com/index.php?p=profile&amp;amp;id=335135 Community]&lt;br /&gt;
* [https://forum.multitheftauto.com/profile/33531-wassim/ Forum]  &lt;br /&gt;
* [https://discord.com/users/566037457444012043 Discord]&lt;br /&gt;
&lt;br /&gt;
I’m always open to discussions, collaborations, and helping others with MTA:SA development. Feel free to reach out!&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81749</id>
		<title>User:Wassmas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81749"/>
		<updated>2025-01-18T22:45:45Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==  &lt;br /&gt;
[[Image:wassim.png|thumb|190px|WASSIm. – Founder of Omerta Roleplay]]  &lt;br /&gt;
&lt;br /&gt;
Hello! My name is Wassim, and I am the Founder and Lead Developer of Omerta Roleplay a unique tunisian roleplay server for Multi Theft Auto: San Andreas (MTA:SA).  &lt;br /&gt;
I am a dedicated developer and entrepreneur from Tunisia [[File:Flag of Tunisia.svg|20px]] with expertise in Lua scripting and server development. My work focuses on creating immersive gameplay experiences tailored for the MTA:SA community.  &lt;br /&gt;
I am fluent in Arabic, French, and English, which helps me connect with diverse audiences and collaborate effectively.  &lt;br /&gt;
&lt;br /&gt;
== Useful Functions == &lt;br /&gt;
* [[IsSoundFinished]]&lt;br /&gt;
* [[IsVehicleUpgraded]]&lt;br /&gt;
* [[GetPlayerAcls]]&lt;br /&gt;
* [[SetResourcePriority]]&lt;br /&gt;
* [[GuiGridListGetSelectedText]]&lt;br /&gt;
* [[GetResourceScripts]]&lt;br /&gt;
&lt;br /&gt;
== Profiles ==  &lt;br /&gt;
You can learn more about my work or connect with me through the following platforms:  &lt;br /&gt;
* [https://community.multitheftauto.com/index.php?p=profile&amp;amp;id=335135 Community]&lt;br /&gt;
* [https://forum.multitheftauto.com/profile/33531-wassim/ Forum]  &lt;br /&gt;
* [https://discord.com/users/566037457444012043 Discord]&lt;br /&gt;
&lt;br /&gt;
I’m always open to discussions, collaborations, and helping others with MTA:SA development. Feel free to reach out!&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81748</id>
		<title>User:Wassmas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81748"/>
		<updated>2025-01-18T22:39:00Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==  &lt;br /&gt;
[[Image:wassim.png|thumb|190px|WASSIm. – Founder of Omerta Roleplay]]  &lt;br /&gt;
&lt;br /&gt;
Hello! My name is Wassim, and I am the Founder and Lead Developer of Omerta Roleplay a unique tunisian roleplay server for Multi Theft Auto: San Andreas (MTA:SA).  &lt;br /&gt;
I am a dedicated developer and entrepreneur from Tunisia [[File:Flag of Tunisia.svg|20px]] with expertise in Lua scripting and server development. My work focuses on creating immersive gameplay experiences tailored for the MTA:SA community.  &lt;br /&gt;
I am fluent in Arabic, French, and English, which helps me connect with diverse audiences and collaborate effectively.  &lt;br /&gt;
&lt;br /&gt;
== Profiles ==  &lt;br /&gt;
You can learn more about my work or connect with me through the following platforms:  &lt;br /&gt;
* [https://community.multitheftauto.com/index.php?p=profile&amp;amp;id=335135 Community]&lt;br /&gt;
* [https://forum.multitheftauto.com/profile/33531-wassim/ Forum]  &lt;br /&gt;
* [https://discord.com/users/566037457444012043 Discord]&lt;br /&gt;
&lt;br /&gt;
I’m always open to discussions, collaborations, and helping others with MTA:SA development. Feel free to reach out!&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81747</id>
		<title>User:Wassmas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81747"/>
		<updated>2025-01-18T22:38:23Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==  &lt;br /&gt;
[[Image:wassim.png|thumb|190px|WASSIm. – Founder of Omerta Roleplay]]  &lt;br /&gt;
&lt;br /&gt;
Hello! My name is Wassim, and I am the Founder and Lead Developer of Omerta Roleplay a unique tunisian roleplay server for Multi Theft Auto: San Andreas (MTA:SA).  &lt;br /&gt;
I am a dedicated developer and entrepreneur from Tunisia [[File:Flag of Tunisia.svg|20px]] with expertise in Lua scripting and server development. My work focuses on creating immersive gameplay experiences tailored for the MTA:SA community.  &lt;br /&gt;
I am fluent in Arabic, French, and English, which helps me connect with diverse audiences and collaborate effectively.  &lt;br /&gt;
&lt;br /&gt;
=== Profiles ===  &lt;br /&gt;
You can learn more about my work or connect with me through the following platforms:  &lt;br /&gt;
* [https://community.multitheftauto.com/index.php?p=profile&amp;amp;id=335135 Community]&lt;br /&gt;
* [https://forum.multitheftauto.com/profile/33531-wassim/ Forum]  &lt;br /&gt;
* [https://discord.com/users/566037457444012043 Discord]&lt;br /&gt;
&lt;br /&gt;
I’m always open to discussions, collaborations, and helping others with MTA:SA development. Feel free to reach out!&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Wassim.png&amp;diff=81746</id>
		<title>File:Wassim.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Wassim.png&amp;diff=81746"/>
		<updated>2025-01-18T22:30:07Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81736</id>
		<title>User:Wassmas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Wassmas&amp;diff=81736"/>
		<updated>2025-01-18T10:07:12Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: Created page with &amp;quot;== About Me == Hello! I am WASSIm. from Tunisia. I am a Lua developer for MTA:SA and the founder of Omerta Roleplay, a Tunisian roleplay server.  == Projects == - **Omerta Roleplay**: A Tunisian roleplay server for MTA:SA.  == Contact == - **Discord**: wassmas&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
Hello! I am WASSIm. from Tunisia. I am a Lua developer for MTA:SA and the founder of Omerta Roleplay, a Tunisian roleplay server.&lt;br /&gt;
&lt;br /&gt;
== Projects ==&lt;br /&gt;
- **Omerta Roleplay**: A Tunisian roleplay server for MTA:SA.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
- **Discord**: wassmas&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=81666</id>
		<title>DxDrawModel3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=81666"/>
		<updated>2025-01-05T21:04:13Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
{{Important Note|You can not use this function to draw vehicles and ped}}&lt;br /&gt;
{{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}}&lt;br /&gt;
{{Important Note|You can not render model to render target.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22708|&lt;br /&gt;
This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by [[createObject]] function. This should be used in conjunction with [[onClientRender]] or [[onClientPreRender]] in order to display continuously. Note that a model must be loaded at the time this function is called. A model can be loaded and unloaded with the help of [[engineStreamingRequestModel]] and [[engineStreamingReleaseModel]] functions.&lt;br /&gt;
}}&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 dxDrawModel3D( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX = 1, float scaleY = 1, float scaleZ = 1, float lighting = 0 ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DxDrawModel3D_at_day.png|thumb|Model during day]]&lt;br /&gt;
[[Image:DxDrawModel3D_at_night.png|thumb|Model during night]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''modelId:''' [[object]] you want to draw, must be regular object, you can not draw vehicles and peds. See [[Object_IDs|Object IDs]] for a list of model IDs.&lt;br /&gt;
*'''positionX:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''positionY:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''positionZ:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
*'''rotationX:''' A floating point number representing the rotation about the X axis in degrees.&lt;br /&gt;
*'''rotationY:''' A floating point number representing the rotation about the Y axis in degrees.&lt;br /&gt;
*'''rotationZ:''' A floating point number representing the rotation about the Z axis in degrees.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''scaleX''': a float containing the new scale on the X axis&lt;br /&gt;
*'''scaleY''': a float containing the new scale on the Y axis&lt;br /&gt;
*'''scaleZ''': a float containing the new scale on the Z axis&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22862|&lt;br /&gt;
*'''lighting:''' Lighting of model. Allowed range is [0, 1].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Simple example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, function()&lt;br /&gt;
    engineStreamingRequestModel(3276)&lt;br /&gt;
    dxDrawModel3D(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=81630</id>
		<title>DxDrawModel3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=81630"/>
		<updated>2025-01-03T20:00:54Z</updated>

		<summary type="html">&lt;p&gt;Wassmas: Update Arguments&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
{{Important Note|You can not use this function to draw vehicles and ped}}&lt;br /&gt;
{{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}}&lt;br /&gt;
{{Important Note|You can not render model to render target.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22708|&lt;br /&gt;
This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by [[createObject]] function. This should be used in conjunction with [[onClientRender]] or [[onClientPreRender]] in order to display continuously. Note that a model must be loaded at the time this function is called. A model can be loaded and unloaded with the help of [[engineStreamingRequestModel]] and [[engineStreamingReleaseModel]] functions.&lt;br /&gt;
}}&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 dxDrawModel3D( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX = 1, float scaleY = 1, float scaleZ = 1, float lighting = 0 ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DxDrawModel3D_at_day.png|thumb|Model during day]]&lt;br /&gt;
[[Image:DxDrawModel3D_at_night.png|thumb|Model during night]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''modelId:''' [[object]] you want to draw, must be regular object, you can not draw vehicles and peds. See [[Object_IDs|Object IDs]] for a list of model IDs.&lt;br /&gt;
*'''positionX:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''positionY:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''positionZ:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
*'''rotationX:''' A floating point number representing the rotation about the X axis in degrees.&lt;br /&gt;
*'''rotationY:''' A floating point number representing the rotation about the Y axis in degrees.&lt;br /&gt;
*'''rotationZ :''' A floating point number representing the rotation about the Z axis in degrees.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''scaleX''': a float containing the new scale on the X axis&lt;br /&gt;
*'''scaleY''': a float containing the new scale on the Y axis&lt;br /&gt;
*'''scaleZ''': a float containing the new scale on the Z axis&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22862|&lt;br /&gt;
*'''lighting:''' Lighting of model. Allowed range is [0, 1].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Simple example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, function()&lt;br /&gt;
    engineStreamingRequestModel(3276)&lt;br /&gt;
    dxDrawModel3D(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Wassmas</name></author>
	</entry>
</feed>