<?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=Skyline.</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=Skyline."/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Skyline."/>
	<updated>2026-04-28T08:00:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource_Web_Access&amp;diff=32217</id>
		<title>Resource Web Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource_Web_Access&amp;diff=32217"/>
		<updated>2012-08-08T00:26:50Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi Theft Auto Server provides a web interface that resources can use in a variety of ways. This document's purpose is to explain what these ways are and how to go about using them.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
There are two key parts that make up this system. The first is a standard web server that allows web browsers to request pages and files you have in a resource. The second is a system for allowing web browsers to call functions you have exported from your resource.&lt;br /&gt;
&lt;br /&gt;
==Pages==&lt;br /&gt;
===Specifying a file in the meta===&lt;br /&gt;
You can specify in your resource's meta file that certain files are accessible through the web server. To do this, you add a line:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html src=&amp;quot;filename.ext&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
You can then access this file from your web browser by visiting: http://host:port/resourcename/filename.ext&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, on a locally hosted server using default http port with webmap started: http://127.0.0.1:22005/webmap/map.htm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Binary files===&lt;br /&gt;
Despite the misleading name, files specified using the html node can be of any type. If they are binary files (like images, zip files) then you need to specify this in the meta file, by adding ''raw=&amp;quot;true&amp;quot;'' to the ''html'' node. This means that the files are not preprocessed before being sent to the web browser.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html src=&amp;quot;image.gif&amp;quot; raw=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parsed files===&lt;br /&gt;
If a file is not specified in the meta file as &amp;quot;raw&amp;quot;, then it is passed through a pre-processor before it is returned to the client. This pre-processor works much like PHP or ASP, but uses LUA. You can embed standard MTA scripts within HTML pages, controlling the output. Almost all standard MTA functions work, plus a number of special [[Template:HTTP functions|HTTP Functions]], such as [[httpWrite]], a function that outputs text to the buffer.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        This resource is called &amp;lt;* httpWrite( getResourceName(getThisResource()) ) *&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a shorthand (in common with PHP and ASP) for this code, meaning that you can also write the above code as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        This resource is called &amp;lt;* = getResourceName(getThisResource()) *&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aside from HTTP functions, embedded Lua has access to the following environment variables that contain information about how the page was requested:&lt;br /&gt;
* table '''requestHeaders''': This is a table containing all the headers that were requested with the page. You can set returned headers using [[httpSetResponseHeader]]. &lt;br /&gt;
* table '''form''': This is a table containing all the form data submitted to the page using HTTP POST combined with any variables passed in the querystring with HTTP GET.&lt;br /&gt;
* table '''cookies''': This is a table of all the cookies. You can modify cookies using [[httpSetResponseCookie]].&lt;br /&gt;
* string '''hostname''': This is a string containing the IP address or hostname that requested the page.&lt;br /&gt;
* string '''url''': This is the URL of the page.&lt;br /&gt;
* account '''user''': This is the account of the current user.&lt;br /&gt;
&lt;br /&gt;
It's important to note that parsed files are run in a separate virtual machine from the rest of your resource's code. As such, if you want to call a function in your resource's main code, you need to export the function and use the [[call]] function from your parsed file.&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
You can specify that certain exported functions in your resource are able to be called from the HTTP interface. All the SDKs (listed below) allow you to call these functions from a remote location. &lt;br /&gt;
&lt;br /&gt;
To specify an exported http-accessible function, add the following to your meta.xml file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;export function='functionName' http='true' /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can code your function just as you would any normal function, returning as many values as you want, including tables and resources and most importantly elements. You ''cannot'' however return other 'userdata' values such as [[xmlnode|xmlnodes]] or functions.&lt;br /&gt;
&lt;br /&gt;
===Protocol===&lt;br /&gt;
{{note_box|You don't need to know this unless you're writing your own HTTP request code. You can just use one of the [[#SDK|SDKs listed below]].}}&lt;br /&gt;
&lt;br /&gt;
Calls are done by requesting ''&amp;lt;nowiki&amp;gt;http://&amp;lt;your IP&amp;gt;:&amp;lt;your port&amp;gt;/&amp;lt;resource_name&amp;gt;/call/&amp;lt;exported_function_name&amp;gt;&amp;lt;/nowiki&amp;gt;'' using HTTP POST. The body of the request should be a JSON array of the arguments for the function.&lt;br /&gt;
&lt;br /&gt;
The request will return a JSON array of the value(s) returned from the function as the HTTP response.&lt;br /&gt;
&lt;br /&gt;
The server supports HTTP Basic authentication and you can configure access via the ACL and the built-in accounts system.&lt;br /&gt;
&lt;br /&gt;
===Calls from the HTTP web interface===&lt;br /&gt;
Using calls is probably easiest from the web interface and can be done almost seamlessly.&lt;br /&gt;
&lt;br /&gt;
First, add this to your meta.xml file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;include resource=&amp;quot;ajax&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Secondly, add the following to the &amp;lt;head&amp;gt; section of the page you want to call from:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;* = exports.ajax:start(getResourceName(getThisResource())) *&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you can create a javascript block in your page and call your functions almost as if they were local. The only difference is that the calls are aysnchronous - you should specify a callback function as the last argument for your call. This is called when the function returns.&lt;br /&gt;
&lt;br /&gt;
Here's a simple example.&lt;br /&gt;
&lt;br /&gt;
'''meta.xml'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta&amp;gt;&lt;br /&gt;
   &amp;lt;include resource=&amp;quot;ajax&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;script src='code.lua' /&amp;gt;&lt;br /&gt;
   &amp;lt;html src='page.htm' default='true' /&amp;gt;&lt;br /&gt;
   &amp;lt;export function='showChatMessage' http='true' /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''code.lua'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showChatMessage ( message )&lt;br /&gt;
    outputChatBox ( message )&lt;br /&gt;
    return 5;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''page.htm'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;* = exports.ajax:start(getResourceName(getThisResource())) *&amp;gt;&lt;br /&gt;
        &amp;lt;script type='text/javascript'&amp;gt;&lt;br /&gt;
            function say() {&lt;br /&gt;
                var message = document.getElementById('message')&lt;br /&gt;
                showChatMessage ( message.value, &lt;br /&gt;
                    function ( number ) {&lt;br /&gt;
                        // the function has been called and returned something&lt;br /&gt;
                        message.value = &amp;quot;The function returned &amp;quot; + number;&lt;br /&gt;
                    }&lt;br /&gt;
                );&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;input type='text' id='message' /&amp;gt;&amp;lt;input type='button' value='say' onclick='say();' /&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see (fairly complex) examples of how this can be done in the resources ''resourcebrowser'', ''resourcemanager'' and ''webadmin''.&lt;br /&gt;
&lt;br /&gt;
==Securing the web interface==&lt;br /&gt;
The [[ACL]] has a number of rights that can affect what files can be accessed.&lt;br /&gt;
* general.http: If disabled, none of the http files can be accessed (except by game clients)&lt;br /&gt;
* resource.'''ResourceName''': If disabled, none of the files in the resource can be accessed&lt;br /&gt;
* resource.'''ResourceName'''.file.'''FileName''': If disabled, the file named cannot be accessed&lt;br /&gt;
* resource.'''ResourceName'''.function.'''FunctionName''': If disabled, the function cannot be called&lt;br /&gt;
These work as with other ACL rights - you can disable them for normal users and just enable them for Admin users, or any other group of users you wish.&lt;br /&gt;
&lt;br /&gt;
==SDK==&lt;br /&gt;
There are a number of so-called 'SDKs' available that allow you to interface with the server from other programming languages. With these you could (in theory) write whole gamemodes. In practice this is probably a bad idea, but it is useful for statistics and administration. The PHP SDK is the most developed version. Feel free to modify or create your own SDKs - if you do please send us a copy.&lt;br /&gt;
&lt;br /&gt;
* [[JavaSDK|Java SDK]]&lt;br /&gt;
* [[Javascript SDK]]&lt;br /&gt;
* [[Perl SDK]]&lt;br /&gt;
* [[PHP SDK]]&lt;br /&gt;
* [[CSharp SDK|C# SDK]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[callRemote]] - Allows game servers to call functions on PHP pages (with the PHP SDK) and on other game servers.&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Resource Web Access]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource_Web_Access&amp;diff=32216</id>
		<title>Resource Web Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource_Web_Access&amp;diff=32216"/>
		<updated>2012-08-08T00:26:03Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi Theft Auto Server provides a web interface that resources can use in a variety of ways. This document's purpose is to explain what these ways are and how to go about using them.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
There are two key parts that make up this system. The first is a standard web server that allows web browsers to request pages and files you have in a resource. The second is a system for allowing web browsers to call functions you have exported from your resource.&lt;br /&gt;
&lt;br /&gt;
==Pages==&lt;br /&gt;
===Specifying a file in the meta===&lt;br /&gt;
You can specify in your resource's meta file that certain files are accessible through the web server. To do this, you add a line:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html src=&amp;quot;filename.ext&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
You can then access this file from your web browser by visiting: http://host:port/resourcename/filename.ext&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, on a locally hosted server using default http port with webmap started: http://127.0.0.1:22005/webmap/map.htm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Binary files===&lt;br /&gt;
Despite the misleading name, files specified using the html node can be of any type. If they are binary files (like images, zip files) then you need to specify this in the meta file, by adding ''raw=&amp;quot;true&amp;quot;'' to the ''html'' node. This means that the files are not preprocessed before being sent to the web browser.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html src=&amp;quot;image.gif&amp;quot; raw=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parsed files===&lt;br /&gt;
If a file is not specified in the meta file as &amp;quot;raw&amp;quot;, then it is passed through a pre-processor before it is returned to the client. This pre-processor works much like PHP or ASP, but uses LUA. You can embed standard MTA scripts within HTML pages, controlling the output. Almost all standard MTA functions work, plus a number of special [[Template:HTTP functions|HTTP Functions]], such as [[httpWrite]], a function that outputs text to the buffer.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        This resource is called &amp;lt;* httpWrite( getResourceName(getThisResource()) ) *&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a shorthand (in common with PHP and ASP) for this code, meaning that you can also write the above code as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        This resource is called &amp;lt;* = getResourceName(getThisResource()) *&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aside from HTTP functions, embedded Lua has access to the following environment variables that contain information about how the page was requested:&lt;br /&gt;
* table '''requestHeaders''': This is a table containing all the headers that were requested with the page. You can set returned headers using [[httpSetResponseHeader]]. &lt;br /&gt;
* table '''form''': This is a table containing all the form data submitted to the page using HTTP POST combined with any variables passed in the querystring with HTTP GET.&lt;br /&gt;
* table '''cookies''': This is a table of all the cookies. You can modify cookies using [[httpSetResponseCookie]].&lt;br /&gt;
* string '''hostname''': This is a string containing the IP address or hostname that requested the page.&lt;br /&gt;
* string '''url''': This is the URL of the page.&lt;br /&gt;
* account '''user''': This is the account of the current user.&lt;br /&gt;
&lt;br /&gt;
It's important to note that parsed files are run in a separate virtual machine from the rest of your resource's code. As such, if you want to call a function in your resource's main code, you need to export the function and use the [[call]] function from your parsed file.&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
You can specify that certain exported functions in your resource are able to be called from the HTTP interface. All the SDKs (listed below) allow you to call these functions from a remote location. &lt;br /&gt;
&lt;br /&gt;
To specify an exported http-accessible function, add the following to your meta.xml file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;export function='functionName' http='true' /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can code your function just as you would any normal function, returning as many values as you want, including tables and resources and most importantly elements. You ''cannot'' however return other 'userdata' values such as [[xmlnode|xmlnodes]] or functions.&lt;br /&gt;
&lt;br /&gt;
===Protocol===&lt;br /&gt;
{{note_box|You don't need to know this unless you're writing your own HTTP request code. You can just use one of the [[#SDK|SDKs listed below]].}}&lt;br /&gt;
&lt;br /&gt;
Calls are done by requesting ''&amp;lt;nowiki&amp;gt;http://&amp;lt;your IP&amp;gt;:&amp;lt;your port&amp;gt;/&amp;lt;resource_name&amp;gt;/call/&amp;lt;exported_function_name&amp;gt;&amp;lt;/nowiki&amp;gt;'' using HTTP POST. The body of the request should be a JSON array of the arguments for the function.&lt;br /&gt;
&lt;br /&gt;
The request will return a JSON array of the value(s) returned from the function as the HTTP response.&lt;br /&gt;
&lt;br /&gt;
The server supports HTTP Basic authentication and you can configure access via the ACL and the built-in accounts system.&lt;br /&gt;
&lt;br /&gt;
===Calls from the HTTP web interface===&lt;br /&gt;
Using calls is probably easiest from the web interface and can be done almost seamlessly.&lt;br /&gt;
&lt;br /&gt;
First, add this to your meta.xml file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;include resource=&amp;quot;ajax&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Secondly, add the following to the &amp;lt;head&amp;gt; section of the page you want to call from:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;* = exports.ajax:start(getResourceName(getThisResource())) *&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you can create a javascript block in your page and call your functions almost as if they were local. The only difference is that the calls are aysnchronous - you should specify a callback function as the last argument for your call. This is called when the function returns.&lt;br /&gt;
&lt;br /&gt;
Here's a simple example.&lt;br /&gt;
&lt;br /&gt;
'''meta.xml'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta&amp;gt;&lt;br /&gt;
   &amp;lt;include resource=&amp;quot;ajax&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;script src='code.lua' /&amp;gt;&lt;br /&gt;
   &amp;lt;html src='page.htm' default='true' /&amp;gt;&lt;br /&gt;
   &amp;lt;export function='showChatMessage' http='true' /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''code.lua'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showChatMessage ( message )&lt;br /&gt;
    outputChatBox ( message )&lt;br /&gt;
    return 5;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''page.htm'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;* = exports.ajax:start(getResourceName(getThisResource())) *&amp;gt;&lt;br /&gt;
        &amp;lt;script type='text/javascript'&amp;gt;&lt;br /&gt;
            function say() {&lt;br /&gt;
                var message = document.getElementById('message')&lt;br /&gt;
                showChatMessage ( message.value, &lt;br /&gt;
                    function ( number ) {&lt;br /&gt;
                        // the function has been called and returned something&lt;br /&gt;
                        message.value = &amp;quot;The function returned &amp;quot; + number;&lt;br /&gt;
                    }&lt;br /&gt;
                );&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;input type='text' id='message' /&amp;gt;&amp;lt;input type='button' value='say' onclick='say();' /&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see (fairly complex) examples of how this can be done in the resources ''resourcebrowser'', ''resourcemanager'' and ''webadmin''.&lt;br /&gt;
&lt;br /&gt;
==Securing the web interface==&lt;br /&gt;
The [[ACL]] has a number of rights that can affect what files can be accessed.&lt;br /&gt;
* general.http: If disabled, none of the http files can be accessed (except by game clients)&lt;br /&gt;
* resource.'''ResourceName''': If disabled, none of the files in the resource can be accessed&lt;br /&gt;
* resource.'''ResourceName'''.file.'''FileName''': If disabled, the file named cannot be accessed&lt;br /&gt;
* resource.'''ResourceName'''.function.'''FunctionName''': If disabled, the function cannot be called&lt;br /&gt;
These work as with other ACL rights - you can disable them for normal users and just enable them for Admin users, or any other group of users you wish.&lt;br /&gt;
&lt;br /&gt;
==SDK==&lt;br /&gt;
There are a number of so-called 'SDKs' available that allow you to interface with the server from other programming languages. With these you could (in theory) write whole gamemodes. In practice this is probably a bad idea, but it is useful for statistics and administration. The PHP SDK is the most developed version. Feel free to modify or create your own SDKs - if you do please send us a copy.&lt;br /&gt;
&lt;br /&gt;
* [[JavaSDK]]&lt;br /&gt;
* [[Javascript SDK]]&lt;br /&gt;
* [[Perl SDK]]&lt;br /&gt;
* [[PHP SDK]]&lt;br /&gt;
* [[CSharp SDK|C# SDK]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[callRemote]] - Allows game servers to call functions on PHP pages (with the PHP SDK) and on other game servers.&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Resource Web Access]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=32193</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=32193"/>
		<updated>2012-08-07T15:06:48Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(); // Port will used in callJava (Changed)&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(); // callJava open ports&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
for k,v in ipairs(exports.jsdk:getConnections()) do&lt;br /&gt;
    exports.jsdk:callJava(v,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[http://forum.mtasa.com/viewtopic.php?f=148&amp;amp;t=46367 For more examples / tutorials]&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:ExamplaSDK.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [https://rapidshare.com/files/3674532513/JavaSDK.zip Download Version 0.2]&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=32188</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=32188"/>
		<updated>2012-08-07T02:44:48Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(); // Port will used in callJava (Changed)&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(); // callJava open ports&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
for k,v in ipairs(exports.jsdk:getConnections()) do&lt;br /&gt;
    exports.jsdk:callJava(v,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:ExamplaSDK.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [https://rapidshare.com/files/3674532513/JavaSDK.zip Download Version 0.2]&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31519</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31519"/>
		<updated>2012-06-20T17:16:41Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* com.mtasa.MTAException extends Exception */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(int port); // Port will used in callJava&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(2205); // callJava port :)&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
callJava(&amp;quot;127.0.0.1:2205&amp;quot;,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:ExamplaSDK.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31518</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31518"/>
		<updated>2012-06-20T16:52:54Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* More complex example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(int port); // Port will used in callJava&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''serverHTTPAddress:''' The server's HTTP address, in the form hostname:port (without &amp;quot;http://&amp;quot; prefixed)&lt;br /&gt;
* '''resourceName:''' The name of the resource that has exported the function you want to call&lt;br /&gt;
* '''functionName:''' The name of the function you want to call&lt;br /&gt;
* '''args:''' An array of arguments you wish to pass. Most basic types are accepted - String, Integer, Double, Boolean, null etc, as well as the special classes com.multitheftauto.Element and com.multitheftauto.Resource.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(2205); // callJava port :)&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
callJava(&amp;quot;127.0.0.1:2205&amp;quot;,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:ExamplaSDK.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31517</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31517"/>
		<updated>2012-06-20T16:51:57Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* More complex example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(int port); // Port will used in callJava&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''serverHTTPAddress:''' The server's HTTP address, in the form hostname:port (without &amp;quot;http://&amp;quot; prefixed)&lt;br /&gt;
* '''resourceName:''' The name of the resource that has exported the function you want to call&lt;br /&gt;
* '''functionName:''' The name of the function you want to call&lt;br /&gt;
* '''args:''' An array of arguments you wish to pass. Most basic types are accepted - String, Integer, Double, Boolean, null etc, as well as the special classes com.multitheftauto.Element and com.multitheftauto.Resource.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(2205); // callJava port :)&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
callJava(&amp;quot;127.0.0.1:2205&amp;quot;,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:Example.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:ExamplaSDK.png&amp;diff=31516</id>
		<title>File:ExamplaSDK.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:ExamplaSDK.png&amp;diff=31516"/>
		<updated>2012-06-20T16:51:48Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31515</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31515"/>
		<updated>2012-06-20T16:51:08Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* Contact */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(int port); // Port will used in callJava&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''serverHTTPAddress:''' The server's HTTP address, in the form hostname:port (without &amp;quot;http://&amp;quot; prefixed)&lt;br /&gt;
* '''resourceName:''' The name of the resource that has exported the function you want to call&lt;br /&gt;
* '''functionName:''' The name of the function you want to call&lt;br /&gt;
* '''args:''' An array of arguments you wish to pass. Most basic types are accepted - String, Integer, Double, Boolean, null etc, as well as the special classes com.multitheftauto.Element and com.multitheftauto.Resource.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(2205); // callJava port :)&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
callJava(&amp;quot;127.0.0.1:2205&amp;quot;,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:s18.postimage.org/a5lmsfvqh/Untitled.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31514</id>
		<title>JavaSDK</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=JavaSDK&amp;diff=31514"/>
		<updated>2012-06-20T16:50:16Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;This SDK allows you to call exported MTA functions from Java over HTTP.  ==Getting Started== To use it, you need to add library to your class-path. It's included in the zip file ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This SDK allows you to call exported MTA functions from Java over HTTP.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
To use it, you need to add library to your class-path.&lt;br /&gt;
It's included in the zip file below.&lt;br /&gt;
&lt;br /&gt;
To get started, copy modules/ml_sockets into your modules folder.And load that.&lt;br /&gt;
After that, copy resources/jsdk into your resources folder.And start that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Classes==&lt;br /&gt;
===com.mtasa.elements.Resource===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getName();&lt;br /&gt;
public com.mtasa.MTA getServer();&lt;br /&gt;
public void setServer(com.mtasa.MTA newServer);&lt;br /&gt;
public String getResourceInfo(String attr);&lt;br /&gt;
public boolean setResourceInfo(String attr, String newVal);&lt;br /&gt;
public boolean stopResource();&lt;br /&gt;
public boolean startResource();&lt;br /&gt;
public com.mtasa.LuaArgs call(String functionName,LuaArgs parameters);&lt;br /&gt;
public String toString();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public String getType();&lt;br /&gt;
public boolean is_a(Class&amp;lt;?&amp;gt; compareElement);&lt;br /&gt;
public boolean clearElementVisibleTo(Element visibleTo);&lt;br /&gt;
public Element cloneElement();&lt;br /&gt;
public boolean destroyElement();&lt;br /&gt;
public Point3D getElementPosition();&lt;br /&gt;
public boolean setElementPosition(double x,double y,double z);&lt;br /&gt;
public boolean setElementPosition(Point3D points);&lt;br /&gt;
public Point3D getElementRotation();&lt;br /&gt;
public boolean setElementRotation(double x,double y,double z);&lt;br /&gt;
public boolean setElementRotation(Point3D points);&lt;br /&gt;
public int getElementAlpha();&lt;br /&gt;
public boolean setElementAlpha(int alpha);&lt;br /&gt;
public float getElementHealth();&lt;br /&gt;
public boolean setElementHealth(float health);&lt;br /&gt;
public int getElementModel();&lt;br /&gt;
public boolean setElementModel(int model);&lt;br /&gt;
public int getElementInterior();&lt;br /&gt;
public boolean setElementInterior(int interior);&lt;br /&gt;
public int getElementDimension();&lt;br /&gt;
public boolean setElementDimension(int dimension);&lt;br /&gt;
public Point3D getElementVelocity();&lt;br /&gt;
public boolean setElementVelocity(double x,double y,double z);&lt;br /&gt;
public boolean setElementVelocity(Point3D points);&lt;br /&gt;
public boolean isElementVisibleTo(Element element);&lt;br /&gt;
public boolean setElementVisibleTo(Element element,boolean visible);&lt;br /&gt;
public boolean isElementFrozen();&lt;br /&gt;
public boolean setElementFrozen(boolean frozen);&lt;br /&gt;
public String getElementID();&lt;br /&gt;
public boolean setElementID(String new_id);&lt;br /&gt;
public String getElementData(String data_name);&lt;br /&gt;
public boolean setElementData(String data_name,String newVal);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Ped extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Cloth Types&lt;br /&gt;
public static final int CLOTH_SHIRT = 0;&lt;br /&gt;
public static final int CLOTH_HEAD = 1;&lt;br /&gt;
public static final int CLOTH_TROUSERS = 2;&lt;br /&gt;
public static final int CLOTH_SHOES = 3;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_UPPER_ARM = 4;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_LOWER_ARM = 5;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_UPPER_ARM = 6;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_LOWER_ARM = 7;&lt;br /&gt;
public static final int CLOTH_TATTOOS_BACK = 8;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LEFT_CHEST = 9;&lt;br /&gt;
public static final int CLOTH_TATTOOS_RIGHT_CHEST = 10;&lt;br /&gt;
public static final int CLOTH_TATTOOS_STOMACH = 11;&lt;br /&gt;
public static final int CLOTH_TATTOOS_LOWER_BACK = 12;&lt;br /&gt;
public static final int CLOTH_NECKLACE = 13;&lt;br /&gt;
public static final int CLOTH_WATCH = 14;&lt;br /&gt;
public static final int CLOTH_GLASSES = 15;&lt;br /&gt;
public static final int CLOTH_HAT = 16;&lt;br /&gt;
public static final int CLOTH_EXTRA = 17;&lt;br /&gt;
&lt;br /&gt;
// Fighting Styles&lt;br /&gt;
public static final int STYLE_STANDARD = 4;&lt;br /&gt;
public static final int STYLE_BOXING = 5;&lt;br /&gt;
public static final int STYLE_KUNG_FU = 6;&lt;br /&gt;
public static final int STYLE_KNEE_HEAD = 7;&lt;br /&gt;
public static final int STYLE_GRAB_KICK = 15;&lt;br /&gt;
public static final int STYLE_ELBOWS = 16;&lt;br /&gt;
&lt;br /&gt;
// Ped stats&lt;br /&gt;
public static final int PROGRESS_MADE = 0;&lt;br /&gt;
public static final int TOTAL_PROGRESS = 1;&lt;br /&gt;
public static final int LONGEST_BASKETBALL = 2;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_FOOT = 3;&lt;br /&gt;
public static final int DIST_CAR = 4;&lt;br /&gt;
public static final int DIST_BIKE = 5;&lt;br /&gt;
public static final int DIST_BOAT = 6;&lt;br /&gt;
public static final int DIST_GOLF_CART = 7;&lt;br /&gt;
public static final int DIST_HELICOPTOR = 8;&lt;br /&gt;
public static final int DIST_PLANE = 9;&lt;br /&gt;
public static final int LONGEST_WHEELIE_DIST = 10;&lt;br /&gt;
public static final int LONGEST_STOPPIE_DIST = 11;&lt;br /&gt;
public static final int LONGEST_2WHEEL_DIST = 12;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPON_BUDGET = 13;&lt;br /&gt;
public static final int FASHION_BUDGET = 14;&lt;br /&gt;
public static final int PROPERTY_BUDGET = 15;&lt;br /&gt;
public static final int SPRAYING_BUDGET = 16;&lt;br /&gt;
&lt;br /&gt;
public static final int LONGEST_WHEELIE_TIME = 17;&lt;br /&gt;
public static final int LONGEST_STOPPIE_TIME = 18;&lt;br /&gt;
public static final int LONGEST_2WHEEL_TIME = 19;&lt;br /&gt;
public static final int FOOD_BUDGET = 20;&lt;br /&gt;
&lt;br /&gt;
public static final int FAT = 21;&lt;br /&gt;
public static final int STAMINA = 22;&lt;br /&gt;
public static final int BODY_MUSCLE = 23;&lt;br /&gt;
public static final int MAX_HEALTH = 24;&lt;br /&gt;
public static final int SEX_APPEAL = 25;&lt;br /&gt;
&lt;br /&gt;
public static final int DIST_SWIMMING = 26;&lt;br /&gt;
public static final int DIST_CYCLE = 27;&lt;br /&gt;
public static final int DIST_TREADMILL = 28;&lt;br /&gt;
public static final int DIST_EXCERSISE_BIKE = 29;&lt;br /&gt;
public static final int TATTOO_BUDGET = 30;&lt;br /&gt;
public static final int HAIRDRESSING_BUDGET = 31;&lt;br /&gt;
public static final int PROSTITUTE_BUDGET = 33;&lt;br /&gt;
&lt;br /&gt;
public static final int MONEY_SPENT_GAMBLING = 35;&lt;br /&gt;
public static final int MONEY_MADE_PIMPING = 36;&lt;br /&gt;
public static final int MONEY_WON_GAMBLING = 37;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_WIN = 38;&lt;br /&gt;
public static final int BIGGEST_GAMBLING_LOSS = 39;&lt;br /&gt;
public static final int LARGEST_BURGLARY_SWAG = 40;&lt;br /&gt;
public static final int MONEY_MADE_BURGLARY = 41;&lt;br /&gt;
public static final int LONGEST_TREADMILL_TIME = 44;&lt;br /&gt;
public static final int LONGEST_EXCERSISE_BIKE_TIME = 45;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_BENCH_PRESS = 46;&lt;br /&gt;
public static final int HEAVIEST_WEIGHT_DUMBELLS = 47;&lt;br /&gt;
public static final int BEST_TIME_HOTRING = 48;&lt;br /&gt;
public static final int BEST_TIME_BMX = 49;&lt;br /&gt;
public static final int LONGEST_CHASE_TIME = 51;&lt;br /&gt;
public static final int LAST_CHASE_TIME = 52;&lt;br /&gt;
public static final int WAGE_BILL = 53;&lt;br /&gt;
public static final int STRIP_CLUB_BUDGET = 54;&lt;br /&gt;
public static final int CAR_MOD_BUDGET = 55;&lt;br /&gt;
public static final int TIME_SPENT_SHOPPING = 56;&lt;br /&gt;
public static final int TOTAL_SHOPPING_BUDGET = 62;&lt;br /&gt;
public static final int TIME_SPENT_UNDERWATER = 63;&lt;br /&gt;
&lt;br /&gt;
public static final int RESPECT_TOTAL = 64;&lt;br /&gt;
public static final int RESPECT_GIRLFRIEND = 65;&lt;br /&gt;
public static final int RESPECT_CLOTHES = 66;&lt;br /&gt;
public static final int RESPECT_FITNESS = 67;&lt;br /&gt;
public static final int RESPECT = 68;&lt;br /&gt;
&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SKILL = 69;&lt;br /&gt;
public static final int WEAPONTYPE_PISTOL_SILENCED_SKILL = 70;&lt;br /&gt;
public static final int WEAPONTYPE_DESERT_EAGLE_SKILL = 71;&lt;br /&gt;
public static final int WEAPONTYPE_SHOTGUN_SKILL = 72;&lt;br /&gt;
public static final int WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL = 73;&lt;br /&gt;
public static final int WEAPONTYPE_SPAS12_SHOTGUN_SKILL = 74;&lt;br /&gt;
public static final int WEAPONTYPE_MICRO_UZI_SKILL = 75;&lt;br /&gt;
public static final int WEAPONTYPE_MP5_SKILL = 76;&lt;br /&gt;
public static final int WEAPONTYPE_AK47_SKILL = 77;&lt;br /&gt;
public static final int WEAPONTYPE_M4_SKILL = 78;&lt;br /&gt;
public static final int WEAPONTYPE_SNIPERRIFLE_SKILL = 79;&lt;br /&gt;
public static final int SEX_APPEAL_CLOTHES = 80;&lt;br /&gt;
public static final int GAMBLING = 81;&lt;br /&gt;
&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_OTHERS = 120;&lt;br /&gt;
public static final int PEOPLE_KILLED_BY_PLAYER = 121;&lt;br /&gt;
public static final int CARS_DESTROYED = 122;&lt;br /&gt;
public static final int BOATS_DESTROYED = 123;&lt;br /&gt;
public static final int HELICOPTORS_DESTROYED = 124;&lt;br /&gt;
public static final int PROPERTY_DESTROYED = 125;&lt;br /&gt;
public static final int ROUNDS_FIRED = 126;&lt;br /&gt;
public static final int EXPLOSIVES_USED = 127;&lt;br /&gt;
public static final int BULLETS_HIT = 128;&lt;br /&gt;
public static final int TYRES_POPPED = 129;&lt;br /&gt;
public static final int HEADS_POPPED = 130;&lt;br /&gt;
public static final int WANTED_STARS_ATTAINED = 131;&lt;br /&gt;
public static final int WANTED_STARS_EVADED = 132;&lt;br /&gt;
public static final int TIMES_ARRESTED = 133;&lt;br /&gt;
public static final int DAYS_PASSED = 134;&lt;br /&gt;
public static final int TIMES_DIED = 135;&lt;br /&gt;
public static final int TIMES_SAVED = 136;&lt;br /&gt;
public static final int TIMES_CHEATED = 137;&lt;br /&gt;
public static final int SPRAYINGS = 138;&lt;br /&gt;
public static final int MAX_JUMP_DISTANCE = 139;&lt;br /&gt;
public static final int MAX_JUMP_HEIGHT = 140;&lt;br /&gt;
public static final int MAX_JUMP_FLIPS = 141;&lt;br /&gt;
public static final int MAX_JUMP_SPINS = 142;&lt;br /&gt;
public static final int BEST_STUNT = 143;&lt;br /&gt;
public static final int UNIQUE_JUMPS_FOUND = 144;&lt;br /&gt;
public static final int UNIQUE_JUMPS_DONE = 145;&lt;br /&gt;
public static final int MISSIONS_ATTEMPTED = 146;&lt;br /&gt;
public static final int MISSIONS_PASSED = 147;&lt;br /&gt;
public static final int TOTAL_MISSIONS = 148;&lt;br /&gt;
public static final int TAXI_MONEY_MADE = 149;&lt;br /&gt;
public static final int PASSENGERS_DELIVERED_IN_TAXI = 150;&lt;br /&gt;
public static final int LIVES_SAVED = 151;&lt;br /&gt;
public static final int CRIMINALS_CAUGHT = 152;&lt;br /&gt;
public static final int FIRES_EXTINGUISHED = 153;&lt;br /&gt;
public static final int PIZZAS_DELIVERED = 154;&lt;br /&gt;
public static final int ASSASSINATIONS = 155;&lt;br /&gt;
public static final int LATEST_DANCE_SCORE = 156;&lt;br /&gt;
public static final int VIGILANTE_LEVEL = 157;&lt;br /&gt;
public static final int AMBULANCE_LEVEL = 158;&lt;br /&gt;
public static final int FIREFIGHTER_LEVEL = 159;&lt;br /&gt;
public static final int DRIVING_SKILL = 160;&lt;br /&gt;
public static final int TRUCK_MISSIONS_PASSED = 161;&lt;br /&gt;
public static final int TRUCK_MONEY_MADE = 162;&lt;br /&gt;
public static final int RECRUITED_GANG_MEMBERS_KILLED = 163;&lt;br /&gt;
public static final int ARMOUR = 164;&lt;br /&gt;
public static final int ENERGY = 165;&lt;br /&gt;
public static final int PHOTOS_TAKEN = 166;&lt;br /&gt;
public static final int KILL_FRENZIES_ATTEMPTED = 167;&lt;br /&gt;
public static final int KILL_FRENZIES_PASSED = 168;&lt;br /&gt;
public static final int FLIGHT_TIME = 169;&lt;br /&gt;
public static final int TIMES_DROWNED = 170;&lt;br /&gt;
public static final int NUM_GIRLS_PIMPED = 171;&lt;br /&gt;
public static final int BEST_POSITION_HOTRING = 172;&lt;br /&gt;
public static final int FLIGHT_TIME_JETPACK = 173;&lt;br /&gt;
public static final int SHOOTING_RANGE_SCORE = 174;&lt;br /&gt;
public static final int VALET_CARS_PARKED = 175;&lt;br /&gt;
public static final int KILLS_SINCE_LAST_CHECKPOINT = 176;&lt;br /&gt;
public static final int TOTAL_LEGITIMATE_KILLS = 177;&lt;br /&gt;
public static final int BLOODRING_KILLS = 178;&lt;br /&gt;
public static final int BLOODRING_TIME = 179;&lt;br /&gt;
public static final int NO_MORE_HURRICANES = 180;&lt;br /&gt;
public static final int CITIES_PASSED = 181;&lt;br /&gt;
public static final int POLICE_BRIBES = 182;&lt;br /&gt;
public static final int CARS_STOLEN = 183;&lt;br /&gt;
public static final int CURRENT_GIRLFRIENDS = 184;&lt;br /&gt;
public static final int BAD_DATES = 185;&lt;br /&gt;
public static final int GIRLS_DATED = 186;&lt;br /&gt;
public static final int TIMES_SCORED_WITH_GIRL = 187;&lt;br /&gt;
public static final int DATES = 188;&lt;br /&gt;
public static final int GIRLS_DUMPED = 189;&lt;br /&gt;
public static final int TIMES_VISITED_PROSTITUTE = 190;&lt;br /&gt;
public static final int HOUSES_BURGLED = 191;&lt;br /&gt;
public static final int SAFES_CRACKED = 192;&lt;br /&gt;
public static final int STOLEN_ITEMS_SOLD = 194;&lt;br /&gt;
public static final int EIGHT_BALLS_IN_POOL = 195;&lt;br /&gt;
public static final int WINS_IN_POOL = 196;&lt;br /&gt;
public static final int LOSSES_IN_POOL = 197;&lt;br /&gt;
public static final int VISITS_TO_GYM = 198;&lt;br /&gt;
public static final int MEALS_EATEN = 200;&lt;br /&gt;
public static final int UNDERWATER_STAMINA = 225;&lt;br /&gt;
public static final int BIKE_SKILL = 229;&lt;br /&gt;
public static final int CYCLE_SKILL = 230;&lt;br /&gt;
// Functions:&lt;br /&gt;
public boolean addPedClothes(String texture,String model, int type);&lt;br /&gt;
public boolean doesPedHaveJetPack();&lt;br /&gt;
public String[] getPedClothes(int clothesType);&lt;br /&gt;
public int getPedFightingStyle();&lt;br /&gt;
public boolean setPedFightingStyle(int style);&lt;br /&gt;
public float getPedGravity();&lt;br /&gt;
public boolean setPedGravity(float style);&lt;br /&gt;
public int getPedSkin();&lt;br /&gt;
public boolean setPedSkin(int skin);&lt;br /&gt;
public float getPedRotation();&lt;br /&gt;
public boolean setPedRotation(float rot);&lt;br /&gt;
public boolean givePedJetpack();&lt;br /&gt;
public boolean removePedJetpack();&lt;br /&gt;
public Vehicle getPedOccupiedVehicle();&lt;br /&gt;
public float getPedStat(int stat);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Player extends Ped===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
All Ped Functions;&lt;br /&gt;
public String getPlayerName();&lt;br /&gt;
public String getPlayerName(boolean removecolorcodes);&lt;br /&gt;
public String getPlayerIP();&lt;br /&gt;
public String getPlayerSerial();&lt;br /&gt;
public int getPlayerMoney();&lt;br /&gt;
public int getPlayerPing();&lt;br /&gt;
public Team getPlayerTeam();&lt;br /&gt;
public int getPlayerWantedLevel();&lt;br /&gt;
public boolean givePlayerMoney(int money);&lt;br /&gt;
public boolean isPlayerMuted();&lt;br /&gt;
public boolean setPlayerMoney(int money);&lt;br /&gt;
public boolean setPlayerMuted(boolean muted);&lt;br /&gt;
public boolean setPlayerTeam(Team team);&lt;br /&gt;
public boolean spawnPlayer(double x,double y,double z);&lt;br /&gt;
public boolean spawnPlayer(Point3D p);&lt;br /&gt;
public boolean spawnPlayer(Point3D point,double rot,int skin,int interior,int dimension,Team team);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===com.mtasa.elements.Blip extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.CollisionShape extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.GTAObject extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Pickup extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.RadarArea extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Team extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.elements.Vehicle extends Element===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All Element Functions;&lt;br /&gt;
// Functions will be added soon..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.ElementFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public static String type_to_string(Class&amp;lt;? extends Element&amp;gt; type);&lt;br /&gt;
public &amp;lt;E extends Element&amp;gt; E[] getElementsByType(Class&amp;lt;E&amp;gt; type);&lt;br /&gt;
public Object[] getElementsByType(String type);&lt;br /&gt;
public Element createElement(String type);&lt;br /&gt;
public Element getElementByID(String id);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.Output===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public static final int LEVEL_CUSTOM = 0;&lt;br /&gt;
public static final int LEVEL_ERROR = 1;&lt;br /&gt;
public static final int LEVEL_WARNING = 2;&lt;br /&gt;
public static final int LEVEL_INFO = 3;&lt;br /&gt;
&lt;br /&gt;
// Functions:&lt;br /&gt;
&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public boolean outputChatBox(Object message);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b);&lt;br /&gt;
public boolean outputChatBox(Object message,Element toElement,int r,int g,int b,boolean colorcoded);&lt;br /&gt;
public boolean outputConsole(Object message);&lt;br /&gt;
public boolean outputConsole(Object message,Element toElement);&lt;br /&gt;
public boolean outputDebugString(Object message);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel);&lt;br /&gt;
public boolean outputDebugString(Object message,int dlevel,int r,int g,int b);&lt;br /&gt;
public boolean outputServerLog(Object message);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===com.mtasa.functions.PlayerFuncs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Player getPlayerFromName(String name);&lt;br /&gt;
public Player getPlayerFromNamePart(String name);&lt;br /&gt;
public Player[] getAlivePlayers();&lt;br /&gt;
public Player[] getDeadPlayers();&lt;br /&gt;
public Player getRandomPlayer();&lt;br /&gt;
public int getPlayerCount()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.LuaArgs extends java.util.List==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All list functions.So, you can use in generic for.&lt;br /&gt;
public MTA getServer();&lt;br /&gt;
public void setServer(MTA server);&lt;br /&gt;
public Element parseElement(int index);&lt;br /&gt;
public Player parsePlayer(int index);&lt;br /&gt;
public Pickup parsePickup(int index);&lt;br /&gt;
public Ped parsePed(int index);&lt;br /&gt;
public Blip parseBlip(int index);&lt;br /&gt;
public CollisionShape parseCollisionShape(int index);&lt;br /&gt;
public GTAObject parseGTAObject(int index);&lt;br /&gt;
public RadarArea parseRadarArea(int index);&lt;br /&gt;
public Team parseTeam(int index);&lt;br /&gt;
public Vehicle parseVehicle(int index) ;&lt;br /&gt;
public Resource parseResource(int index) ;&lt;br /&gt;
public String parseString(int index);&lt;br /&gt;
public Boolean parseBoolean(int index);&lt;br /&gt;
public Double parseDouble(int index);&lt;br /&gt;
public Float parseFloat(int index);&lt;br /&gt;
public Integer parseInt (int index);&lt;br /&gt;
public String toJson();&lt;br /&gt;
public void loadFromJSON(String json);&lt;br /&gt;
public Object[] jsonToObject(String json);&lt;br /&gt;
public static String toJson(Object o);&lt;br /&gt;
public static Object[] fromJson(String j);&lt;br /&gt;
public Object get(int index);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTA==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public Output out;&lt;br /&gt;
public Element rootElement;&lt;br /&gt;
public PlayerFuncs players;&lt;br /&gt;
public ElementFuncs elements;&lt;br /&gt;
public static final String RESOURCE = &amp;quot;jsdk&amp;quot;; // JavaSDK Resource Name.&lt;br /&gt;
&lt;br /&gt;
// Functions;&lt;br /&gt;
public void sockOpen(int port); // Port will used in callJava&lt;br /&gt;
public Element parseElement(Object o);&lt;br /&gt;
public Resource parseResource(Object o);&lt;br /&gt;
public void sockClose();&lt;br /&gt;
public int getSocketPort();&lt;br /&gt;
public LuaArgs call(String resource,String function,LuaArgs args); // Function must be exported and given http=&amp;quot;true&amp;quot;&lt;br /&gt;
public LuaArgs callFunction(String function,LuaArgs args); // This is for calling server-side functions.(etc:getElementByType)&lt;br /&gt;
public LuaArgs luaArg(Object i); // This is for only 1 parameter arguments.&lt;br /&gt;
// callJava Functions;&lt;br /&gt;
public void addInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void removeInputEvent(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
public void clearInputEvent(); // Only usable with callJava and sockOpen&lt;br /&gt;
public ArrayList&amp;lt;InputEvent&amp;gt; getInputEvents(InputEvent e); // Only usable with callJava and sockOpen&lt;br /&gt;
&lt;br /&gt;
// Getter-Setter;&lt;br /&gt;
public void setHost(String host);&lt;br /&gt;
public String getHost();&lt;br /&gt;
public void setPort(int port);&lt;br /&gt;
public int getPort();&lt;br /&gt;
public void setUsername(String username);&lt;br /&gt;
public String getUsername();&lt;br /&gt;
public void setPassword(String password);&lt;br /&gt;
public String getPassword();&lt;br /&gt;
public String getCharset();&lt;br /&gt;
public void setCharset(String charset);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.InputEvent( Interface )==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
public void onAction(LuaArgs args, String input) throws MTAException&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==com.mtasa.MTAException extends Exception==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
All exception functions;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''serverHTTPAddress:''' The server's HTTP address, in the form hostname:port (without &amp;quot;http://&amp;quot; prefixed)&lt;br /&gt;
* '''resourceName:''' The name of the resource that has exported the function you want to call&lt;br /&gt;
* '''functionName:''' The name of the function you want to call&lt;br /&gt;
* '''args:''' An array of arguments you wish to pass. Most basic types are accepted - String, Integer, Double, Boolean, null etc, as well as the special classes com.multitheftauto.Element and com.multitheftauto.Resource.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
MTA server = new MTA(&amp;quot;localhost&amp;quot;,22005,&amp;quot;admin&amp;quot;,&amp;quot;12345&amp;quot;); // Sweet, we are creating a new instance and connection.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 1: */&lt;br /&gt;
Player[] players = server.elements.getElementsByType(Player.class); // ElementFuncs deployed in server.elements :)&lt;br /&gt;
server.out.outputChatBox(&amp;quot;There are &amp;quot;+players.length+&amp;quot; players&amp;quot;,server.rootElement,180,25,25,false); // You don't need getRootElement(), it's deployed in server.rootElement variable.&lt;br /&gt;
LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;getThisResource&amp;quot;,null); // We are calling getThisResource in rcon bot.It's exported :)&lt;br /&gt;
Resource thisRes = ret.parseResource(0); // Now, we parsed argument to Resource object.&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	server.out.outputChatBox(&amp;quot;&amp;lt;PM&amp;gt; JavaSDK: #0055FFHello Sweety&amp;quot;,playerRancho,255,255,255,true);&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 2 : */&lt;br /&gt;
Ped[] peds = server.elements.getElementsByType(Ped.class); // We deployed Peds in the peds variable.&lt;br /&gt;
for (Ped ped: peds){ // Generic for, (foreach)&lt;br /&gt;
	if (ped.doesPedHaveJetPack()) // If ped has a jetpack&lt;br /&gt;
		ped.removePedJetpack(); // remove him jetpack&lt;br /&gt;
	else // else&lt;br /&gt;
		ped.givePedJetpack(); // give him jetpack &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 3: */&lt;br /&gt;
Element[] myElements = server.elements.getElementsByType(&amp;quot;myElement&amp;quot;); // Now we get elements by the string type&lt;br /&gt;
// To do :)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 4: for callJava */&lt;br /&gt;
server.sockOpen(2205); // callJava port :)&lt;br /&gt;
server.addInputEvent(new InputEvent(){&lt;br /&gt;
	@Override&lt;br /&gt;
	public void onAction(LuaArgs args, String input) throws MTAException{&lt;br /&gt;
		String event = args.parseString(0); // Argumant 1 :) It's not default argument :)&lt;br /&gt;
		if (event.equals(&amp;quot;onMyCall&amp;quot;)){&lt;br /&gt;
			System.out.println(&amp;quot;onMyCall: &amp;quot;+args.parseString(1));&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
// lua file:&lt;br /&gt;
callJava(&amp;quot;127.0.0.1:2205&amp;quot;,&amp;quot;onMyCall&amp;quot;,&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
/* Example 5: is_a */&lt;br /&gt;
Player playerRancho = server.players.getPlayerFromName(&amp;quot;Rancho&amp;quot;); // We're getting player named Rancho, if he has a colorcode. We must add this &lt;br /&gt;
&lt;br /&gt;
if (playerRancho != null){ // If playerRancho exists&lt;br /&gt;
	LuaArgs myCallbackargs = new LuaArgs(server); // create new instance&lt;br /&gt;
	myCallbackargs.add(playerRancho); // add a new argument&lt;br /&gt;
	myCallbackargs.add(&amp;quot;How are u?&amp;quot;); // add a new argument&lt;br /&gt;
	LuaArgs ret = server.call(&amp;quot;rcon&amp;quot;,&amp;quot;returnElement&amp;quot;,myCallbackargs); // call the howAre function into rcon resource, and send the 2 parameter :) myCallbackargs&lt;br /&gt;
	for (Object o: ret){ // generic for returns&lt;br /&gt;
		Element e = (Element)o;&lt;br /&gt;
		server.out.outputServerLog(&amp;quot;Returned value is a player?: &amp;quot;+o.is_a(Player.class));&lt;br /&gt;
	}&lt;br /&gt;
}else{ // else&lt;br /&gt;
	server.out.outputDebugString(&amp;quot;There is no named player RANCHO!&amp;quot;);&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More complex example==&lt;br /&gt;
[[Image:s18.postimage.org/a5lmsfvqh/Untitled.png]]&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* You cannot currently compare two Resource or Element objects that you expect to be identical - you need to do a &amp;quot;deep compare&amp;quot;, comparing either the &amp;quot;id&amp;quot; fields or the &amp;quot;name&amp;quot; fields.&lt;br /&gt;
* The zip contains src, and javadoc&lt;br /&gt;
==Download==&lt;br /&gt;
* [http://www.solidfiles.com/d/7713c8510b/ Download Version 0.1]&lt;br /&gt;
==Contact==&lt;br /&gt;
If you have any questions/suggestions you can contact author on MTA forum or IRC '''#mta''' and '''#mtatools''' channels hosted on GTANet.com server.&lt;br /&gt;
*[http://forum.mtasa.com/memberlist.php?mode=viewprofile&amp;amp;u=51246 Skyline (laserlaser)]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31420</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31420"/>
		<updated>2012-06-14T21:51:47Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.4.0'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the all things into your '''&amp;quot;resources&amp;quot;''' folder. dxGUI has exported functions, that make scripting GUI cleaner.&lt;br /&gt;
You can also download the '''&amp;quot;dxGUI Examples&amp;quot;''' from the MTA:SA Forums.&lt;br /&gt;
==Notice==&lt;br /&gt;
The exported functions has some extra parameters.To see them, you should go to the MTA:SA Forums.&lt;br /&gt;
&lt;br /&gt;
{{dxGUI_Functions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31418</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31418"/>
		<updated>2012-06-14T21:44:42Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GUI Functions=&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
===Buttons===&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
===Checkboxes===&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
===Labels===&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
===Progressbars===&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
===Radio buttons===&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
===Scrollbars===&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
===Spinners===&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
===Static Images===&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
===Windows===&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
===Listboxes===&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
=Events=&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31417</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31417"/>
		<updated>2012-06-14T21:44:21Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GUI Functions=&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
====Buttons====&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
===Checkboxes===&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
===Labels===&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
===Progressbars===&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
===Radio buttons===&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
===Scrollbars===&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
===Spinners===&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
===Static Images===&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
===Windows===&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
===Listboxes===&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
=Events=&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31416</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31416"/>
		<updated>2012-06-14T21:43:13Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GUI Functions=&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
===Buttons===&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxes==&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxes==&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
=Events=&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31415</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31415"/>
		<updated>2012-06-14T21:42:10Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.4.0'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
{{dxGUI_Functions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31414</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31414"/>
		<updated>2012-06-14T21:41:53Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GUI Functions=&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
==Buttons==&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxes==&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxes==&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
=Events=&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31413</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31413"/>
		<updated>2012-06-14T21:41:35Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
{{dxGUI_Functions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31412</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31412"/>
		<updated>2012-06-14T21:41:17Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_Functions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31411</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31411"/>
		<updated>2012-06-14T21:40:57Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_Functions}}&lt;br /&gt;
&lt;br /&gt;
=Events=&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31410</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31410"/>
		<updated>2012-06-14T21:40:33Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GUI Functions=&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
==Buttons==&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxes==&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxes==&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
===Events===&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31409</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31409"/>
		<updated>2012-06-14T21:40:07Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{dxGUI_Functions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31408</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31408"/>
		<updated>2012-06-14T21:39:38Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===GUI Functions===&lt;br /&gt;
*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
==Buttons==&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxes==&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxes==&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;br /&gt;
===Events===&lt;br /&gt;
*[[dxGUI/onClientDXClick|onClientDXClick]]&lt;br /&gt;
*[[dxGUI/onClientDXDoubleClick|onClientDXDoubleClick]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseEnter|onClientDXMouseEnter]]&lt;br /&gt;
*[[dxGUI/onClientDXMouseLeave|onClientDXMouseLeave]]&lt;br /&gt;
*[[dxGUI/onClientDXChanged|onClientDXChanged]]&lt;br /&gt;
*[[dxGUI/onClientDXPropertyChange|onClientDXPropertyChange]]&lt;br /&gt;
*[[dxGUI/onClientDXScroll|onClientDXScroll]]&lt;br /&gt;
*[[dxGUI/onClientDXSpin|onClientDXSpin]]&lt;br /&gt;
*[[dxGUI/onClientDXMove|onClientDXMove]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroy|onClientDXDestroy]]&lt;br /&gt;
*[[dxGUI/onClientDXDestroyAll|onClientDXDestroyAll]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31407</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31407"/>
		<updated>2012-06-14T21:37:26Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
==Buttons==&lt;br /&gt;
*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxs==&lt;br /&gt;
*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxs==&lt;br /&gt;
*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
*[[dxGUI/dxListRender|dxListRender]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31406</id>
		<title>Template:DxGUI Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DxGUI_Functions&amp;diff=31406"/>
		<updated>2012-06-14T21:36:58Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;	*dxCreateRootPane 	*dxGetRootPane 	*dxRefreshThemes 	*dxGetTheme 	*[[dxGUI/dxGe...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	*[[dxGUI/dxCreateRootPane|dxCreateRootPane]]&lt;br /&gt;
	*[[dxGUI/dxGetRootPane|dxGetRootPane]]&lt;br /&gt;
	*[[dxGUI/dxRefreshThemes|dxRefreshThemes]]&lt;br /&gt;
	*[[dxGUI/dxGetTheme|dxGetTheme]]&lt;br /&gt;
	*[[dxGUI/dxGetDefaultTheme|dxGetDefaultTheme]]&lt;br /&gt;
	*[[dxGUI/dxGetPosition|dxGetPosition]]&lt;br /&gt;
	*[[dxGUI/dxGetSize|dxGetSize]]&lt;br /&gt;
	*[[dxGUI/dxGetVisible|dxGetVisible]]&lt;br /&gt;
	*[[dxGUI/dxGetElementTheme|dxGetElementTheme]]&lt;br /&gt;
	*[[dxGUI/dxGetFont|dxGetFont]]&lt;br /&gt;
	*[[dxGUI/dxGetColor|dxGetColor]]&lt;br /&gt;
	*[[dxGUI/dxGetColorCoded|dxGetColorCoded]]&lt;br /&gt;
	*[[dxGUI/dxGetText|dxGetText]]&lt;br /&gt;
	*[[dxGUI/dxGetAlpha|dxGetAlpha]]&lt;br /&gt;
	*[[dxGUI/dxSetPosition|dxSetPosition]]&lt;br /&gt;
	*[[dxGUI/dxSetSize|dxSetSize]]&lt;br /&gt;
	*[[dxGUI/dxSetVisible|dxSetVisible]]&lt;br /&gt;
	*[[dxGUI/dxSetElementTheme|dxSetElementTheme]]&lt;br /&gt;
	*[[dxGUI/dxSetFont|dxSetFont]]&lt;br /&gt;
	*[[dxGUI/dxSetColor|dxSetColor]]&lt;br /&gt;
	*[[dxGUI/dxSetColorCoded|dxSetColorCoded]]&lt;br /&gt;
	*[[dxGUI/dxSetText|dxSetText]]&lt;br /&gt;
	*[[dxGUI/dxSetAlpha|dxSetAlpha]]&lt;br /&gt;
	*[[dxGUI/dxMove|dxMove]]&lt;br /&gt;
	*[[dxGUI/dxRefreshStates|dxRefreshStates]]&lt;br /&gt;
	*[[dxGUI/dxRefreshClickStates|dxRefreshClickStates]]&lt;br /&gt;
	*[[dxGUI/guiAttachToDirectX|guiAttachToDirectX]]&lt;br /&gt;
	*[[dxGUI/dxGetAlwaysOnTop|dxGetAlwaysOnTop]]&lt;br /&gt;
	*[[dxGUI/dxSetAlwaysOnTop|dxSetAlwaysOnTop]]&lt;br /&gt;
	*[[dxGUI/dxGetZOrder|dxGetZOrder]]&lt;br /&gt;
	*[[dxGUI/dxSetZOrder|dxSetZOrder]]&lt;br /&gt;
	*[[dxGUI/dxBringToFront|dxBringToFront]]&lt;br /&gt;
	*[[dxGUI/dxMoveToBack|dxMoveToBack]]&lt;br /&gt;
	*[[dxGUI/dxDestroyElement|dxDestroyElement]]&lt;br /&gt;
	*[[dxGUI/dxDestroyElements|dxDestroyElements]]&lt;br /&gt;
==Buttons==&lt;br /&gt;
	*[[dxGUI/dxCreateButton|dxCreateButton]]&lt;br /&gt;
	*[[dxGUI/dxButtonRender|dxButtonRender]]&lt;br /&gt;
==Checkboxs==&lt;br /&gt;
	*[[dxGUI/dxCreateCheckBox|dxCreateCheckBox]]&lt;br /&gt;
	*[[dxGUI/dxCheckBoxGetSelected|dxCheckBoxGetSelected]]&lt;br /&gt;
	*[[dxGUI/dxCheckBoxSetSelected|dxCheckBoxSetSelected]]&lt;br /&gt;
	*[[dxGUI/dxCheckBoxRender|dxCheckBoxRender]]&lt;br /&gt;
==Labels==&lt;br /&gt;
	*[[dxGUI/dxCreateLabel|dxCreateLabel]]&lt;br /&gt;
	*[[dxGUI/dxLabelGetScale|dxLabelGetScale]]&lt;br /&gt;
	*[[dxGUI/dxLabelGetHorizontalAlign|dxLabelGetHorizontalAlign]]&lt;br /&gt;
	*[[dxGUI/dxLabelGetVerticalAlign|dxLabelGetVerticalAlign]]&lt;br /&gt;
	*[[dxGUI/dxLabelSetScale|dxLabelSetScale]]&lt;br /&gt;
	*[[dxGUI/dxLabelSetHorizontalAlign|dxLabelSetHorizontalAlign]]&lt;br /&gt;
	*[[dxGUI/dxLabelSetVerticalAlign|dxLabelSetVerticalAlign]]&lt;br /&gt;
	*[[dxGUI/dxLabelRender|dxLabelRender]]&lt;br /&gt;
==Progressbars==&lt;br /&gt;
	*[[dxGUI/dxCreateProgressBar|dxCreateProgressBar]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarGetProgress|dxProgressBarGetProgress]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarGetProgressPercent|dxProgressBarGetProgressPercent]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarGetMaxProgress|dxProgressBarGetMaxProgress]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarSetProgress|dxProgressBarSetProgress]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarSetProgressPercent|dxProgressBarSetProgressPercent]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarSetMaxProgress|dxProgressBarSetMaxProgress]]&lt;br /&gt;
	*[[dxGUI/dxProgressBarRender|dxProgressBarRender]]&lt;br /&gt;
==Radio buttons==&lt;br /&gt;
	*[[dxGUI/dxCreateRadioButton|dxCreateRadioButton]]&lt;br /&gt;
	*[[dxGUI/dxRadioButtonGetSelected|dxRadioButtonGetSelected]]&lt;br /&gt;
	*[[dxGUI/dxRadioButtonGetGroup|dxRadioButtonGetGroup]]&lt;br /&gt;
	*[[dxGUI/dxRadioButtonSetSelected|dxRadioButtonSetSelected]]&lt;br /&gt;
	*[[dxGUI/dxRadioButtonSetGroup|dxRadioButtonSetGroup]]&lt;br /&gt;
	*[[dxGUI/dxRadioButtonRender|dxRadioButtonRender]]&lt;br /&gt;
==Scrollbars==&lt;br /&gt;
	*[[dxGUI/dxCreateScrollBar|dxCreateScrollBar]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarGetProgress|dxScrollBarGetProgress]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarGetProgressPercent|dxScrollBarGetProgressPercent]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarGetMaxProgress|dxScrollBarGetMaxProgress]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarSetProgress|dxScrollBarSetProgress]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarSetProgressPercent|dxScrollBarSetProgressPercent]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarSetMaxProgress|dxScrollBarSetMaxProgress]]&lt;br /&gt;
	*[[dxGUI/dxScrollBarRender|dxScrollBarRender]]&lt;br /&gt;
==Spinners==&lt;br /&gt;
	*[[dxGUI/dxCreateSpinner|dxCreateSpinner]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerGetPosition|dxSpinnerGetPosition]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerGetMin|dxSpinnerGetMin]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerSetPosition|dxSpinnerSetPosition]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerSetMin|dxSpinnerSetMin]]&lt;br /&gt;
	*[[dxGUI/dxSpinnerRender|dxSpinnerRender]]&lt;br /&gt;
==Static Images==&lt;br /&gt;
	*[[dxGUI/dxCreateStaticImage|dxCreateStaticImage]]&lt;br /&gt;
	*[[dxGUI/dxCreateStaticImageSection|dxCreateStaticImageSection]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageGetLoadedImage|dxStaticImageGetLoadedImage]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageGetSection|dxStaticImageGetSection]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageGetRotation|dxStaticImageGetRotation]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageLoadImage|dxStaticImageLoadImage]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageSetSection|dxStaticImageSetSection]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageSetRotation|dxStaticImageSetRotation]]&lt;br /&gt;
	*[[dxGUI/dxStaticImageRender|dxStaticImageRender]]&lt;br /&gt;
==Windows==&lt;br /&gt;
	*[[dxGUI/dxCreateWindow|dxCreateWindow]]&lt;br /&gt;
	*[[dxGUI/dxWindowGetTitlePosition|dxWindowGetTitlePosition]]&lt;br /&gt;
	*[[dxGUI/dxWindowGetMovable|dxWindowGetMovable]]&lt;br /&gt;
	*[[dxGUI/dxWindowIsMoving|dxWindowIsMoving]]&lt;br /&gt;
	*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
	*[[dxGUI/dxWindowSetTitlePosition|dxWindowSetTitlePosition]]&lt;br /&gt;
	*[[dxGUI/dxWindowSetMovable|dxWindowSetMovable]]&lt;br /&gt;
	*[[dxGUI/dxWindowGetTitleVisible|dxWindowGetTitleVisible]]&lt;br /&gt;
	*[[dxGUI/dxWindowGetPostGUI|dxWindowGetPostGUI]]&lt;br /&gt;
	*[[dxGUI/dxWindowSetPostGUI|dxWindowSetPostGUI]]&lt;br /&gt;
	*[[dxGUI/dxWindowRender|dxWindowRender]]&lt;br /&gt;
	*[[dxGUI/dxWindowMoveControl|dxWindowMoveControl]]&lt;br /&gt;
	*[[dxGUI/dxWindowComponentRender|dxWindowComponentRender]]&lt;br /&gt;
==Listboxs==&lt;br /&gt;
	*[[dxGUI/dxCreateList|dxCreateList]]&lt;br /&gt;
	*[[dxGUI/dxListClear|dxListClear]]&lt;br /&gt;
	*[[dxGUI/dxListGetSelectedItem|dxListGetSelectedItem]]&lt;br /&gt;
	*[[dxGUI/dxListSetSelectedItem|dxListSetSelectedItem]]&lt;br /&gt;
	*[[dxGUI/dxListGetItemCount|dxListGetItemCount]]&lt;br /&gt;
	*[[dxGUI/dxListRemoveRow|dxListRemoveRow]]&lt;br /&gt;
	*[[dxGUI/dxListAddRow|dxListAddRow]]&lt;br /&gt;
	*[[dxGUI/dxListSetTitleShow|dxListSetTitleShow]]&lt;br /&gt;
	*[[dxGUI/dxListGetTitleShow|dxListGetTitleShow]]&lt;br /&gt;
	*[[dxGUI/dxListRender|dxListRender]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31405</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31405"/>
		<updated>2012-06-14T21:36:26Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_Functions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31392</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31392"/>
		<updated>2012-06-13T02:19:13Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.9'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Labels===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Scroll Bars===&lt;br /&gt;
{{dxGUI_ScrollbarFunctions}}&lt;br /&gt;
===Listboxes(beta)===&lt;br /&gt;
{{dxGUI_ListboxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Spinners(beta)===&lt;br /&gt;
{{dxGUI_SpinnerFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31387</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31387"/>
		<updated>2012-06-13T01:40:00Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.8'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Labels===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Scroll Bars===&lt;br /&gt;
{{dxGUI_ScrollbarFunctions}}&lt;br /&gt;
===Listboxes(beta)===&lt;br /&gt;
{{dxGUI_ListboxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Spinners(beta)===&lt;br /&gt;
{{dxGUI_SpinnerFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31375</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31375"/>
		<updated>2012-06-11T13:42:25Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.6'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Scroll Bars===&lt;br /&gt;
{{dxGUI_ScrollbarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Spinners(beta)===&lt;br /&gt;
{{dxGUI_SpinnerFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31368</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31368"/>
		<updated>2012-06-10T22:43:34Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
'''Current Version: 1.3.5'''&lt;br /&gt;
&lt;br /&gt;
This page lists all the dxGUI framework functions and events. This will only work with [http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871 this resource.]&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline (a.k.a laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI was made to create an enhanced, extensible user interface whilst keeping it user friendly. The GUI can also be designed with skins to make sure your users get the best content and design in your server.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste the folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use this custom GUI in. Then just copy the lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml.&lt;br /&gt;
dxGUI is not actually a resource that has exported functions, it just includes all the classes that make scripting GUI cleaner.&lt;br /&gt;
&lt;br /&gt;
You can also start this resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;''' to test it.&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Scroll Bars===&lt;br /&gt;
{{dxGUI_ScrollbarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31256</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31256"/>
		<updated>2012-05-28T17:27:48Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline. (as known as laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI made creating GUI interacting with users and user-friendly designs.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use script in. Then just copy specified lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml. As you know dxGUI is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).&lt;br /&gt;
&lt;br /&gt;
You can also start dxGUI resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;'''&lt;br /&gt;
==Current Version==&lt;br /&gt;
The dxGUI resource's current version is : '''1.3.4'''&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31250</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31250"/>
		<updated>2012-05-27T21:58:56Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline. (as known as laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI made creating GUI interacting with users and user-friendly designs.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use script in. Then just copy specified lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml. As you know dxGUI is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).&lt;br /&gt;
&lt;br /&gt;
You can also start dxGUI resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;'''&lt;br /&gt;
==Current Version==&lt;br /&gt;
The dxGUI resource's current version is : '''1.3.3'''&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31241</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31241"/>
		<updated>2012-05-27T14:05:43Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline. (as known as laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI made creating GUI interacting with users and user-friendly designs.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use script in. Then just copy specified lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml. As you know dxGUI is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).&lt;br /&gt;
&lt;br /&gt;
You can also start dxGUI resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;'''&lt;br /&gt;
==Current Version==&lt;br /&gt;
The dxGUI resource's current version is : '''1.3.2'''&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31230</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31230"/>
		<updated>2012-05-26T17:22:12Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline. (as known as laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI made creating GUI interacting with users and user-friendly designs.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use script in. Then just copy specified lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml. As you know dxGUI is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).&lt;br /&gt;
&lt;br /&gt;
You can also start dxGUI resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
{{dxGUI_Events}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetPosition&amp;diff=31215</id>
		<title>DxGUI/dxGetPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetPosition&amp;diff=31215"/>
		<updated>2012-05-25T20:25:15Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to get dxElement position.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float x, float y (float Title:x,float Title:y) dxGetPosition (element dxElement, [bool relative = false])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dxElement:''' A dxGUI element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Only include this section below if there are optional arguments --&amp;gt;&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', they send relative x,y,(Title:x,Title:y) positions.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
*'''x''': An element x position&lt;br /&gt;
*'''y''': An element y position&lt;br /&gt;
*'''Title:x''': An element titlebar x position.(It's for only dxWindows)&lt;br /&gt;
*'''Title:y''': An element titlebar y position.(It's for only dxWindows)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example gets window position and multiply with 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local x,y = dxGetPosition(ourWindow)&lt;br /&gt;
dxSetPosition(ourWindow,x*2,y*2) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetPosition&amp;diff=31214</id>
		<title>DxGUI/dxGetPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetPosition&amp;diff=31214"/>
		<updated>2012-05-25T20:24:30Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   You can use this function to get dxElement position.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; x,y (Title:x,Title:...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to get dxElement position.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x,y (Title:x,Title:y) dxElement ( dxElement element, [bool relative = false])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''element:''' A dxGUI element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Only include this section below if there are optional arguments --&amp;gt;&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', they send relative x,y,(Title:x,Title:y) positions.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
*'''x''': An element x position&lt;br /&gt;
*'''y''': An element y position&lt;br /&gt;
*'''Title:x''': An element titlebar x position.(It's for only dxWindows)&lt;br /&gt;
*'''Title:y''': An element titlebar y position.(It's for only dxWindows)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example gets window position and multiply with 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local x,y = dxGetPosition(ourWindow)&lt;br /&gt;
dxSetPosition(ourWindow,x*2,y*2) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetDefaultTheme&amp;diff=31213</id>
		<title>DxGUI/dxGetDefaultTheme</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetDefaultTheme&amp;diff=31213"/>
		<updated>2012-05-25T20:14:43Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   You can use this function to get default theme.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; dxTheme dxGetDefaultThem...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to get default theme.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxTheme dxGetDefaultTheme ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxTheme if it was successfully got which then can use other methods, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example create a window based on an orange theme.And create a button based on default theme.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local orange = dxGetTheme(&amp;quot;Orange&amp;quot;)&lt;br /&gt;
dxCreateWindow(....,orange)&lt;br /&gt;
local default = dxGetDefaultTheme()&lt;br /&gt;
dxCreateButton(....,default)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetTheme&amp;diff=31212</id>
		<title>DxGUI/dxGetTheme</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetTheme&amp;diff=31212"/>
		<updated>2012-05-25T20:11:30Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   You can use this function to get theme by name.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; dxTheme dxGetTheme ( the...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to get theme by name.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxTheme dxGetTheme ( themeName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''themeName:''' A name of the theme in '''themes.xml'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxTheme if it is exists, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a window based on orange theme.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local theme = dxGetTheme(&amp;quot;Orange&amp;quot;)&lt;br /&gt;
dxCreateWindow(....,theme)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxRefreshThemes&amp;diff=31211</id>
		<title>DxGUI/dxRefreshThemes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxRefreshThemes&amp;diff=31211"/>
		<updated>2012-05-25T20:06:41Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to refresh themes if you add new theme when script is the running.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void dxRefreshThemes ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxRefreshThemes&amp;diff=31210</id>
		<title>DxGUI/dxRefreshThemes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxRefreshThemes&amp;diff=31210"/>
		<updated>2012-05-25T20:06:12Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   You can use this function to refresh themes if you add new theme when running the script.  ==Synt...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this function to refresh themes if you add new theme when running the script.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
void dxRefreshThemes ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetRootPane&amp;diff=31209</id>
		<title>DxGUI/dxGetRootPane</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxGetRootPane&amp;diff=31209"/>
		<updated>2012-05-25T20:04:39Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   You can use this method to get created root pane.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; dxRootPane dxGetRootPa...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
You can use this method to get created root pane.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxRootPane dxGetRootPane()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxRootPane.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[dxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31208</id>
		<title>DxGUI/dxCreateRootPane</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31208"/>
		<updated>2012-05-25T19:59:32Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
This function allows creation of a root pane.Root pane contains the all elements.There can be only 1 root pane. (It called by script automatically.)&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxRootPane dxCreateRootPane ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxCreateRootPane if it was successfully created which then can make childs, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[DxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31207</id>
		<title>DxGUI/dxCreateRootPane</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31207"/>
		<updated>2012-05-25T19:59:13Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
This function allows creation of a root pane.Root pane contains the all elements.There can be only 1 root pane. (It called by script automatically.)&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxRootPane dxCreateRootPane ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxCreateRootPane if it was successfully created which then can make childs, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[http://wiki.multitheftauto.com/wiki/DxGUI/|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31206</id>
		<title>DxGUI/dxCreateRootPane</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGUI/dxCreateRootPane&amp;diff=31206"/>
		<updated>2012-05-25T19:58:47Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; __NOTOC__   This function allows creation of a root pane.Root pane contains the all elements.There can be onl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
&lt;br /&gt;
This function allows creation of a root pane.Root pane contains the all elements.There can be only 1 root pane. (It called by script automatically.)&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxRootPane dxCreateRootPane ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dxCreateRootPane if it was successfully created which then can make childs, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[http://wiki.multitheftauto.com/wiki/DxGUI|Back to dxGUI page]]&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31195</id>
		<title>Resource:DxGUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DxGUI&amp;diff=31195"/>
		<updated>2012-05-25T14:25:36Z</updated>

		<summary type="html">&lt;p&gt;Skyline.: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Script&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the dxGUI framework. This will only work with: http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=4871&lt;br /&gt;
&lt;br /&gt;
This system is created by Skyline. (as known as laserlaser)&lt;br /&gt;
&lt;br /&gt;
dxGUI made creating GUI interacting with users and user-friendly designs.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
The installation is pretty simple. All you need to do is copy and paste folder '''&amp;quot;dxGUI/&amp;quot;''' into your resource which you want to use script in. Then just copy specified lines from '''&amp;quot;meta.xml&amp;quot;''' into your meta.xml. As you know dxGUI is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).&lt;br /&gt;
&lt;br /&gt;
You can also start dxGUI resource and uncomment some examples which are located in '''&amp;quot;dxGUIDemo.lua&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
==GUI Functions==&lt;br /&gt;
{{dxGUI_GUIFunctions}}&lt;br /&gt;
===Buttons===&lt;br /&gt;
{{dxGUI_ButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
{{dxGUI_CheckBoxFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Label class===&lt;br /&gt;
{{dxGUI_LabelFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Progress Bars===&lt;br /&gt;
{{dxGUI_ProgressBarFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Radio Buttons===&lt;br /&gt;
{{dxGUI_RadioButtonFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Static Images===&lt;br /&gt;
{{dxGUI_StaticImageFunctions}}&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
{{dxGUI_WindowFunctions}}&lt;/div&gt;</summary>
		<author><name>Skyline.</name></author>
	</entry>
</feed>