<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Dgs3DInterfaceGetResolution?action=history&amp;feed=atom</id>
	<title>Dgs3DInterfaceGetResolution - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Dgs3DInterfaceGetResolution?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DInterfaceGetResolution&amp;action=history"/>
	<updated>2026-05-12T02:09:02Z</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=Dgs3DInterfaceGetResolution&amp;diff=63574&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}} This function returns the width and height of the render target of 3D interface.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float, float dgs3DInt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DInterfaceGetResolution&amp;diff=63574&amp;oldid=prev"/>
		<updated>2019-08-04T05:03:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} This function returns the width and height of the render target of 3D interface.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float, float dgs3DInt...&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;
This function returns the width and height of the render target of 3D interface.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float, float dgs3DInterfaceGetResolution( element dgsElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsElement:''' The DGS 3D interface of which you wish to retrieve the resolution.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns width and height of the render target of 3D interface.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
function panelPosition()&lt;br /&gt;
    dgs3dPanel = DGS:dgsCreate3DInterface(0,0,3,2,2,400,400,tocolor(255,255,255,255),0,1,0) -- Creates a 3d Panel&lt;br /&gt;
    image = DGS:dgsCreateImage(0,0,1,1,_,true,dgs3dPanel) -- Background for test&lt;br /&gt;
&lt;br /&gt;
    if dgs3dPanel then -- if Panel exists &lt;br /&gt;
        width, height = DGS:dgs3DInterfaceGetResolution( dgs3dPanel ) -- Gets the render target size&lt;br /&gt;
        outputChatBox(&amp;quot;Width: &amp;quot;..width..&amp;quot; Height: &amp;quot;..height) -- outputs to ChatBox&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>