SvgGetDocumentXML: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (Fix typo)
Line 2: Line 2:
{{Added feature/item|1.5.9|1.5.8|20979|Gets the underlying XML document from an SVG element.}}
{{Added feature/item|1.5.9|1.5.8|20979|Gets the underlying XML document from an SVG element.}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">svg svgGetDocumentXML ( svg svgElement )</syntaxhighlight>
<syntaxhighlight lang="lua">xmlnode svgGetDocumentXML ( svg svgElement )</syntaxhighlight>


===Required Arguments===
===Required Arguments===

Revision as of 09:56, 28 September 2021

Gets the underlying XML document from an SVG element.

Syntax

xmlnode svgGetDocumentXML ( svg svgElement )

Required Arguments

  • svgElement: The svg element you want to get the XML document of.

Returns

  • Returns an xmlnode if successful, false otherwise

Example

See the example for svgSetDocumentXML

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20979

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20979" />

See Also