<?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=TFv10</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=TFv10"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/TFv10"/>
	<updated>2026-04-09T21:44:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsComboBoxGetScrollBar&amp;diff=78882</id>
		<title>DgsComboBoxGetScrollBar</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsComboBoxGetScrollBar&amp;diff=78882"/>
		<updated>2024-03-11T04:19:41Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the scroll bar of dgs combo box.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsComboBoxGetScrollBar( element comboBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''comboBox:''' The dgs combo box element to be got from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxscrollbar 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&lt;br /&gt;
&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
        -- Create the combo box element&lt;br /&gt;
	local combobox = DGS:dgsCreateComboBox ( 0.45, 0.45, 0.15, 0.15,&amp;quot;test&amp;quot;, true ) &lt;br /&gt;
	-- Get the Scroll Bar&lt;br /&gt;
	local scrollBar = DGS:dgsComboBoxGetScrollBar( combobox )&lt;br /&gt;
	DGS:dgsSetElementAlpha(scrollBar,0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, clientsideResourceStart )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:TFv10&amp;diff=76738</id>
		<title>User:TFv10</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:TFv10&amp;diff=76738"/>
		<updated>2023-04-25T19:26:20Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;* Senior MTA developer *  Senior Python developer&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Senior MTA developer&lt;br /&gt;
*  Senior Python developer&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DGS&amp;diff=76737</id>
		<title>Resource:DGS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DGS&amp;diff=76737"/>
		<updated>2023-04-25T19:25:03Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
[[Image:DGS_Logo.png|400px|thumb|right|DGS Logo By [[User:Allerek|Allerek]]]]&lt;br /&gt;
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#DD2222;text-shadow:black 0em 0em 0.3em;&amp;quot;&amp;gt;This wiki is always for the latest DGS version!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:10px; border-radius:2px;font-size:14px;&amp;quot;&amp;gt;&lt;br /&gt;
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)&lt;br /&gt;
&lt;br /&gt;
'''Developer Team''': [[User:thisdp|thisdp]], [[User:XNawaf|xLive]], KronoS Lettify, [[User:TFv10|TFv10]]&lt;br /&gt;
&lt;br /&gt;
'''State''': &amp;lt;span style=&amp;quot;color:#FFFFFF;text-shadow:black 0em 0em 0.3em;&amp;quot;&amp;gt;OpenSource&amp;lt;/span&amp;gt; &amp;amp; &amp;lt;span style=&amp;quot;color:#55FF55;text-shadow:black 0em 0em 0.3em;&amp;quot;&amp;gt;Work in progress&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master&lt;br /&gt;
&lt;br /&gt;
'''Server Discord''': https://discord.gg/QEs8q6W&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 3.520&lt;br /&gt;
&lt;br /&gt;
'''Update Log''': [[DGS Updates Log|Changes and Updates Log]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Auto Completion &amp;amp; Syntax  Highlight'''&lt;br /&gt;
&lt;br /&gt;
Official:&lt;br /&gt;
&lt;br /&gt;
'''Latest VSCode Snippets:''' [https://raw.githubusercontent.com/Armisael2k/mtasa-wiki-scrapper/master/functions.json VSCode Snippets (Last Update: 06/02/2023) By '''motar2k''']&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the following command in server console to crawl and generate the latest auto completion (Only support NotePad++/Sublime/VSCode).&lt;br /&gt;
*'''g2d -crawl npp/sublime/vscode'''&lt;br /&gt;
Or you can use the following link to download completed files instead of crawling by yourself.&lt;br /&gt;
*[https://drive.google.com/file/d/1H_PiG2gmEz1AyXqZN4956IVgtZOjgMi6/view?usp=sharing NotePad++]&lt;br /&gt;
*[https://drive.google.com/file/d/1_07WBEWjriTTucrNGI7jT-4SknALKG6B/view?usp=sharing Sublime]&lt;br /&gt;
*[https://drive.google.com/file/d/1J4qoSjzmXZz7yxHUZ2fExBu3zvCwRESn/view?usp=sharing VSCode (Old)]&lt;br /&gt;
&lt;br /&gt;
3rd Party Auto Completion:&lt;br /&gt;
*1. [http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip NotePad++ By '''Ahmed Ly''']&lt;br /&gt;
*2. [https://marketplace.visualstudio.com/items?itemName=ERAGON.mtasa-dgs-lua Visual Studio Code By '''BW~ERAGON &amp;gt;''' ]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
&lt;br /&gt;
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]&lt;br /&gt;
&lt;br /&gt;
[[Image:DGSS.png|400px|thumb|right|]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How does it work?'''&lt;br /&gt;
*DGS is based on [[element]] system, which just likes the cegui system. To make DGS easier to use and understand, I choose to follow the usage of cegui's.&lt;br /&gt;
*DGS supports OOP syntax, if you don't like POP, then use OOP instead. But you should know that OOP is slower than POP.&lt;br /&gt;
*DGS elements are rendered in the event &amp;quot;onClientRender&amp;quot;. When &amp;quot;onClientRender&amp;quot; is called, every DGS elements will be looped and calculated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What's different from cegui?'''&lt;br /&gt;
*This resource is based on dx* functions, so its style will be more flexible than cegui, which means you can define the style by yourself.&lt;br /&gt;
*The latest '''Style System''' enables developer to define their own style such as changing color, loading images and even loading shaders with dgs elements on the server instead of using a lot of [[dgsSetProperty]]/[[dgsSetProperties]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Update System'''&lt;br /&gt;
*It have an update system that can inform you of keeping your DGS latest.&lt;br /&gt;
*When a newer version has been released, it will detecte the version changing periodically and then notice you.&lt;br /&gt;
*Execute command &amp;quot;'''updatedgs'''&amp;quot; to check the least version and update your DGS.&lt;br /&gt;
*Also, you can check the version of DGS by inputting the command &amp;quot;dgsver&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''You Should Know'''&lt;br /&gt;
*This project was started from 2014.&lt;br /&gt;
*Some of DGS elements use '''Render Target''', which means if you don't have enough video memory, '''Render Target won't be created''', and therefore those dgs elements won't be shown.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] &lt;br /&gt;
&lt;br /&gt;
'''Examples scripts'''&lt;br /&gt;
*1.https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)&lt;br /&gt;
*2. Also File test.lua its have more Examples You can See it .&lt;br /&gt;
*3. This Video show you how to play a video by using Dgs https://www.youtube.com/watch?v=ZIq24zS5byI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Debug'''&lt;br /&gt;
* You can enter the debug mode by executing the command &amp;quot;'''debugdgs'''&amp;quot;.&lt;br /&gt;
* &amp;quot;'''debugdgs'''&amp;quot;: Simple debug mode. For basic information.&lt;br /&gt;
* &amp;quot;'''debugdgs 2 '''&amp;quot;: Render debug mode. To see dgs elements' scale with a rainbow border&lt;br /&gt;
* &amp;quot;'''debugdgs 3 '''&amp;quot;: Tracing debug mode. To trace something for example where the dgs elements' were created, and the tracing mode of some functions will be enabled to show the detail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notice'''&lt;br /&gt;
*It is recommended to change the resource name to 'dgs'.&lt;br /&gt;
*This is a resource, if you want to use the functions exported by this resource,  you should use an exported function prefix ('''exports.dgs:''') call in your code, such as&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, &amp;quot;text&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*Here is a feasible way to shorten the name of an exported function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs --shorten the export function prefix&lt;br /&gt;
label = DGS:dgsCreateLabel(0,0,0.5,0.1,&amp;quot;text&amp;quot;,true) --create a label&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*From the latest version, it no longer needs '''exports.dgs:''', instead we can do&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())()-- load functions&lt;br /&gt;
label = dgsCreateLabel(0,0,0.5,0.1,&amp;quot;text&amp;quot;,true) --create a label&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Object Oriented Programming'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportOOPClass(true))()-- load OOP class&lt;br /&gt;
window = dgsWindow(0,0,0.5,0.1,&amp;quot;test&amp;quot;,true) --create a window with oop&lt;br /&gt;
label = window:dgsLabel(0,0,1,1,&amp;quot;label&amp;quot;,true) --create a label inside the window&lt;br /&gt;
label.text = &amp;quot;DGS OOP Test&amp;quot; --set text&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to the following for their help (Respect the contributors)''':&lt;br /&gt;
* Axel, Senpai, ZoNe&lt;br /&gt;
* DiGiTal, #Dv^, maksam07&lt;br /&gt;
* Scorpyo, Kingleonide, Bullet(.el3tar)&lt;br /&gt;
* Allerek, Deihim007, OmarSwaitti(HankVoight)&lt;br /&gt;
* FlyingFork, Lettify, Ahmed Ly&lt;br /&gt;
* ᴛᴇᴍᴏɪꜱ, Shady1&lt;br /&gt;
&lt;br /&gt;
='''DGS Tips'''=&lt;br /&gt;
*[[DGS Events and GUI Events]]&lt;br /&gt;
*[[DGS Functions and GUI Functions]]&lt;br /&gt;
*[[DGS Grid List]]&lt;br /&gt;
*[[DGS OOP Class]]&lt;br /&gt;
*[[DGS Custom Plugin]]&lt;br /&gt;
*[[DGS Style System]]&lt;br /&gt;
*[[G2D|DGS GUI To DGS]]&lt;br /&gt;
&lt;br /&gt;
='''DGS Element Properties'''=&lt;br /&gt;
{{DGSPROPERTIES}}&lt;br /&gt;
&lt;br /&gt;
='''Client Functions'''=&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;br /&gt;
&lt;br /&gt;
=Client Events=&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
&lt;br /&gt;
=Last=&lt;br /&gt;
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[ar:Resource:Dgs]]&lt;br /&gt;
[[ZH-CN:Resource:Dgs]]&lt;br /&gt;
[[PL:Resource:Dgs]]&lt;br /&gt;
[[TR:Resource:Dgs]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75336</id>
		<title>Dgs3DImageIsAttached</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75336"/>
		<updated>2022-08-11T22:21:08Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This functions checks whether or not 3DImage element is attached to another element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementAttached ( dgsElement the3DImageElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isAttached|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''the3DImageElement :''' The element to check for attachment.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if the specified element is attached to another element, ''false'' if it is not attached or ''nil'' if an improper argument was passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example is making export function to check weather the player is talking or not:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerTalking(player)&lt;br /&gt;
	local player = player or localPlayer;&lt;br /&gt;
	return dgs:dgs3DImageIsAttached(icons[player]); -- this table inside another client file .&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75335</id>
		<title>Dgs3DImageIsAttached</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75335"/>
		<updated>2022-08-11T22:20:19Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This functions checks whether or not 3DImage element is attached to another element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementAttached ( dgsElement the3DImageElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isAttached|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''the3DImageElement :''' The element to check for attachment.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if the specified element is attached to another element, ''false'' if it is not attached or ''nil'' if an improper argument was passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example is making export function to check weather the player is talking or not:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerTalking(player)&lt;br /&gt;
	local player = player or localPlayer;&lt;br /&gt;
	return dgs:dgs3DImageIsAttached(icons[player]);&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75334</id>
		<title>Dgs3DImageIsAttached</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageIsAttached&amp;diff=75334"/>
		<updated>2022-08-11T22:18:39Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Server client function}} __NOTOC__ &amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt; This functions checks whether or not an element is attached to another element.  ==Syntax==  &amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and preve...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This functions checks whether or not an element is attached to another element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isElementAttached ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:isAttached|attached|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''theElement:''' The element to check for attachment.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if the specified element is attached to another element, ''false'' if it is not attached or ''nil'' if an improper argument was passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example is making export function to check weather the player is talking or not:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerTalking(player)&lt;br /&gt;
	local player = player or localPlayer;&lt;br /&gt;
	return dgs:dgs3DImageIsAttached(icons[player]);&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75333</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75333"/>
		<updated>2022-08-11T22:14:51Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches 3D Image element to another element, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg the3DImage becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. Also, the3DImage  cannot be attached to two separate elements at one time. For example, two the3DImage can be attached to one single car, but you can attach car to the3DImage , If you attempt to do this it won't work .&lt;br /&gt;
  &lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&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 dgs3DImageAttachToElement ( dgsElement the3DImageElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:3DImageAttachToElement||3DImageDetachFromElement}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''the3DImageElement:''' The 3D Image element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to any player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                icons[source] = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                dgs:dgs3DImageAttachToElement( icons[source],localPlayer,0,0,1.5)&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                dgs:dgs3DImageDettachFromElement( icons[source],localPlayer);&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageDetachFromElement&amp;diff=75332</id>
		<title>Dgs3DImageDetachFromElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageDetachFromElement&amp;diff=75332"/>
		<updated>2022-08-11T22:11:19Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function detaches attached 3DImageElement from another element.&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 dgs3DImageDetachFromElement ( element the3DImageElement, [ element theAttachToElement ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:3DImageDetachFromElement||3DImageAttachToElement}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''the3DImageElement:''' The element to be detached (the &amp;quot;child&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''theAttachToElement:''' The element you wish to detach from, will detach from the attached element if this isn't specified.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the detaching was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example attaches a marker to a vehicle, and detaches it when it blows up:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                icons[source] = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                dgs:dgs3DImageAttachToElement( icons[source],localPlayer,0,0,1.5)&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                dgs:dgs3DImageDettachFromElement( icons[source],localPlayer);&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageDetachFromElement&amp;diff=75331</id>
		<title>Dgs3DImageDetachFromElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageDetachFromElement&amp;diff=75331"/>
		<updated>2022-08-11T22:10:56Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;__NOTOC__ {{Server client function}} This function detaches attached 3DImageElement from another element.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool detachElements ( element the3DImageElement, [ element theAttachToElement ] ) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||element:3DImageDetachFromElement||3DImageAttachToElement}}  ===Required Arguments===  *'''the3DImageElement:''' The element to be detached (the &amp;quot;child&amp;quot;)  ===Optional Arguments===  {{OptionalArg}}  *'''theAttachToEl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function detaches attached 3DImageElement from another element.&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 detachElements ( element the3DImageElement, [ element theAttachToElement ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:3DImageDetachFromElement||3DImageAttachToElement}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''the3DImageElement:''' The element to be detached (the &amp;quot;child&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''theAttachToElement:''' The element you wish to detach from, will detach from the attached element if this isn't specified.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the detaching was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example attaches a marker to a vehicle, and detaches it when it blows up:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                icons[source] = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                dgs:dgs3DImageAttachToElement( icons[source],localPlayer,0,0,1.5)&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                dgs:dgs3DImageDettachFromElement( icons[source],localPlayer);&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75330</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75330"/>
		<updated>2022-08-11T21:42:13Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches 3D DGS Image element to another element, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg the3DImage becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. Also, the3DImage  cannot be attached to two separate elements at one time. For example, two the3DImage can be attached to one single car, but you can attach car to the3DImage , If you attempt to do this it won't work .&lt;br /&gt;
  &lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&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 dgs3DImageAttachToElement ( element theElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:3DImageAttachToElement||3DImageDetachFromElement}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to any player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                local dgsMic = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                print(dgs:dgs3DImageAttachToElement(dgsMic,localPlayer,0,0,1.5))&lt;br /&gt;
                icons[source] = dgsMic;&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;br /&gt;
[[ru:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75329</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75329"/>
		<updated>2022-08-11T21:41:25Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches 3D DGS Image element to another element, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg the3DImage becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. Also, the3DImage  cannot be attached to two separate elements at one time. For example, two the3DImage can be attached to one single car, but you can attach car to the3DImage , If you attempt to do this it won't work .&lt;br /&gt;
  &lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&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 dgs3DImageAttachToElement ( element theElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:3DImageAttachToElement||3DImageDetachFromElement}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to the player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                local dgsMic = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                print(dgs:dgs3DImageAttachToElement(dgsMic,localPlayer,0,0,1.5))&lt;br /&gt;
                icons[source] = dgsMic;&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&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;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;br /&gt;
[[ru:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75328</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75328"/>
		<updated>2022-08-11T21:39:29Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches 3D DGS Image element to another element, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg the3DImage becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. Also, the3DImage  cannot be attached to two separate elements at one time. For example, two the3DImage can be attached to one single car, but you can attach car to the3DImage , If you attempt to do this it won't work .&lt;br /&gt;
  &lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
*The offset coodinates reflect the object space, not the world space. This means that you cannot calculate the exact offsets between two objects by pre-positioning them in the map editor as a reference. Please see [[attachElementsOffsets]] for more details.&lt;br /&gt;
*Due to a limitation in GTA, unexpected attach rotations may occur if all rotation offsets are non-zero. (i.e. Try to ensure at least one of 'xRotOffset', 'yRotOffset' or 'zRotOffset' is zero).}}&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 dgs3DImageAttachToElement ( element theElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:attach||detachElements}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to the player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                local dgsMic = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                print(dgs:dgs3DImageAttachToElement(dgsMic,localPlayer,0,0,1.5))&lt;br /&gt;
                icons[source] = dgsMic;&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&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;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;br /&gt;
[[ru:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75327</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75327"/>
		<updated>2022-08-11T21:36:27Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches one element to another, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg theElement becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. For example, if carA was attached to carB, now carB is attached to carA. Also, an element cannot be attached to two separate elements at one time. For example, two cars can be attached to one single car, but one single car cannot be attached to two separate cars. If you attempt to do this, the existing attachment will automatically be dropped in favor of the new attachment. For example, if carA is asked to attached to carB then carC, it is only attached to carC.&lt;br /&gt;
&lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
*The offset coodinates reflect the object space, not the world space. This means that you cannot calculate the exact offsets between two objects by pre-positioning them in the map editor as a reference. Please see [[attachElementsOffsets]] for more details.&lt;br /&gt;
*Due to a limitation in GTA, unexpected attach rotations may occur if all rotation offsets are non-zero. (i.e. Try to ensure at least one of 'xRotOffset', 'yRotOffset' or 'zRotOffset' is zero).}}&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 dgs3DImageAttachToElement ( element theElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:attach||detachElements}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to the player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                local dgsMic = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                print(dgs:dgs3DImageAttachToElement(dgsMic,localPlayer,0,0,1.5))&lt;br /&gt;
                icons[source] = dgsMic;&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&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;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;br /&gt;
[[ru:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75326</id>
		<title>Dgs3DImageAttachToElement</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs3DImageAttachToElement&amp;diff=75326"/>
		<updated>2022-08-11T21:36:09Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;__NOTOC__  {{Client function}} This function attaches one element to another, so that the first one follows the second whenever it moves.   If an attempt is made to attach two elements that are already attached the opposite way (eg theElement becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. For example, if carA was attached to carB, now carB is attached to carA. Also, an element cannot be...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function attaches one element to another, so that the first one follows the second whenever it moves. &lt;br /&gt;
&lt;br /&gt;
If an attempt is made to attach two elements that are already attached the opposite way (eg theElement becomes theAttachToElement and vice versa), the 1st attachment order is automatically detached in favor of the 2nd attachment order. For example, if carA was attached to carB, now carB is attached to carA. Also, an element cannot be attached to two separate elements at one time. For example, two cars can be attached to one single car, but one single car cannot be attached to two separate cars. If you attempt to do this, the existing attachment will automatically be dropped in favor of the new attachment. For example, if carA is asked to attached to carB then carC, it is only attached to carC.&lt;br /&gt;
&lt;br /&gt;
This is not compatible with all elements.  The following elements are compatible:&lt;br /&gt;
* [[Ped]]s&lt;br /&gt;
* [[Player]]s&lt;br /&gt;
* [[Blip]]s&lt;br /&gt;
* [[Vehicle]]s&lt;br /&gt;
* [[Object]]s&lt;br /&gt;
* [[Marker]]s&lt;br /&gt;
* [[Pickup]]s&lt;br /&gt;
* [[Sound]]s&lt;br /&gt;
* [[Colshape]]s&lt;br /&gt;
* [[createWeapon|Weapons]]&lt;br /&gt;
* [[Camera]]s&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
*The offset coodinates reflect the object space, not the world space. This means that you cannot calculate the exact offsets between two objects by pre-positioning them in the map editor as a reference. Please see [[attachElementsOffsets]] for more details.&lt;br /&gt;
*Due to a limitation in GTA, unexpected attach rotations may occur if all rotation offsets are non-zero. (i.e. Try to ensure at least one of 'xRotOffset', 'yRotOffset' or 'zRotOffset' is zero).}}&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 attachElements ( element theElement, element theAttachToElement, [ float xPosOffset = 0, float yPosOffset = 0, float zPosOffset = 0, float xRotOffset = 0, float yRotOffset = 0, float zRotOffset = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:attach||detachElements}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element to be attached.&lt;br /&gt;
*'''theAttachToElement:''' The element to attach the first to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''xPosOffset:''' The x offset, if you want the elements to be a certain distance from one another (default 0).&lt;br /&gt;
*'''yPosOffset:''' The y offset (default 0).&lt;br /&gt;
*'''zPosOffset:''' The z offset (default 0).&lt;br /&gt;
*'''xRotOffset:''' The x rotation offset (default 0).&lt;br /&gt;
*'''yRotOffset:''' The y rotation offset (default 0).&lt;br /&gt;
*'''zRotOffset:''' The z rotation offset (default 0).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the attaching process 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;
'''Example 1:''' This example attaches a mic icon to the player who start voice chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    local dgs = exports.dgs &lt;br /&gt;
    local micPNG = dxCreateTexture('assests/mic.png');&lt;br /&gt;
    local icons = {};&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStart',root,&lt;br /&gt;
        function()&lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' started talking.')&lt;br /&gt;
            local x,y,z = getElementPosition(source);&lt;br /&gt;
            if ((source ~= localPlayer and isElementOnScreen(source)) or (localPlayer == source)) and not isElement(icons[source]) then&lt;br /&gt;
                local dgsMic = dgs:dgsCreate3DImage(x,y,z+1.5,micPNG,tocolor(255,255,255,255),4,4,20);&lt;br /&gt;
                print(dgs:dgs3DImageAttachToElement(dgsMic,localPlayer,0,0,1.5))&lt;br /&gt;
                icons[source] = dgsMic;&lt;br /&gt;
            end &lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
    addEventHandler('onClientPlayerVoiceStop',root,&lt;br /&gt;
        function() &lt;br /&gt;
            print('[Voice-System]: '..getPlayerName(source)..' Stoped talking.')&lt;br /&gt;
            if isElement(icons[source]) then&lt;br /&gt;
                destroyElement(icons[source]);&lt;br /&gt;
                icons[source] = nil;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    )&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;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:attachElements]]&lt;br /&gt;
[[ru:attachElements]]&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75186</id>
		<title>DgsCreateRoundRect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75186"/>
		<updated>2022-06-26T11:06:55Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Optional Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000;text-shadow:black 0.1em 0.1em 0.6em;&amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Warning: This feature requires pixel shader model 2_a&amp;lt;&amp;lt;&amp;lt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function creates a rounded rectangle shader that can be used for dgs elements.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateRoundRect( float radius, bool relative [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Image:DGS_Rounded_Rectangle.png|300px|thumb|Example Rounded Rectangle]]&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''radius:''' A float of the relative radius of corner of the rounded rectangle ranges from 0 to 1 '''if relative is true''', or the radius will be absolute pixels.&lt;br /&gt;
*'''relative:''' A bool indicates whether the radius is relative to the size of round rectangle or just absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color''': An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background''': A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten''': A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' (resultColor = render color * '''color''') when rendering.&lt;br /&gt;
*'''isBorderOnlyOrColor''': A bool of whether this round rectangle is '''not filled''' or An int of the color of the rounded rectangle border.&lt;br /&gt;
*'''borderHorizontalThickness''': A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness''': A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect(50,false,tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;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;
element dgsCreateRoundRect( table multiArguments [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''multiArguments :''' A table contains at least 1 group of the radius of the corner. The structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	{ float LeftTopRadius, bool relative },&lt;br /&gt;
	{ float RightTopRadius, bool relative },&lt;br /&gt;
	{ float RightBottomRadius, bool relative },&lt;br /&gt;
	{ float LeftBottomRadius, bool relative },&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color :''' An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background:''' A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten :''' A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' when rendering.&lt;br /&gt;
*'''isBorderOnlyOrColor''': A bool of whether this round rectangle is '''not filled''' or An int of the color of the rounded rectangle border.&lt;br /&gt;
*'''borderHorizontalThickness:''' A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness:''' A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect({{50,false},{40,false},{30,false},{20,false}},tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75185</id>
		<title>DgsCreateRoundRect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75185"/>
		<updated>2022-06-26T11:06:15Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000;text-shadow:black 0.1em 0.1em 0.6em;&amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Warning: This feature requires pixel shader model 2_a&amp;lt;&amp;lt;&amp;lt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function creates a rounded rectangle shader that can be used for dgs elements.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateRoundRect( float radius, bool relative [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Image:DGS_Rounded_Rectangle.png|300px|thumb|Example Rounded Rectangle]]&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''radius:''' A float of the relative radius of corner of the rounded rectangle ranges from 0 to 1 '''if relative is true''', or the radius will be absolute pixels.&lt;br /&gt;
*'''relative:''' A bool indicates whether the radius is relative to the size of round rectangle or just absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color''': An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background''': A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten''': A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' (resultColor = render color * '''color''') when rendering.&lt;br /&gt;
*'''isBorderOnlyOrColor''': A bool of whether this round rectangle is '''not filled''' or An int of the color of the rounded rectangle border.&lt;br /&gt;
*'''borderHorizontalThickness''': A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness''': A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect(50,false,tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;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;
element dgsCreateRoundRect( table multiArguments [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''multiArguments :''' A table contains at least 1 group of the radius of the corner. The structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	{ float LeftTopRadius, bool relative },&lt;br /&gt;
	{ float RightTopRadius, bool relative },&lt;br /&gt;
	{ float RightBottomRadius, bool relative },&lt;br /&gt;
	{ float LeftBottomRadius, bool relative },&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color :''' An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background:''' A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten :''' A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' when rendering.&lt;br /&gt;
*'''isBorderOnly:''' A bool of whether this round rectangle is '''not filled'''.&lt;br /&gt;
*'''borderHorizontalThickness:''' A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness:''' A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect({{50,false},{40,false},{30,false},{20,false}},tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75184</id>
		<title>DgsCreateRoundRect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateRoundRect&amp;diff=75184"/>
		<updated>2022-06-26T11:05:39Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000;text-shadow:black 0.1em 0.1em 0.6em;&amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Warning: This feature requires pixel shader model 2_a&amp;lt;&amp;lt;&amp;lt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function creates a rounded rectangle shader that can be used for dgs elements.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateRoundRect( float radius, bool relative [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Image:DGS_Rounded_Rectangle.png|300px|thumb|Example Rounded Rectangle]]&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''radius:''' A float of the relative radius of corner of the rounded rectangle ranges from 0 to 1 '''if relative is true''', or the radius will be absolute pixels.&lt;br /&gt;
*'''relative:''' A bool indicates whether the radius is relative to the size of round rectangle or just absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color''': An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background''': A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten''': A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' (resultColor = render color * '''color''') when rendering.&lt;br /&gt;
*'''isBorderOnlyOrColor''': A bool of whether this round rectangle is '''not filled''' or An int of the rounded rectangle color.&lt;br /&gt;
*'''borderHorizontalThickness''': A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness''': A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect(50,false,tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;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;
element dgsCreateRoundRect( table multiArguments [, int color = 0xFFFFFFFF, texture background = nil, bool colorOverwritten = true, bool isBorderOnly, float borderHorizontalThickness, float borderVerticalThickness ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''multiArguments :''' A table contains at least 1 group of the radius of the corner. The structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	{ float LeftTopRadius, bool relative },&lt;br /&gt;
	{ float RightTopRadius, bool relative },&lt;br /&gt;
	{ float RightBottomRadius, bool relative },&lt;br /&gt;
	{ float LeftBottomRadius, bool relative },&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''color :''' An int of the color of the rounded rectangle.&lt;br /&gt;
*'''background:''' A texture element of the background of the rounded rectangle.&lt;br /&gt;
*'''colorOverwritten :''' A bool indicates whether the final color will be overwritten by '''color ''' or the product of render color and '''color''' when rendering.&lt;br /&gt;
*'''isBorderOnly:''' A bool of whether this round rectangle is '''not filled'''.&lt;br /&gt;
*'''borderHorizontalThickness:''' A float of the horizontal thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
*'''borderVerticalThickness:''' A float of the vertical thickness, only works when '''isBorderOnly''' set to true.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''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 rndRect = DGS:dgsCreateRoundRect({{50,false},{40,false},{30,false},{20,false}},tocolor(0,0,0,150))  --Create Rounded Rectangle with 50 pixels radius &lt;br /&gt;
local image1 = DGS:dgsCreateImage(200,200,400,100,rndRect,false)  --Apply it to the dgs image&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74252</id>
		<title>DgsSVGGetDocument</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74252"/>
		<updated>2022-02-26T17:52:00Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Gets the underlying XML document from an SVG element. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 xmlnode dgsSVGGetDocument( svg svgElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an [[xmlnode]] if 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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the svg by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttributes&amp;diff=74231</id>
		<title>DgsSVGNodeGetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttributes&amp;diff=74231"/>
		<updated>2022-02-26T14:00:38Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 table dgsSVGNodeSetAttributes( xmlnode xmlNode)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] That you want to get its attributes and value .&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type.&lt;br /&gt;
&lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
local attributes = dgsSVGNodeGetAttributes(rect)&lt;br /&gt;
attributes['stroke'] = {255,0,255}&lt;br /&gt;
attributes['stroke-width'] = '10px'&lt;br /&gt;
attributes['fill'] = &amp;quot;rgba(255,255,0,100)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
dgsSVGNodeSetAttributes(rect,attributes)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74230</id>
		<title>DgsSVGNodeSetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74230"/>
		<updated>2022-02-26T13:54:54Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] That you want to change its attributes and value .&lt;br /&gt;
*'''attributesANDValue:''' Table that contain attributes and its new value .&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttributes&amp;diff=74229</id>
		<title>DgsSVGNodeGetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttributes&amp;diff=74229"/>
		<updated>2022-02-26T13:54:37Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Client function}} __NOTOC__ This function gets xmlnode attributes value.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;  table dgsSVGNodeSetAttributes( xmlnode xmlNode) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *'''xmlNode:''' xmlnode That you want to get its attributes and value .  ===Optional Arguments=== ===Returns=== * Returns ''true'' if succeed, ''false'' otherwise.  ==Example== &amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 table dgsSVGNodeSetAttributes( xmlnode xmlNode)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] That you want to get its attributes and value .&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type.&lt;br /&gt;
&lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
local attributes = dgsSVGNodeSetAttributes(rect)&lt;br /&gt;
attributes['stroke'] = {255,0,255}&lt;br /&gt;
attributes['stroke-width'] = '10px'&lt;br /&gt;
attributes['fill'] = &amp;quot;rgba(255,255,0,100)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
dgsSVGNodeSetAttributes(rect,attributes)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74228</id>
		<title>DgsSVGNodeSetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74228"/>
		<updated>2022-02-26T13:45:33Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] That you want to change its attributes value .&lt;br /&gt;
*'''attributesANDValue:''' Table that contain attributes and its new value .&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74227</id>
		<title>DgsSVGNodeSetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74227"/>
		<updated>2022-02-26T13:44:31Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] That you want to change its attributes value .&lt;br /&gt;
*'''attributesANDValue:''' Table that contain attributes and its new value .&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74226</id>
		<title>DgsSVGNodeSetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74226"/>
		<updated>2022-02-26T13:44:13Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] that you want to change its attributes value .&lt;br /&gt;
*'''attributesANDValue:''' Table that contain attributes and its new value .&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74225</id>
		<title>DgsSVGNodeSetAttributes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttributes&amp;diff=74225"/>
		<updated>2022-02-26T13:43:26Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Client function}} __NOTOC__ This function change xmlnode attributes value.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;  bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *'''xmlNode:''' xmlnode that you want to change its attributes . *'''attributesANDValue:''' Table that contain attributes and its new value . ===Optional Arguments=== ===Returns=== * Returns ''true'' if succeed, ''false'' otherwi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change [[xmlnode]] attributes value. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 bool dgsSVGNodeSetAttributes( xmlnode xmlNode, table attributesANDValue)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' [[xmlnode]] that you want to change its attributes .&lt;br /&gt;
*'''attributesANDValue:''' Table that contain attributes and its new value .&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''true'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=74224</id>
		<title>DgsSVGNodeGetAttribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=74224"/>
		<updated>2022-02-26T13:31:11Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Client function}} __NOTOC__ This function change single node attribute in svg document . ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string dgsSVGNodeGetAttribute( xmlnode xmlNode, string attributeName) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *'''xmlNode:''' The xmlnode you want to change their attribute value. *'''attributeName:''' The attribute name that you want change its value . ===Returns=== * Returns ''string attribute value'' if succeed, ''false'' otherwi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change single node attribute in svg document .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string dgsSVGNodeGetAttribute( xmlnode xmlNode, string attributeName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' The [[xmlnode]] you want to change their attribute value.&lt;br /&gt;
*'''attributeName:''' The attribute name that you want change its value .&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''string attribute value'' if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local path = dgsSVGCreateNode(svgDoc,&amp;quot;path&amp;quot;,{&lt;br /&gt;
	{&amp;quot;M&amp;quot;,153,334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,153, 334, 151, 334, 151, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,151, 339, 153, 344, 156, 344},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,164, 344, 171, 339, 171, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,171, 322, 164, 314, 156, 314},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,142, 314, 131, 322, 131, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,131, 350, 142, 364, 156, 364},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,175, 364, 191, 350, 191, 334},&lt;br /&gt;
})&lt;br /&gt;
dgsSVGNodeSetAttributes(path,{&lt;br /&gt;
	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
local color = dgsSVGNodeGetAttribute(path,'fill')&lt;br /&gt;
iprint(color) -- output should be &amp;quot;rgb(255,0,0)&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74223</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74223"/>
		<updated>2022-02-26T13:19:44Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( xmlnode xmlNode , string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode :''' The [[xmlnode]] that you want to create node in.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74222</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74222"/>
		<updated>2022-02-26T13:19:07Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlDoc:''' The [[xmlnode]] that you want to create node in.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74221</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74221"/>
		<updated>2022-02-26T13:18:52Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlDoc:''' The [[xmldoc]] that you want to create node in.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttribute&amp;diff=74220</id>
		<title>DgsSVGNodeSetAttribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeSetAttribute&amp;diff=74220"/>
		<updated>2022-02-26T13:15:54Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Client function}} __NOTOC__ This function change single node attribute in svg document . ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsSVGNodeSetAttribute( xmlnode xmlNode, string attributeName, string value) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *'''xmlNode:''' The xmlnode you want to change their attribute value. *'''attributeName:''' The attribute name that you want change its value . *'''value:''' The new value for the attribute. ===Returns=== * Retur...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change single node attribute in svg document .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsSVGNodeSetAttribute( xmlnode xmlNode, string attributeName, string value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' The [[xmlnode]] you want to change their attribute value.&lt;br /&gt;
*'''attributeName:''' The attribute name that you want change its value .&lt;br /&gt;
*'''value:''' The new value for the attribute.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGNodeSetAttribute(rect,'fill', 'rgb(255,0,255') -- Change node 'fill' attribute value to 'rgb(255,0,255'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateSVG&amp;diff=74219</id>
		<title>DgsCreateSVG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateSVG&amp;diff=74219"/>
		<updated>2022-02-26T12:42:43Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Creates an svg from size (blank document), filepath or raw data , similar to [[svgCreate]]. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 svg dgsCreateSVG ( int width, int height [, string pathORrawData ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''pathOrRawData:''' A string representing the path to your SVG file, or the raw SVG data&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an [[svg]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74218</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74218"/>
		<updated>2022-02-26T12:41:55Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74217</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74217"/>
		<updated>2022-02-26T12:41:31Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns [[xmlnode]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74216</id>
		<title>DgsSVGGetDocument</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74216"/>
		<updated>2022-02-26T12:40:59Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Gets the underlying XML document from an SVG element. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 xmlnode dgsSVGGetDocument( svg svgElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an [[xmlnode]] if 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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the svg by dgsImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74215</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74215"/>
		<updated>2022-02-26T12:39:26Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect) -- Destroy rect node&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- add circle node. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the node attributes value .&lt;br /&gt;
        ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateSVG&amp;diff=74214</id>
		<title>DgsCreateSVG</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateSVG&amp;diff=74214"/>
		<updated>2022-02-26T12:37:35Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Creates an svg from size (blank document), filepath or raw data , similar to [[svgCreate]]. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 svg dgsCreateSVG ( int width, int height [, string pathORrawData ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''pathOrRawData:''' A string representing the path to your SVG file, or the raw SVG data&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an [[svg]] if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the SVG by dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74213</id>
		<title>DgsSVGGetDocument</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGGetDocument&amp;diff=74213"/>
		<updated>2022-02-26T12:35:34Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Gets the underlying XML document from an SVG element. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 xmlnode dgsSVGGetDocument( svg svgElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an [[xmlnode]] if 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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) --Render the svg by dgsImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74212</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74212"/>
		<updated>2022-02-26T12:35:03Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns xmlnode if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect type. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the node attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by  dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74211</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74211"/>
		<updated>2022-02-26T12:34:10Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect) -- Destroy rect node&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- add circle node. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the node attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74210</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74210"/>
		<updated>2022-02-26T12:33:48Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect) -- Destroy rect node&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- add circle node. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74209</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74209"/>
		<updated>2022-02-26T12:31:12Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect) -- Destroy rect node&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Replace rect node with circle node. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the circle shape dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74208</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74208"/>
		<updated>2022-02-26T12:22:52Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the rect shape dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
        ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the circle shape dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74207</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74207"/>
		<updated>2022-02-26T12:22:42Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the rect shape dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
       ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the circle shape dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74206</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74206"/>
		<updated>2022-02-26T12:19:35Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 dgsSVGDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the rect shape dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the circle shape dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74205</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74205"/>
		<updated>2022-02-26T12:11:24Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns true if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the rect shape dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the circle shape dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74204</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74204"/>
		<updated>2022-02-26T12:10:27Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns true if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
        ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74203</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74203"/>
		<updated>2022-02-26T12:10:19Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns true if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
          ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74202</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74202"/>
		<updated>2022-02-26T12:10:12Z</updated>

		<summary type="html">&lt;p&gt;TFv10: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns true if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
          ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74201</id>
		<title>DgsSVGDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGDestroyNode&amp;diff=74201"/>
		<updated>2022-02-26T12:09:27Z</updated>

		<summary type="html">&lt;p&gt;TFv10: Created page with &amp;quot;{{Client function}} __NOTOC__ This function create a node in svg document  . ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *'''svgElement:''' The svg element you want to get the XML document of. *'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' . *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
boolean dgsSVGDestroyNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns true if succeed, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
local theRect = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&lt;br /&gt;
dgsSVGDestroyNode(rect)&lt;br /&gt;
local circle = dgsSVGCreateNode(svgDoc,&amp;quot;circle&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(circle,{ -- Change the rect shape attributes value .&lt;br /&gt;
    ['r'] = &amp;quot;40&amp;quot;,&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theCircle = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74200</id>
		<title>DgsSVGCreateNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGCreateNode&amp;diff=74200"/>
		<updated>2022-02-26T11:59:13Z</updated>

		<summary type="html">&lt;p&gt;TFv10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function create a node in svg document  .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode dgsSVGCreateNode ( svg svgElement, string nodeType, int width, int height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''svgElement:''' The [[svg]] element you want to get the XML document of.&lt;br /&gt;
*'''nodeType :''' Node type Available types : '''&amp;quot;rect&amp;quot;''' '''&amp;quot;circle&amp;quot;''' '''&amp;quot;line&amp;quot;''' '''&amp;quot;polygon&amp;quot;''' '''&amp;quot;polyline&amp;quot;''' '''&amp;quot;path&amp;quot;''' '''&amp;quot;ellipse&amp;quot;''' .&lt;br /&gt;
*'''width:''' Desired width, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
*'''height :''' Desired height, preferably power of two (16, 32, 64 etc.), maximum is 4096.&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns xmlnode if created successfully, ''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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local rect = dgsSVGCreateNode(svgDoc,&amp;quot;rect&amp;quot;,50,50) -- Create SVG node with rect shape. &lt;br /&gt;
dgsSVGNodeSetAttributes(rect,{ -- Change the rect shape attributes value .&lt;br /&gt;
 	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
 	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the svg using dgsCreateImage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
</feed>