<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsCircleSetDirection?action=history&amp;feed=atom</id>
	<title>DgsCircleSetDirection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsCircleSetDirection?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCircleSetDirection&amp;action=history"/>
	<updated>2026-05-12T17:49:11Z</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=DgsCircleSetDirection&amp;diff=77566&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}}  This function sets the direction of dgs circle.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsCircleSetDirection( element circle, bool direction ) &lt;/syntaxhighlight&gt;   ===Required Arguments=== *'''circle:''' A dgs-dxcircle plugin. *'''direction : ''' A bool indicates if dgs circle is anti-clockwise or clockwise. **''true:'' anti-clockwise **''false:'' clockwise  ===Returns=== Returns a ''true'' if successful, ''false'' otherwise  ==Exa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCircleSetDirection&amp;diff=77566&amp;oldid=prev"/>
		<updated>2023-09-03T02:51:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}}  This function sets the direction of dgs circle.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsCircleSetDirection( element circle, bool direction ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;circle:&amp;#039;&amp;#039;&amp;#039; A dgs-dxcircle plugin. *&amp;#039;&amp;#039;&amp;#039;direction : &amp;#039;&amp;#039;&amp;#039; A bool indicates if dgs circle is anti-clockwise or clockwise. **&amp;#039;&amp;#039;true:&amp;#039;&amp;#039; anti-clockwise **&amp;#039;&amp;#039;false:&amp;#039;&amp;#039; clockwise  ===Returns=== Returns a &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if successful, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise  ==Exa...&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;
This function sets the direction of dgs circle.&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 dgsCircleSetDirection( element circle, bool direction )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''circle:''' A dgs-dxcircle plugin.&lt;br /&gt;
*'''direction : ''' A bool indicates if dgs circle is anti-clockwise or clockwise.&lt;br /&gt;
**''true:'' anti-clockwise&lt;br /&gt;
**''false:'' clockwise&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if successful, ''false'' otherwise&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 --get exported functions from dgs&lt;br /&gt;
&lt;br /&gt;
local c = DGS:dgsCreateCircle(0.5,0.3)&lt;br /&gt;
local img = DGS:dgsCreateImage(300,200,200,200,c,false)&lt;br /&gt;
DGS:dgsCircleSetAngle(c,90)&lt;br /&gt;
DGS:dgsCircleSetDirection(c,false) --clockwise&lt;br /&gt;
&lt;br /&gt;
local ac = DGS:dgsCreateCircle(0.5,0.3)&lt;br /&gt;
local img2 = DGS:dgsCreateImage(300,200,200,200,ac,false)&lt;br /&gt;
DGS:dgsCircleSetAngle(ac,90)&lt;br /&gt;
DGS:dgsCircleSetDirection(ac,true) --anti-clockwise&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>