<?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=ClawSuit</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=ClawSuit"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ClawSuit"/>
	<updated>2026-05-17T13:59:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modern-Library&amp;diff=81692</id>
		<title>Modern-Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modern-Library&amp;diff=81692"/>
		<updated>2025-01-10T18:24:55Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Modern DX Library ==&lt;br /&gt;
&lt;br /&gt;
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.&lt;br /&gt;
{{note|This wiki is always for the latest Modern DX Library version!}}&lt;br /&gt;
&lt;br /&gt;
'''Full Name''': Modern DX Library for User Interface&lt;br /&gt;
&lt;br /&gt;
'''Developer Team''': [[User:ClawSuit|ClawSuit]], [[User:PandFort|PandFort]]&lt;br /&gt;
&lt;br /&gt;
'''Wiki contributor''': [[User:BR4|BR4]]&lt;br /&gt;
&lt;br /&gt;
'''GitHub Repo''': ''https://github.com/clawsuit/dxLibrary''&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.0 Estable&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
&lt;br /&gt;
[[Image:Demo.PNG|350px|thumb|right| Demo Window]]&lt;br /&gt;
&lt;br /&gt;
'''How does it work?'''&lt;br /&gt;
*Modern DX Library is based on [[element]] system, which just likes the cegui system. To make Modern DX Library easier to use and understand, I choose to follow the usage of cegui's.&lt;br /&gt;
*Modern DX Library elements are rendered in the event &amp;quot;onClientRender&amp;quot;. When &amp;quot;onClientRender&amp;quot; is called, every Modern DX Library elements will be looped and calculated.&lt;br /&gt;
&lt;br /&gt;
'''What's different from cegui?'''&lt;br /&gt;
*This resource is based on dx* functions, so its style will be more flexible than cegui, which means you can define the style by yourself.&lt;br /&gt;
&lt;br /&gt;
'''You Should Know'''&lt;br /&gt;
*Some of Modern DX Library elements use '''Render Target''', which means if you don't have enough video memory, '''Render Target won't be created''', and therefore those Modern DX Library elements won't be shown.&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
'''Demonstration''': https://www.youtube.com/watch?v=qakLp6Znws0&lt;br /&gt;
&lt;br /&gt;
'''Notice'''&lt;br /&gt;
*It is recommended to change the resource name to 'dxLibrary'.&lt;br /&gt;
*This is a resource, if you want to use the functions exported by this resource,  you should use an exported function prefix (''' exports[ &amp;quot;dxLibrary&amp;quot; ]: ''') call in your code, such as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
button = exports[ &amp;quot;dxLibrary&amp;quot; ]:dxButton( 50, 50, 40, 20, &amp;quot;Button Test&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is a feasible way to shorten the name of an exported function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dxLib = exports[ &amp;quot;dxLibrary&amp;quot; ] -- shorten the export function prefix&lt;br /&gt;
&lt;br /&gt;
button = dxLib:dxButton( 50, 50, 40, 20, &amp;quot;Button Test&amp;quot; ) -- create a button&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
='''Client Functions'''=&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;br /&gt;
&lt;br /&gt;
='''Client Events'''=&lt;br /&gt;
{{DXLIB_EVENTS}}&lt;br /&gt;
&lt;br /&gt;
=Last=&lt;br /&gt;
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''&lt;br /&gt;
[[Category:Resource]]&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79059</id>
		<title>AddTableChangeHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79059"/>
		<updated>2024-04-13T05:01:36Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
{{Important Note|do not use this function for local variables}}&lt;br /&gt;
&lt;br /&gt;
This function monitors the changes of a table&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool addTableChangeHandler(string tablename, function func)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
* '''tablename''': The variable [[table]] name.&lt;br /&gt;
* '''func''': The function.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The func returns 5 arguments the tablename, the table, the key, the old value and the new value.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Deprecated version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addTableChangeHandler = function(t, f)&lt;br /&gt;
	local f = f&lt;br /&gt;
	assert(type(t) == 'table', 'check argument 1 table got '..tostring(t))&lt;br /&gt;
	assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))&lt;br /&gt;
&lt;br /&gt;
	local copy = {}&lt;br /&gt;
	for k,v in pairs(t) do&lt;br /&gt;
		copy[k] = v&lt;br /&gt;
		t[k] = nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local mt = getmetatable(t) or {}&lt;br /&gt;
&lt;br /&gt;
	mt.lock = true&lt;br /&gt;
	mt.copy = copy&lt;br /&gt;
	mt.__newindex = function(t, k, v)&lt;br /&gt;
		if not getmetatable(t).lock then&lt;br /&gt;
			local oldValue = getmetatable(t).copy[k]&lt;br /&gt;
			getmetatable(t).copy[k] = v&lt;br /&gt;
			return f(t, k, oldValue, v)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	&lt;br /&gt;
	setmetatable(t,mt)&lt;br /&gt;
&lt;br /&gt;
	for k,v in pairs(copy) do&lt;br /&gt;
		t[k] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	getmetatable(t).lock = nil&lt;br /&gt;
	return true&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;New Version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addTableChangeHandler(tablename, func)&lt;br /&gt;
&lt;br /&gt;
    local tablename, func = tablename, func&lt;br /&gt;
    local parts = {}&lt;br /&gt;
    local name&lt;br /&gt;
    local t = _G&lt;br /&gt;
    local i = 0&lt;br /&gt;
&lt;br /&gt;
    for word in tablename:gmatch(&amp;quot;[^%.]+&amp;quot;) do&lt;br /&gt;
        i = i + 1&lt;br /&gt;
        parts[i] = word&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    for i = 1, #parts-1 do&lt;br /&gt;
        name = not name and parts[i] or name..'.'..parts[i]&lt;br /&gt;
&lt;br /&gt;
        if t[parts[i]] then&lt;br /&gt;
            t = t[parts[i]]&lt;br /&gt;
        else&lt;br /&gt;
            return error('The table [&amp;quot;'..name..'&amp;quot;] does not exist' )&lt;br /&gt;
        end&lt;br /&gt;
     end&lt;br /&gt;
&lt;br /&gt;
    local last = parts[#parts]&lt;br /&gt;
    if not t[last] then return error('The table [&amp;quot;'..(name..'.'..last)..'&amp;quot;] does not exist') end&lt;br /&gt;
&lt;br /&gt;
    local old = t[last]&lt;br /&gt;
    t[last] = setmetatable({}, {&lt;br /&gt;
        __index = old,&lt;br /&gt;
        __newindex = function(self, key, value)&lt;br /&gt;
            local oldValue = rawget(old, key)&lt;br /&gt;
            rawset(old, key, value)&lt;br /&gt;
            if func then&lt;br /&gt;
               func(tablename, old, key, oldValue, value)&lt;br /&gt;
            end&lt;br /&gt;
         end,&lt;br /&gt;
    })&lt;br /&gt;
    return t[last]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Config = {}&lt;br /&gt;
Config.player = {}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('smoney',&lt;br /&gt;
	function()&lt;br /&gt;
		Config.player.money = math.random(999)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addTableChangeHandler('Config.player',&lt;br /&gt;
	function(name, table, key, old, new)&lt;br /&gt;
		print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Config.player.money = 1&lt;br /&gt;
Config.player.money = 50&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': ClawSuit&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79051</id>
		<title>AddTableChangeHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79051"/>
		<updated>2024-04-12T03:20:18Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
{{Important Note|do not use this function for local variables}}&lt;br /&gt;
&lt;br /&gt;
This function monitors the changes of a table&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool addTableChangeHandler(string tablename, function func)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
* '''tablename''': The variable [[table]] name.&lt;br /&gt;
* '''func''': The function.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The func returns 5 arguments the tablename, the table, the key, the old value and the new value.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Deprecated version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addTableChangeHandler = function(t, f)&lt;br /&gt;
	local f = f&lt;br /&gt;
	assert(type(t) == 'table', 'check argument 1 table got '..tostring(t))&lt;br /&gt;
	assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))&lt;br /&gt;
&lt;br /&gt;
	local copy = {}&lt;br /&gt;
	for k,v in pairs(t) do&lt;br /&gt;
		copy[k] = v&lt;br /&gt;
		t[k] = nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local mt = getmetatable(t) or {}&lt;br /&gt;
&lt;br /&gt;
	mt.lock = true&lt;br /&gt;
	mt.copy = copy&lt;br /&gt;
	mt.__newindex = function(t, k, v)&lt;br /&gt;
		if not getmetatable(t).lock then&lt;br /&gt;
			local oldValue = getmetatable(t).copy[k]&lt;br /&gt;
			getmetatable(t).copy[k] = v&lt;br /&gt;
			return f(t, k, oldValue, v)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	&lt;br /&gt;
	setmetatable(t,mt)&lt;br /&gt;
&lt;br /&gt;
	for k,v in pairs(copy) do&lt;br /&gt;
		t[k] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	getmetatable(t).lock = nil&lt;br /&gt;
	return true&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;New Version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addTableChangeHandler(tablename, func)&lt;br /&gt;
&lt;br /&gt;
    local tablename, func = tablename, func&lt;br /&gt;
    local parts = {}&lt;br /&gt;
    local name&lt;br /&gt;
    local t = _G&lt;br /&gt;
    local i = 0&lt;br /&gt;
&lt;br /&gt;
    for word in tablename:gmatch(&amp;quot;[^%.]+&amp;quot;) do&lt;br /&gt;
        i = i + 1&lt;br /&gt;
        parts[i] = word&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    for i = 1, #parts-1 do&lt;br /&gt;
        name = not name and parts[i] or name..'.'..parts[i]&lt;br /&gt;
&lt;br /&gt;
        if t[parts[i]] then&lt;br /&gt;
            t = t[parts[i]]&lt;br /&gt;
        else&lt;br /&gt;
            return error('The table [&amp;quot;'..name..'&amp;quot;] does not exist' )&lt;br /&gt;
        end&lt;br /&gt;
     end&lt;br /&gt;
&lt;br /&gt;
    local last = parts[#parts]&lt;br /&gt;
    if not t[last] then return error('The table [&amp;quot;'..(name..'.'..last)..'&amp;quot;] does not exist') end&lt;br /&gt;
&lt;br /&gt;
    local old = t[last]&lt;br /&gt;
    t[last] = setmetatable({}, {&lt;br /&gt;
        __index = old,&lt;br /&gt;
        __newindex = function(self, key, value)&lt;br /&gt;
            local oldValue = rawget(old, key)&lt;br /&gt;
            rawset(old, key, value)&lt;br /&gt;
            if func then&lt;br /&gt;
               func(tablename, old, key, oldValue, value)&lt;br /&gt;
            end&lt;br /&gt;
         end,&lt;br /&gt;
    })&lt;br /&gt;
    return t[last]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Config = {}&lt;br /&gt;
Config.player = {}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('smoney',&lt;br /&gt;
	function()&lt;br /&gt;
		Config.player.money = math.random(999)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addChangeHandler('Config.player',&lt;br /&gt;
	function(name, table, key, old, new)&lt;br /&gt;
		print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Config.player.money = 1&lt;br /&gt;
Config.player.money = 50&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': ClawSuit&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79050</id>
		<title>AddTableChangeHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79050"/>
		<updated>2024-04-12T03:19:30Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
{{Important Note|do not use this function for local variables}}&lt;br /&gt;
&lt;br /&gt;
This function monitors the changes of a table&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool addTableChangeHandler(string tablename, function func)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
* '''tablename''': The variable [[table]] name.&lt;br /&gt;
* '''func''': The function.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The func returns 5 arguments the tablename, the table, the key, the old value and the new value.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Deprecated version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addTableChangeHandler = function(t, f)&lt;br /&gt;
	local f = f&lt;br /&gt;
	assert(type(t) == 'table', 'check argument 1 table got '..tostring(t))&lt;br /&gt;
	assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))&lt;br /&gt;
&lt;br /&gt;
	local copy = {}&lt;br /&gt;
	for k,v in pairs(t) do&lt;br /&gt;
		copy[k] = v&lt;br /&gt;
		t[k] = nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local mt = getmetatable(t) or {}&lt;br /&gt;
&lt;br /&gt;
	mt.lock = true&lt;br /&gt;
	mt.copy = copy&lt;br /&gt;
	mt.__newindex = function(t, k, v)&lt;br /&gt;
		if not getmetatable(t).lock then&lt;br /&gt;
			local oldValue = getmetatable(t).copy[k]&lt;br /&gt;
			getmetatable(t).copy[k] = v&lt;br /&gt;
			return f(t, k, oldValue, v)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	&lt;br /&gt;
	setmetatable(t,mt)&lt;br /&gt;
&lt;br /&gt;
	for k,v in pairs(copy) do&lt;br /&gt;
		t[k] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	getmetatable(t).lock = nil&lt;br /&gt;
	return true&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;New Version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addTableChangeHandler(tablename, func)&lt;br /&gt;
&lt;br /&gt;
    local tablename, func = tablename, func&lt;br /&gt;
    local parts = {}&lt;br /&gt;
    local name&lt;br /&gt;
    local t = _G&lt;br /&gt;
    local i = 0&lt;br /&gt;
&lt;br /&gt;
    for word in tablename:gmatch(&amp;quot;[^%.]+&amp;quot;) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
        parts[i] = word&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    for i = 1, #parts-1 do&lt;br /&gt;
        name = not name and parts[i] or name..'.'..parts[i]&lt;br /&gt;
&lt;br /&gt;
        if t[parts[i]] then&lt;br /&gt;
            t = t[parts[i]]&lt;br /&gt;
        else&lt;br /&gt;
            return error('The table [&amp;quot;'..name..'&amp;quot;] does not exist' )&lt;br /&gt;
        end&lt;br /&gt;
     end&lt;br /&gt;
&lt;br /&gt;
    local last = parts[#parts]&lt;br /&gt;
    if not t[last] then return error('The table [&amp;quot;'..(name..'.'..last)..'&amp;quot;] does not exist') end&lt;br /&gt;
&lt;br /&gt;
    local old = t[last]&lt;br /&gt;
    t[last] = setmetatable({}, {&lt;br /&gt;
        __index = old,&lt;br /&gt;
        __newindex = function(self, key, value)&lt;br /&gt;
            local oldValue = rawget(old, key)&lt;br /&gt;
            rawset(old, key, value)&lt;br /&gt;
            if func then&lt;br /&gt;
               func(tablename, old, key, oldValue, value)&lt;br /&gt;
            end&lt;br /&gt;
         end,&lt;br /&gt;
    })&lt;br /&gt;
    return t[last]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Config = {}&lt;br /&gt;
Config.player = {}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('smoney',&lt;br /&gt;
	function()&lt;br /&gt;
		Config.player.money = math.random(999)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addChangeHandler('Config.player',&lt;br /&gt;
	function(name, table, key, old, new)&lt;br /&gt;
		print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Config.player.money = 1&lt;br /&gt;
Config.player.money = 50&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': ClawSuit&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79049</id>
		<title>AddTableChangeHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79049"/>
		<updated>2024-04-12T03:18:51Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
{{Important Note|do not use this function for local variables}}&lt;br /&gt;
&lt;br /&gt;
This function monitors the changes of a table&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool addTableChangeHandler(string tablename, function func)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
* '''tablename''': The [[table]].&lt;br /&gt;
* '''func''': The function.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The func returns 5 arguments the tablename, the table, the key, the old value and the new value.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Deprecated version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addTableChangeHandler = function(t, f)&lt;br /&gt;
	local f = f&lt;br /&gt;
	assert(type(t) == 'table', 'check argument 1 table got '..tostring(t))&lt;br /&gt;
	assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))&lt;br /&gt;
&lt;br /&gt;
	local copy = {}&lt;br /&gt;
	for k,v in pairs(t) do&lt;br /&gt;
		copy[k] = v&lt;br /&gt;
		t[k] = nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local mt = getmetatable(t) or {}&lt;br /&gt;
&lt;br /&gt;
	mt.lock = true&lt;br /&gt;
	mt.copy = copy&lt;br /&gt;
	mt.__newindex = function(t, k, v)&lt;br /&gt;
		if not getmetatable(t).lock then&lt;br /&gt;
			local oldValue = getmetatable(t).copy[k]&lt;br /&gt;
			getmetatable(t).copy[k] = v&lt;br /&gt;
			return f(t, k, oldValue, v)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	&lt;br /&gt;
	setmetatable(t,mt)&lt;br /&gt;
&lt;br /&gt;
	for k,v in pairs(copy) do&lt;br /&gt;
		t[k] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	getmetatable(t).lock = nil&lt;br /&gt;
	return true&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;New Version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addTableChangeHandler(tablename, func)&lt;br /&gt;
&lt;br /&gt;
    local tablename, func = tablename, func&lt;br /&gt;
    local parts = {}&lt;br /&gt;
    local name&lt;br /&gt;
    local t = _G&lt;br /&gt;
    local i = 0&lt;br /&gt;
&lt;br /&gt;
    for word in tablename:gmatch(&amp;quot;[^%.]+&amp;quot;) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
        parts[i] = word&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    for i = 1, #parts-1 do&lt;br /&gt;
        name = not name and parts[i] or name..'.'..parts[i]&lt;br /&gt;
&lt;br /&gt;
        if t[parts[i]] then&lt;br /&gt;
            t = t[parts[i]]&lt;br /&gt;
        else&lt;br /&gt;
            return error('The table [&amp;quot;'..name..'&amp;quot;] does not exist' )&lt;br /&gt;
        end&lt;br /&gt;
     end&lt;br /&gt;
&lt;br /&gt;
    local last = parts[#parts]&lt;br /&gt;
    if not t[last] then return error('The table [&amp;quot;'..(name..'.'..last)..'&amp;quot;] does not exist') end&lt;br /&gt;
&lt;br /&gt;
    local old = t[last]&lt;br /&gt;
    t[last] = setmetatable({}, {&lt;br /&gt;
        __index = old,&lt;br /&gt;
        __newindex = function(self, key, value)&lt;br /&gt;
            local oldValue = rawget(old, key)&lt;br /&gt;
            rawset(old, key, value)&lt;br /&gt;
            if func then&lt;br /&gt;
               func(tablename, old, key, oldValue, value)&lt;br /&gt;
            end&lt;br /&gt;
         end,&lt;br /&gt;
    })&lt;br /&gt;
    return t[last]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Config = {}&lt;br /&gt;
Config.player = {}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('smoney',&lt;br /&gt;
	function()&lt;br /&gt;
		Config.player.money = math.random(999)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addChangeHandler('Config.player',&lt;br /&gt;
	function(name, table, key, old, new)&lt;br /&gt;
		print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Config.player.money = 1&lt;br /&gt;
Config.player.money = 50&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': ClawSuit&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79048</id>
		<title>AddTableChangeHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddTableChangeHandler&amp;diff=79048"/>
		<updated>2024-04-12T03:17:59Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
{{Important Note|do not use this function for local variables}}&lt;br /&gt;
&lt;br /&gt;
This function monitors the changes of a table&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool addTableChangeHandler(string tablename, function func)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
* '''tablename''': The [[table]].&lt;br /&gt;
* '''func''': The function.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The func returns 5 arguments the tablename, the table, the key, the old value and the new value.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Deprecated version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addTableChangeHandler = function(t, f)&lt;br /&gt;
	local f = f&lt;br /&gt;
	assert(type(t) == 'table', 'check argument 1 table got '..tostring(t))&lt;br /&gt;
	assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))&lt;br /&gt;
&lt;br /&gt;
	local copy = {}&lt;br /&gt;
	for k,v in pairs(t) do&lt;br /&gt;
		copy[k] = v&lt;br /&gt;
		t[k] = nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local mt = getmetatable(t) or {}&lt;br /&gt;
&lt;br /&gt;
	mt.lock = true&lt;br /&gt;
	mt.copy = copy&lt;br /&gt;
	mt.__newindex = function(t, k, v)&lt;br /&gt;
		if not getmetatable(t).lock then&lt;br /&gt;
			local oldValue = getmetatable(t).copy[k]&lt;br /&gt;
			getmetatable(t).copy[k] = v&lt;br /&gt;
			return f(t, k, oldValue, v)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	&lt;br /&gt;
	setmetatable(t,mt)&lt;br /&gt;
&lt;br /&gt;
	for k,v in pairs(copy) do&lt;br /&gt;
		t[k] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	getmetatable(t).lock = nil&lt;br /&gt;
	return true&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;New Version&amp;quot; class=&amp;quot;shared&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addChangeHandler(tablename, func)&lt;br /&gt;
&lt;br /&gt;
    local tablename, func = tablename, func&lt;br /&gt;
    local parts = {}&lt;br /&gt;
    local name&lt;br /&gt;
    local t = _G&lt;br /&gt;
    local i = 0&lt;br /&gt;
&lt;br /&gt;
    for word in tablename:gmatch(&amp;quot;[^%.]+&amp;quot;) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
        parts[i] = word&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    for i = 1, #parts-1 do&lt;br /&gt;
        name = not name and parts[i] or name..'.'..parts[i]&lt;br /&gt;
&lt;br /&gt;
        if t[parts[i]] then&lt;br /&gt;
            t = t[parts[i]]&lt;br /&gt;
        else&lt;br /&gt;
            return error('The table [&amp;quot;'..name..'&amp;quot;] does not exist' )&lt;br /&gt;
        end&lt;br /&gt;
     end&lt;br /&gt;
&lt;br /&gt;
    local last = parts[#parts]&lt;br /&gt;
    if not t[last] then return error('The table [&amp;quot;'..(name..'.'..last)..'&amp;quot;] does not exist') end&lt;br /&gt;
&lt;br /&gt;
    local old = t[last]&lt;br /&gt;
    t[last] = setmetatable({}, {&lt;br /&gt;
        __index = old,&lt;br /&gt;
        __newindex = function(self, key, value)&lt;br /&gt;
            local oldValue = rawget(old, key)&lt;br /&gt;
            rawset(old, key, value)&lt;br /&gt;
            if func then&lt;br /&gt;
               func(tablename, old, key, oldValue, value)&lt;br /&gt;
            end&lt;br /&gt;
         end,&lt;br /&gt;
    })&lt;br /&gt;
    return t[last]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Config = {}&lt;br /&gt;
Config.player = {}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('smoney',&lt;br /&gt;
	function()&lt;br /&gt;
		Config.player.money = math.random(999)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addChangeHandler('Config.player',&lt;br /&gt;
	function(name, table, key, old, new)&lt;br /&gt;
		print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Config.player.money = 1&lt;br /&gt;
Config.player.money = 50&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': ClawSuit&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=78506</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=78506"/>
		<updated>2023-11-01T03:19:45Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: /* Drawing functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
=== Table functions ===&lt;br /&gt;
*[[addTableChangeHandler]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function monitors the changes of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTableFromSql]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functionality is used to obtain saved tables using the function ([https://wiki.multitheftauto.com/wiki/SetTableToSql SetTableToSql ]).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns true if the value exists in the table, false if the value does not exist in the table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[pairsByKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sort pairs table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[rangeToTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a string range to a table containing number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableToSql]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to save the table in the database (sql).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Sort_Functions]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» These functions are able to sort your tables by a key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.compare]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether two given tables are equal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.deepmerge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function deep merges two tables. Every nested table will be correspondingly merged.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.element]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a new table with only userdata content.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.flip]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the table from the last value to the first value, such as reflection.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.fromString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts string to a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.getRandomRows]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns random rows from table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.merge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function merges two or more tables together.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.removeValue]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function removes a specified value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ACL functions ===&lt;br /&gt;
*[[aclGroupClone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function clone a group to another group with/without ACLs and/or objects.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerAcls]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all ACL groups on a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInACLGroup]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns all players in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInACL]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element is in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[renameAclGroup]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gives an existing ACL group a new name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerACLAdmin]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element belong to Admin group in ACL&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Account functions ===&lt;br /&gt;
*[[getPlayerFromAccountName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to obtain a player by the name of his account.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Camera functions ===&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to create a cinematic camera flight.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Colshape functions ===&lt;br /&gt;
*[[createGarageColShape]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a collision shape from the specified garage.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cursor functions ===&lt;br /&gt;
*[[getCursorMovedOn]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setCursorCenteredOnRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functions will center the cursor inside a rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Drawing functions ===&lt;br /&gt;
*[[dxDrawAnimWindow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws an animated 2D window on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawBorderedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a bordered rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawBorderedText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a bordered text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawDashedLine]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a line with dashes.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawEditbox]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a edit box across the screen - rendered for one frame. This should be used in conjunction with '''onClientRender''' in order to display continuously.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites in 2D.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImageOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws an image on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLinedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a rectangle outline with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLoading]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a loading bar on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawOctagon3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a 3D Octagon&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawPolygon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a custom polygon on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawProgressBar]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function simulates a progress bar drawed using DirectDraw.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangleOnPlayer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle above the player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRing]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a ring with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRombo]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a Rhombus.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawSprite]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draw a sprite in the 3D world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a text on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Esta funcion crea un rectangle con un texto dentro.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTriangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a triangle with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxFade]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function fade-in or fade-out any dxDraw by gradually changing its alpha value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the font size from given height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenStartPositionFromBox]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function helps with getting the correct position for your dx-effects.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wordWrap]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function breaks a long string into a table of separate lines limited to a specific length in pixels, for drawing separately.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[CreateRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a 3d rectangle on the player screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[DxDrawBordered3DLine]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;»This function creates a bordered area with 3D dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Effects functions ===&lt;br /&gt;
*[[attachEffect]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you attach an effect to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setScreenFlash]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make the screen flash(like a screenshot).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Element functions === &lt;br /&gt;
*[[autoAttach]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function attaches one element into another at the same position and rotation they are.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[attachElementToBone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to attach an element to ped bone accurately using new bone functions.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementDirectionCardialPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the direction of the element according to the ''wind rose''.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the specified element's speed in m/s, km/h or mph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementUsingData]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns table elements that contains the elements data with the given key and value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementZoneFullName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the zone full name of a element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsInDimension]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are in the specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsWithinMarker]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are within a marker's collision shape.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getNearestElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the nearest element (of a specific type) to a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInAir]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in air or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in the player's camera picture area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if an element's range to a main point is within the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementMoving]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementPlayer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether the element is a player or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementWithinAColShape]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is within a collision shape element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set the speed of an element in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPositionInFrontOfElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns position in provided distance away from element, including element's rotation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Events ===&lt;br /&gt;
*[[onClientPlayerTimeChange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when the player's real time change.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onPlayerZoneChange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when the player enters a new area on the map.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onServerVehicleSpawn]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a new vehicle is spawned in the server.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicle's weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Input functions ===&lt;br /&gt;
*[[bindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to bind each key bound to a control individually. Doing this bypasses a little MTA restriction.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBoundControls]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of control names that are bound to the specified key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[unbindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to unbind each key bound to a control individually. Use this function with [[bindControlKeys]].&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCommandHandlerAdded]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if a command is added or not in the respective resource.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data functions === &lt;br /&gt;
*[[byte2human]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts an integer (number of bytes) into a human-readable unit.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[capitalize]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function capitalizes a given string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts date to another look.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertServerTickToTimeStamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts server ticks to a unix timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertTextToSpeech]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts the provided text to a speech in the provided language which players can hear.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes two sets of XYZ coordinates. It returns the 3D direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[formatDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[formatNumber]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function formats large numbers by adding commas.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateRandomASCIIString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a random string which uses ASCII characters. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function generates a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a given birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenElements]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Returns the distance between two elements.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getEasterDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns easter date monthday and month for a given year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementRelatedAngle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the related angle between one element to another. This is useful to check which side an element is to another.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getFreeDimension]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function get free dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getKeyFromValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the key of the specified value in a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRealMonth]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the current month name&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRGColorFromPercentage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function returns two integers representing red and green colors according to the specified percentage.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenRotationFromWorldPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a screen relative rotation to a world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the UNIX timestamp of a specified date and time.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[gradientString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function transforms a string in a new coloured gradient string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[hex2rgb]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert hex to rgb.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[hexColorToRGB]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert hex string/number to RGBA values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a boolean representing if a given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isValidMail]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a provided e-mail string is valid.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[removeHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to remove hexadecimal numbers (colors, for example) from strings.&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHSV]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert RGB to HSV color space.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToDecimal]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert RGB to Decimal color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[secondsToTimeDesc]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a plain seconds-integer into a user-friendly time description.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function counts the amount of occurences of a string in a string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.insert]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function inserts a string within another string at a given position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[tocolor2rgba]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert tocolor to rgba.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a physical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GUI functions === &lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function centers a CEGUI window element responsively in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiMoveElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function moves guiElement by/like using moveObject.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiSetStaticImageMovable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to move a static image like a gui window.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseOnGUICloseButton]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a gui-window's native close button.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseOnGuiElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether or not your mouse is over a specific gui element, this is especially useful if the gui element has a parent. &amp;lt;/span&amp;gt;&lt;br /&gt;
=====Comboboxes=====&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function adjusts a CEGUI combobox element to have the correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Gridlists=====&lt;br /&gt;
*[[convertGridListToText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts grid list contents to text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGridListRowIndexFromText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the GridList row index from the specified text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListAddPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function add all online players to a grid list.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetColumnIDFromTitle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a gridlist's column ID from the column title.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetSelectedText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string containing the inner text of a selected gridlist item.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListSetColumnNonSortable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function makes a gridlist column become non-sortable.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isTextInGridList]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if some text exist or not in the GridList.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Labels=====&lt;br /&gt;
*[[guiLabelAddEffect]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function add an effects to the gui-label like (shadow, outline).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Marker functions ===&lt;br /&gt;
*[[createMarkerAttachedTo]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a marker that is attached to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Math functions ===&lt;br /&gt;
*[[math.clamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the number between range of numbers or it's minimum or maximum.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.getBezierPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Get N-th order bezier point.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.hypot]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the Hypotenuse of the triangle given by sides x and y.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.isPointInPolygon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Check if point is inside polygon or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.lerp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Get val between two integer.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.percent]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a percentage from two number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.polygonArea]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Compute area of any polygon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.randomDiff]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Generates a pseudo-random integer that's always different from the last random number generated.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.rotVecToEulerAngle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Rotation Vector To Euler Angle&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[mathNumber]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is a workaround for the client-side floating-point precision of 24-bits.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[reMap]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Re-maps a number from one range to another.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Math.percentProgress|math.percentProgress]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Returns a percentage progress from two specific values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.average]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the simple arithmetic mean of multiple numbers.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Map functions ===&lt;br /&gt;
*[[assignLod]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function lets you conveniently generate and apply a LOD model to a mapping object.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getWorldPositionFromMapPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts an F11 map position to world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Ped functions ===&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGuestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a players not login or players Guest .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all logged-in administrators.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedEyesPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get peds eyes position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedGender]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get peds their gender.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxHealth]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a pedestrians's maximum health by converting it from their maximum health stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxOxygenLevel]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's maximum oxygen level by converting it from their maximum underwater stamina stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedWeaponSkill]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's corresponding weapon skill level name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedHitBone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the approximate number of the bone where the ped is hit.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from partial name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromSerial]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from their serial.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersByData]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of players that have the specified data name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all players in photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInVehicles]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the players insides vehicles from a specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a pedestrian is aiming their weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAimingNearPed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is similar to isPedAiming but uses a colshape to be more precise.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDiving]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This feature checks that pedestrian is diving in the water.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDrivingVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified pedestrian is driving a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedNearbyWall]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if player/ped is nearby a objects like buildings or walls.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is in a specified team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setPedAttack]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make a ped attack a specified target.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setPedFollow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make a ped follow a specified target.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerNameFromID]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will get the player name from the ID element data.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Player functions ===&lt;br /&gt;
*[[countPlayersInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the number of players that are within a certain range of the specified coordinates.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerPreviousAndNextWeapon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the player previous and next weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function make a table of players within certain range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerActuallyInVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is actually in a vehicle instead of just in the process of entering.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerHitByVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function cancels event when a element is hit by a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resource functions ===&lt;br /&gt;
*[[getFilesInResourceFolder]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a list of files that are inside a folder of a resource.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceScripts]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource scripts.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSize]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the size of a specified resource in kB(kilobyte)&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[refreshResource]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function refreshes your resource if you changed any of the files&lt;br /&gt;
*[[setResourcePriority]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function set resource download priority group.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sound functions ===&lt;br /&gt;
*[[isSoundFinished]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element has finished.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isSoundPlaying]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element is playing or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[stopSoundSlowly]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function stop your sound element slowly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Browser functions ===&lt;br /&gt;
*[[playVideo]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function plays a video on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Team functions ===&lt;br /&gt;
*[[getTeamFromColor]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element by the specified color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamWithFewestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element with least players of all the specified teams.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Vehicle functions ===&lt;br /&gt;
*[[findEmptyCarSeat]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function finds you the first empty seat in a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getNearestVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the nearest vehicle to the specified player in a specified distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRandomVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a random vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getValidVehicleModels]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all valid vehicle models.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehiclesCountByType]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the amount of vehicles by the given type as an integer value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleTurnVelocityCenterOfMass]]&amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a vehicle's turn velocity relative to the vehicle's center or mass.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleDoubleExhaust]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks is exhaust vehicle double.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleEmpty]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a vehicle is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOccupied]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is occupied.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnFire]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if the vehicle is on fire or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleReversing]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is moving backwards.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleUpgraded]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks is vehicle upgraded by upgrade ID.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleTurnVelocityCenterOfMass]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's turn velocity relative to the vehicle's center or mass.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleHandlingFromText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's handling from text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleWheelModel]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function changes the wheel model of the informed vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Weapon functions === &lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Object functions ===&lt;br /&gt;
*[[getDynamicDoorObjectOpenRatio]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function tells you how open a dynamic door is in a range from 0 to 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementObject]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function tells you if an element is an object or no.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== XML functions ===&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns all children of a XML node.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Engine functions ===&lt;br /&gt;
*[[engineGetCOLsFromLibrary]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the collision data from the col library.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[engineLoadIMGContainer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function loads the IMG container.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Utility ===&lt;br /&gt;
*[[animate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to use interpolateBetween without render event and easily used.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any client-side function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[check]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if its arguments are of the right type and calls the error-function if one is not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[checkPassiveTimer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to use passive timers in your conditions. For example you want to prevent players repeatedly using a command.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function applies a fix for hidden coroutine error messages.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[compact]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function create table containing variables and their values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBanFromName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functions returns the ban of the given playername.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCurrentFPS]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the frames per second at which GTA: SA is running.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getSkinNameFromID]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the name of the skin from the given id.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCharInString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This shared function allows you to check if a char specified is in a string value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLastExecuteInTimer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function check if the execute is the last execute in the timer.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInCircle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a cursor position is in circular area or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a rectangular position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns ''a time-saving'' iterator for your for-loops.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[PlotTrajectoryAtTime]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Calculate projectile/water trajectory.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[preprocessor]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allow you to use gcc macros.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[vector3:compare]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This method checks whether two vectors match, with optional precision.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[svgCreateRoundedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a rectangle with rounded edges.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[debounce]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is removing unwanted input noise.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Useful Functions]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=78505</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=78505"/>
		<updated>2023-11-01T03:18:12Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: /* Drawing functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
=== Table functions ===&lt;br /&gt;
*[[addTableChangeHandler]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function monitors the changes of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTableFromSql]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functionality is used to obtain saved tables using the function ([https://wiki.multitheftauto.com/wiki/SetTableToSql SetTableToSql ]).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns true if the value exists in the table, false if the value does not exist in the table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[pairsByKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sort pairs table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[rangeToTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a string range to a table containing number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableToSql]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to save the table in the database (sql).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Sort_Functions]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» These functions are able to sort your tables by a key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.compare]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether two given tables are equal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.deepmerge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function deep merges two tables. Every nested table will be correspondingly merged.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.element]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a new table with only userdata content.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.flip]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the table from the last value to the first value, such as reflection.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.fromString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts string to a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.getRandomRows]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns random rows from table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.merge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function merges two or more tables together.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.removeValue]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function removes a specified value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ACL functions ===&lt;br /&gt;
*[[aclGroupClone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function clone a group to another group with/without ACLs and/or objects.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerAcls]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all ACL groups on a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInACLGroup]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns all players in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInACL]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element is in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[renameAclGroup]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gives an existing ACL group a new name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerACLAdmin]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element belong to Admin group in ACL&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Account functions ===&lt;br /&gt;
*[[getPlayerFromAccountName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to obtain a player by the name of his account.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Camera functions ===&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to create a cinematic camera flight.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Colshape functions ===&lt;br /&gt;
*[[createGarageColShape]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a collision shape from the specified garage.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cursor functions ===&lt;br /&gt;
*[[getCursorMovedOn]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setCursorCenteredOnRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functions will center the cursor inside a rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Drawing functions ===&lt;br /&gt;
*[[dxDrawAnimWindow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws an animated 2D window on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawBorderedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a bordered rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawBorderedText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a bordered text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawDashedLine]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a line with dashes.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawEditbox]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a edit box across the screen - rendered for one frame. This should be used in conjunction with '''onClientRender''' in order to display continuously.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites in 2D.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImageOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws an image on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLinedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a rectangle outline with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLoading]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a loading bar on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawOctagon3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a 3D Octagon&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawPolygon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a custom polygon on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawProgressBar]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function simulates a progress bar drawed using DirectDraw.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangleOnPlayer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle above the player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRing]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a ring with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRombus]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a Rhombus.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawSprite]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draw a sprite in the 3D world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function draws a text on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Esta funcion crea un rectangle con un texto dentro.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTriangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a triangle with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxFade]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function fade-in or fade-out any dxDraw by gradually changing its alpha value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the font size from given height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenStartPositionFromBox]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function helps with getting the correct position for your dx-effects.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wordWrap]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function breaks a long string into a table of separate lines limited to a specific length in pixels, for drawing separately.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[CreateRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a 3d rectangle on the player screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[DxDrawBordered3DLine]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;»This function creates a bordered area with 3D dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Effects functions ===&lt;br /&gt;
*[[attachEffect]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you attach an effect to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setScreenFlash]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make the screen flash(like a screenshot).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Element functions === &lt;br /&gt;
*[[autoAttach]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function attaches one element into another at the same position and rotation they are.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[attachElementToBone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to attach an element to ped bone accurately using new bone functions.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementDirectionCardialPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the direction of the element according to the ''wind rose''.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the specified element's speed in m/s, km/h or mph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementUsingData]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns table elements that contains the elements data with the given key and value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementZoneFullName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the zone full name of a element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsInDimension]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are in the specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsWithinMarker]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are within a marker's collision shape.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getNearestElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the nearest element (of a specific type) to a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInAir]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in air or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in the player's camera picture area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if an element's range to a main point is within the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementMoving]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementPlayer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether the element is a player or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementWithinAColShape]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is within a collision shape element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set the speed of an element in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPositionInFrontOfElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns position in provided distance away from element, including element's rotation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Events ===&lt;br /&gt;
*[[onClientPlayerTimeChange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when the player's real time change.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onPlayerZoneChange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when the player enters a new area on the map.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onServerVehicleSpawn]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a new vehicle is spawned in the server.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicle's weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Input functions ===&lt;br /&gt;
*[[bindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to bind each key bound to a control individually. Doing this bypasses a little MTA restriction.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBoundControls]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of control names that are bound to the specified key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[unbindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to unbind each key bound to a control individually. Use this function with [[bindControlKeys]].&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCommandHandlerAdded]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if a command is added or not in the respective resource.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data functions === &lt;br /&gt;
*[[byte2human]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts an integer (number of bytes) into a human-readable unit.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[capitalize]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function capitalizes a given string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts date to another look.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertServerTickToTimeStamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts server ticks to a unix timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertTextToSpeech]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts the provided text to a speech in the provided language which players can hear.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation3D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes two sets of XYZ coordinates. It returns the 3D direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[formatDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[formatNumber]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function formats large numbers by adding commas.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateRandomASCIIString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a random string which uses ASCII characters. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function generates a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a given birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenElements]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Returns the distance between two elements.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getEasterDate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns easter date monthday and month for a given year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementRelatedAngle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the related angle between one element to another. This is useful to check which side an element is to another.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getFreeDimension]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function get free dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getKeyFromValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the key of the specified value in a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRealMonth]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the current month name&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRGColorFromPercentage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function returns two integers representing red and green colors according to the specified percentage.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenRotationFromWorldPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a screen relative rotation to a world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the UNIX timestamp of a specified date and time.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[gradientString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function transforms a string in a new coloured gradient string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[hex2rgb]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert hex to rgb.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[hexColorToRGB]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert hex string/number to RGBA values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a boolean representing if a given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isValidMail]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a provided e-mail string is valid.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[removeHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is used to remove hexadecimal numbers (colors, for example) from strings.&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHSV]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert RGB to HSV color space.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToDecimal]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert RGB to Decimal color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[secondsToTimeDesc]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a plain seconds-integer into a user-friendly time description.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function counts the amount of occurences of a string in a string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.insert]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function inserts a string within another string at a given position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[tocolor2rgba]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function convert tocolor to rgba.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts a physical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GUI functions === &lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function centers a CEGUI window element responsively in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiMoveElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function moves guiElement by/like using moveObject.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiSetStaticImageMovable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to move a static image like a gui window.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseOnGUICloseButton]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a gui-window's native close button.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseOnGuiElement]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether or not your mouse is over a specific gui element, this is especially useful if the gui element has a parent. &amp;lt;/span&amp;gt;&lt;br /&gt;
=====Comboboxes=====&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function adjusts a CEGUI combobox element to have the correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Gridlists=====&lt;br /&gt;
*[[convertGridListToText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts grid list contents to text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGridListRowIndexFromText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the GridList row index from the specified text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListAddPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function add all online players to a grid list.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetColumnIDFromTitle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a gridlist's column ID from the column title.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetSelectedText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string containing the inner text of a selected gridlist item.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListSetColumnNonSortable]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function makes a gridlist column become non-sortable.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isTextInGridList]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if some text exist or not in the GridList.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Labels=====&lt;br /&gt;
*[[guiLabelAddEffect]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function add an effects to the gui-label like (shadow, outline).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Marker functions ===&lt;br /&gt;
*[[createMarkerAttachedTo]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a marker that is attached to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Math functions ===&lt;br /&gt;
*[[math.clamp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the number between range of numbers or it's minimum or maximum.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.getBezierPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Get N-th order bezier point.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.hypot]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the Hypotenuse of the triangle given by sides x and y.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.isPointInPolygon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Check if point is inside polygon or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.lerp]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Get val between two integer.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.percent]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a percentage from two number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.polygonArea]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Compute area of any polygon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.randomDiff]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Generates a pseudo-random integer that's always different from the last random number generated.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.rotVecToEulerAngle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Rotation Vector To Euler Angle&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[mathNumber]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is a workaround for the client-side floating-point precision of 24-bits.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[reMap]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Re-maps a number from one range to another.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Math.percentProgress|math.percentProgress]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Returns a percentage progress from two specific values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.average]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the simple arithmetic mean of multiple numbers.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Map functions ===&lt;br /&gt;
*[[assignLod]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function lets you conveniently generate and apply a LOD model to a mapping object.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getWorldPositionFromMapPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function converts an F11 map position to world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Ped functions ===&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGuestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a players not login or players Guest .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all logged-in administrators.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedEyesPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get peds eyes position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedGender]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get peds their gender.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxHealth]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a pedestrians's maximum health by converting it from their maximum health stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxOxygenLevel]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's maximum oxygen level by converting it from their maximum underwater stamina stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedWeaponSkill]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's corresponding weapon skill level name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedHitBone]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the approximate number of the bone where the ped is hit.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from partial name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromSerial]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from their serial.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersByData]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of players that have the specified data name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all players in photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInVehicles]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the players insides vehicles from a specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a pedestrian is aiming their weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAimingNearPed]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This is similar to isPedAiming but uses a colshape to be more precise.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDiving]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This feature checks that pedestrian is diving in the water.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDrivingVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified pedestrian is driving a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedNearbyWall]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if player/ped is nearby a objects like buildings or walls.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is in a specified team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setPedAttack]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make a ped attack a specified target.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setPedFollow]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will make a ped follow a specified target.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerNameFromID]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function will get the player name from the ID element data.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Player functions ===&lt;br /&gt;
*[[countPlayersInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the number of players that are within a certain range of the specified coordinates.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerPreviousAndNextWeapon]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the player previous and next weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInRange]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function make a table of players within certain range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerActuallyInVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is actually in a vehicle instead of just in the process of entering.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerHitByVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function cancels event when a element is hit by a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resource functions ===&lt;br /&gt;
*[[getFilesInResourceFolder]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a list of files that are inside a folder of a resource.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceScripts]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource scripts.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSize]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the size of a specified resource in kB(kilobyte)&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[refreshResource]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function refreshes your resource if you changed any of the files&lt;br /&gt;
*[[setResourcePriority]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function set resource download priority group.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sound functions ===&lt;br /&gt;
*[[isSoundFinished]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element has finished.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isSoundPlaying]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element is playing or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[stopSoundSlowly]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function stop your sound element slowly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Browser functions ===&lt;br /&gt;
*[[playVideo]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function plays a video on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Team functions ===&lt;br /&gt;
*[[getTeamFromColor]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element by the specified color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamWithFewestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element with least players of all the specified teams.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Vehicle functions ===&lt;br /&gt;
*[[findEmptyCarSeat]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function finds you the first empty seat in a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getNearestVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the nearest vehicle to the specified player in a specified distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRandomVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a random vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getValidVehicleModels]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all valid vehicle models.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehiclesCountByType]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the amount of vehicles by the given type as an integer value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleTurnVelocityCenterOfMass]]&amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets a vehicle's turn velocity relative to the vehicle's center or mass.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleDoubleExhaust]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks is exhaust vehicle double.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleEmpty]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a vehicle is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOccupied]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is occupied.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnFire]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if the vehicle is on fire or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleReversing]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is moving backwards.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleUpgraded]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks is vehicle upgraded by upgrade ID.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleTurnVelocityCenterOfMass]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's turn velocity relative to the vehicle's center or mass.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleHandlingFromText]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's handling from text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleWheelModel]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function changes the wheel model of the informed vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Weapon functions === &lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Object functions ===&lt;br /&gt;
*[[getDynamicDoorObjectOpenRatio]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function tells you how open a dynamic door is in a range from 0 to 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementObject]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function tells you if an element is an object or no.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== XML functions ===&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns all children of a XML node.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Engine functions ===&lt;br /&gt;
*[[engineGetCOLsFromLibrary]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function gets the collision data from the col library.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[engineLoadIMGContainer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function loads the IMG container.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Utility ===&lt;br /&gt;
*[[animate]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to use interpolateBetween without render event and easily used.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any client-side function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[check]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if its arguments are of the right type and calls the error-function if one is not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[checkPassiveTimer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to use passive timers in your conditions. For example you want to prevent players repeatedly using a command.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function applies a fix for hidden coroutine error messages.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[compact]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function create table containing variables and their values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBanFromName]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This functions returns the ban of the given playername.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCurrentFPS]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the frames per second at which GTA: SA is running.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getSkinNameFromID]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns the name of the skin from the given id.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCharInString]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This shared function allows you to check if a char specified is in a string value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLastExecuteInTimer]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function check if the execute is the last execute in the timer.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInCircle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a cursor position is in circular area or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInPosition]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a rectangular position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function returns ''a time-saving'' iterator for your for-loops.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[PlotTrajectoryAtTime]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» Calculate projectile/water trajectory.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[preprocessor]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function allow you to use gcc macros.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[vector3:compare]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This method checks whether two vectors match, with optional precision.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[svgCreateRoundedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function creates a rectangle with rounded edges.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[debounce]] &amp;lt;span style=&amp;quot;color:gray; font-size:smaller;&amp;quot;&amp;gt;» This function is removing unwanted input noise.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Useful Functions]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetLibrary&amp;diff=77458</id>
		<title>DxGetLibrary</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetLibrary&amp;diff=77458"/>
		<updated>2023-08-12T17:05:40Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__ {{Client Function}} Esta funcion extrae los diferentes exports de la libreria en forma de variables para hacer el uso de la libreria mas facil para ello debe de complementarse con '''&amp;lt;span style=&amp;quot;color:#00ff00; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;loadstring&amp;lt;/span&amp;gt;'''.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Sintaxis== &amp;lt;syntaxhighlight lang=&amp;quot;l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion extrae los diferentes exports de la libreria en forma de variables para hacer el uso de la libreria mas facil para ello debe de complementarse con '''&amp;lt;span style=&amp;quot;color:#00ff00; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;loadstring&amp;lt;/span&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string dxGetLibrary()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ejemplo==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCheckBox&amp;diff=77457</id>
		<title>DxCheckBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCheckBox&amp;diff=77457"/>
		<updated>2023-08-12T16:58:08Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
[[File:DxWindow.png|300px|thumb|right|Ventana de Pruebas.]]&lt;br /&gt;
Esta funcion crea una checkBox basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element dxCheckBox(int x, int y, string text, [ element parent = nil, bool rounded = nil ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''text''': Una cadena de caracteres(string) que representa el texto que contendra el [https://wiki.multitheftauto.com/wiki/DxCheckBox CheckBox].&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual el [https://wiki.multitheftauto.com/wiki/DxCheckBox CheckBox] se adjunta.&lt;br /&gt;
* '''rounded''': Un booleano que representa si el checkBox llevara bordes redondeados.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow( 251, 21, 250, 300, 'Window DEMO', true, true )&lt;br /&gt;
&lt;br /&gt;
--creamos un checkBox&lt;br /&gt;
check1 = dxCheckBox(432, 83, 'guardar datos', win)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxListRemoveItem&amp;diff=77426</id>
		<title>DxListRemoveItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxListRemoveItem&amp;diff=77426"/>
		<updated>2023-08-10T00:37:09Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__ {{Client Function}} Esta funcion elimina un texto o item de una dxList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Sintaxis== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxListRemoveItem(element, index int)&amp;lt;/syntaxhighlight&amp;gt;  ===Argumentos requeridos=== * '''element''': Elemento dxList creado previamente. * '''index''': Un entero que representa la...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion elimina un texto o item de una [[dxList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxListRemoveItem(element, index int)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': Elemento [[dxList]] creado previamente.&lt;br /&gt;
* '''index''': Un entero que representa la posicion del texto o item en la [[dxList]].&lt;br /&gt;
&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
list = dxList( 312, 347, 250, 203, win )&lt;br /&gt;
&lt;br /&gt;
--agregamos 3 row&lt;br /&gt;
for i = 1, 3 do&lt;br /&gt;
   dxListAddItem(list, 'Row '..i)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--borramos el segundo row.&lt;br /&gt;
dxListRemoveItem(list, 2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxListAddItem&amp;diff=77425</id>
		<title>DxListAddItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxListAddItem&amp;diff=77425"/>
		<updated>2023-08-10T00:35:48Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion agrega un texto al final de la una [[dxList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxListAddItem(element, item string)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': La [[dxList]] creada.&lt;br /&gt;
* '''item''': Un string que representa el texto a agregar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
list = dxList( 312, 347, 250, 203, win )&lt;br /&gt;
&lt;br /&gt;
--le agregamos un valor a la lista.&lt;br /&gt;
dxListAddItem(list, 'Ruedas tipo 1')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxListAddItem&amp;diff=77424</id>
		<title>DxListAddItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxListAddItem&amp;diff=77424"/>
		<updated>2023-08-10T00:20:16Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__ {{Client Function}} Esta funcion agrega un texto al final de la una dxList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Sintaxis== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxListAddItem(element, item)&amp;lt;/syntaxhighlight&amp;gt;  ===Argumentos requeridos=== * '''element''': La dxList creada. * '''item''': Un texto(string) que se agregara a la lista.  ==Eje...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion agrega un texto al final de la una [[dxList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxListAddItem(element, item)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': La [[dxList]] creada.&lt;br /&gt;
* '''item''': Un texto(string) que se agregara a la lista.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
list = dxList( 312, 347, 250, 203, win )&lt;br /&gt;
&lt;br /&gt;
--le agregamos un valor a la lista.&lt;br /&gt;
dxListAddItem(list, 'Ruedas tipo 1')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxButton&amp;diff=74669</id>
		<title>DxButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxButton&amp;diff=74669"/>
		<updated>2022-05-21T20:25:16Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea un boton basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxButton( int x, int y, int width, int height, string text [, element parent = nil, bool rounded = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:DGS_Button.png|thumb|Boton]]&lt;br /&gt;
*'''x:''' Un numero de la posición 2D x del botón en la pantalla de un jugador.&lt;br /&gt;
*'''y:''' Un numero de la posición 2D y del botón en la pantalla de un jugador.&lt;br /&gt;
*'''width:''' Un numero del ancho del botón.&lt;br /&gt;
*'''height:''' Un numero de la altura del botón.&lt;br /&gt;
*'''text:''' Una cadena del texto que se mostrará como una etiqueta en el botón.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===  &lt;br /&gt;
*'''parent:''' Este es el padre el cual el [https://wiki.multitheftauto.com/wiki/dxButton boton] se adjunta.&lt;br /&gt;
*'''rounded:''' Si desea que el botón sea redondeado o no. ( true o false )&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
En este ejemplo se mostrará el mensaje del cuadro de edición en el cuadro de chat.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
-- crea un boton&lt;br /&gt;
button = dxButton( 276, 80, 100, 40, &amp;quot;Anunciar!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
-- cree un cuadro de edición y lo definimos como &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = dxEdit( 277, 184, 197, 46, &amp;quot;Escribe tu mensaje aqui!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = dxGetText( editBox ) --Obtener el texto del cuadro de edición&lt;br /&gt;
        outputChatBox ( text, 255, 255, 255 ) --anunciar ese texto&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxFont&amp;diff=74668</id>
		<title>DxFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxFont&amp;diff=74668"/>
		<updated>2022-05-21T20:24:28Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion sirve para crear una fuente que podra ser utilizada por cualquier elemento de [[Modern-Library]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxFont(string path, float size, [ bool bold = nil ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''path''': La ruta del archivo tipo fuente. &amp;gt; ''Ruta local de la libreria'' '''&amp;quot;files/font/&amp;quot;'''&lt;br /&gt;
* '''size''': Un flotante que representa el tamaño de la fuente.&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''bold''': Un booleano que representa si la fuente sera gruesa.&lt;br /&gt;
===Fuentes locales===&lt;br /&gt;
* '''Basic-Regular.ttf''': Tamaños 10, 11&lt;br /&gt;
* '''letterbold.otf''': Tamaños 9, 10&lt;br /&gt;
* '''Comforta_regular.ttf''': Tamaños 10, 11, 12, 13&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una fuente local de la Modern-Library con un tamaño personalizado&lt;br /&gt;
dxFont('files/font/letterbold.otf', 13, true)&lt;br /&gt;
&lt;br /&gt;
--creamos una fuente externa de otro script o bien sea del mismo script donde se este llamando a dicha funcion.&lt;br /&gt;
dxFont(':varios/font/grove.ttf', 10, false)&lt;br /&gt;
&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
dxSetFont(win, 'letterbold', 13) -- le damos la fuente letterbold a la ventana&lt;br /&gt;
&lt;br /&gt;
bot = dxButton(276, 80, 100, 40, 'Button demo', win, false)&lt;br /&gt;
dxSetFont(win, 'grove', 10) -- le damos la fuente grove al boton.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetFont&amp;diff=74667</id>
		<title>DxSetFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetFont&amp;diff=74667"/>
		<updated>2022-05-21T20:24:15Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion sirve para cambiar la fuente de un elemento de la [[Modern-Library]] .&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxSetFont(string fontName, float size)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''fontName''': El nombre de la fuente sin su extension, ''Ejemplo'' en ves de '''''Basic-Regular.ttf''''' colocar '''''Basic-Regular'''''&lt;br /&gt;
* '''size''': Un flotante que representa el tamaño de la fuente.&lt;br /&gt;
===Fuentes locales===&lt;br /&gt;
* '''Basic-Regular.ttf''': Tamaños 10, 11&lt;br /&gt;
* '''letterbold.otf''': Tamaños 9, 10&lt;br /&gt;
* '''Comforta_regular.ttf''': Tamaños 10, 11, 12, 13&lt;br /&gt;
&lt;br /&gt;
'''NOTA''': ''El tamaño de la fuente en caso de ser una fuente local recuerda ver bien los tamaños y colocar uno existente, en caso de ser una fuente personaliza&lt;br /&gt;
recuerda colocar el tamaño que especificaste en'' [[dxFont]]&lt;br /&gt;
 &lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una fuente externa de otro script o bien sea del mismo script donde se este llamando a dicha funcion.&lt;br /&gt;
dxFont(':varios/font/grove.ttf', 10, false)&lt;br /&gt;
&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
dxSetFont(win, 'Comforta_regular', 12) -- le damos la fuente Comforta_regular a la ventana&lt;br /&gt;
&lt;br /&gt;
bot = dxButton(276, 80, 100, 40, 'Button demo', win, false)&lt;br /&gt;
dxSetFont(win, 'grove', 10) -- le damos la fuente grove al boton.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxWindow&amp;diff=74666</id>
		<title>DxWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxWindow&amp;diff=74666"/>
		<updated>2022-05-21T20:24:00Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
[[File:DxWindow.png|300px|thumb|right|Ventana de Pruebas.]]&lt;br /&gt;
Esta funcion crea una ventana moderna basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element dxWindow(int x, int y, int w, int h, string title, [ bool closebutton = true, bool rounded = false, float border = false])&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho de la ventana.&lt;br /&gt;
* '''h''': Un entero que representa la altura de la ventana.&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''closebutton''': Un booleano que representa la visibilidad del boton de cerrado, ''false'' para quitar, ''true'' o ''nil'' para visualizar.&lt;br /&gt;
* '''rounded''': Un booleano que representa si la ventana llevara bordes redondeados.&lt;br /&gt;
* '''border''': Un entero que reprenta el grosor de la linea del borde de la ventana.&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow( 251, 21, 250, 300, 'Window DEMO', true, true )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxWindowSetCloseState&amp;diff=74665</id>
		<title>DxWindowSetCloseState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxWindowSetCloseState&amp;diff=74665"/>
		<updated>2022-05-21T20:23:47Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion oculta o visualiza el boton de cerrado de una [[dxWindow]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxWindowSetCloseState(element element, bool state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxWindow]].&lt;br /&gt;
* '''state''': Un booleano (true o false).&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
--Le removemos el boton de cerrado mediante la funcion.&lt;br /&gt;
dxWindowSetCloseState( win, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxWindowGetCloseState&amp;diff=74664</id>
		<title>DxWindowGetCloseState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxWindowGetCloseState&amp;diff=74664"/>
		<updated>2022-05-21T20:23:32Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
Esta funcion obtiene el estado del boton de cerrado de una [[dxWindow]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxWindowGetCloseState(element element)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': La ventana la cual se obtendra el estado del boton de cerrado.&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
bindKey('k', 'down', &lt;br /&gt;
  function()&lt;br /&gt;
     outputChatBox('El boton de cerrado esta '..(dxWindowGetCloseState( win ) and 'visible' or 'oculto'))&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxButton&amp;diff=74663</id>
		<title>DxButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxButton&amp;diff=74663"/>
		<updated>2022-05-21T20:23:04Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea un boton basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxButton( int x, int y, int width, int height, string text [, element parent = nil, bool rounded = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:DGS_Button.png|thumb|Boton]]&lt;br /&gt;
*'''x:''' Un numero de la posición 2D x del botón en la pantalla de un jugador.&lt;br /&gt;
*'''y:''' Un numero de la posición 2D y del botón en la pantalla de un jugador.&lt;br /&gt;
*'''width:''' Un numero del ancho del botón.&lt;br /&gt;
*'''height:''' Un numero de la altura del botón.&lt;br /&gt;
*'''text:''' Una cadena del texto que se mostrará como una etiqueta en el botón.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' Este es el padre el cual el [https://wiki.multitheftauto.com/wiki/dxButton boton] se adjunta.&lt;br /&gt;
*'''rounded:''' Si desea que el botón sea redondeado o no. ( true o false )&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
En este ejemplo se mostrará el mensaje del cuadro de edición en el cuadro de chat.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
-- crea un boton&lt;br /&gt;
button = dxButton( 276, 80, 100, 40, &amp;quot;Anunciar!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
-- cree un cuadro de edición y lo definimos como &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = dxEdit( 277, 184, 197, 46, &amp;quot;Escribe tu mensaje aqui!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = dxGetText( editBox ) --Obtener el texto del cuadro de edición&lt;br /&gt;
        outputChatBox ( text, 255, 255, 255 ) --anunciar ese texto&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCheckBox&amp;diff=74662</id>
		<title>DxCheckBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCheckBox&amp;diff=74662"/>
		<updated>2022-05-21T20:20:29Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
[[File:DxWindow.png|300px|thumb|right|Ventana de Pruebas.]]&lt;br /&gt;
Esta funcion crea una checkBox basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element dxCheckBox(int x, int y, int w, int h, [ element parent = nil, bool rounded = nil ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho de la ventana.&lt;br /&gt;
* '''h''': Un entero que representa la altura de la ventana.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual el [https://wiki.multitheftauto.com/wiki/DxCheckBox CheckBox] se adjunta.&lt;br /&gt;
* '''rounded''': Un booleano que representa si el checkBox llevara bordes redondeados.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow( 251, 21, 250, 300, 'Window DEMO', true, true )&lt;br /&gt;
&lt;br /&gt;
--creamos un checkBox&lt;br /&gt;
check1 = dxCheckBox(432, 83, 32, 32, win)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCheckBoxSetState&amp;diff=74661</id>
		<title>DxCheckBoxSetState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCheckBoxSetState&amp;diff=74661"/>
		<updated>2022-05-21T20:20:14Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función cambia el estado de un [[dxCheckBox]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxCheckBoxSetState( element element, bool bool )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
*'''element:''' El elemento [[dxCheckBox]].&lt;br /&gt;
*'''bool:''' Un booleano (true o false).&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
En el siguiente ejemplo veremos como al darle click al boton el [[dxCheckBox]] cambia de estado.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos un dxCheckBox&lt;br /&gt;
checkB = dxCheckBox(432, 83, 32, 32)&lt;br /&gt;
&lt;br /&gt;
-- creamos un boton&lt;br /&gt;
button = dxButton( 276, 80, 100, 40, &amp;quot;Clickea&amp;quot; )&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, button,&lt;br /&gt;
   function()&lt;br /&gt;
      dxCheckBoxSetState(checkB, not dxCheckBoxSetState(checkB))&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCheckBoxGetState&amp;diff=74660</id>
		<title>DxCheckBoxGetState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCheckBoxGetState&amp;diff=74660"/>
		<updated>2022-05-21T20:19:59Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para obtener el estado de un [[dxCheckBox]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxCheckBoxSetState( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
*'''element:''' El elemento [[dxCheckBox]].&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
En el siguiente ejemplo veremos como al darle click al boton imprime el estado del [[dxCheckBox]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos un dxCheckBox&lt;br /&gt;
checkB = dxCheckBox(432, 83, 32, 32)&lt;br /&gt;
&lt;br /&gt;
-- creamos un boton&lt;br /&gt;
button = dxButton( 276, 80, 100, 40, &amp;quot;Clickea&amp;quot; )&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, button,&lt;br /&gt;
   function()&lt;br /&gt;
      print(dxCheckBoxSetState(checkB))&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxEdit&amp;diff=74659</id>
		<title>DxEdit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxEdit&amp;diff=74659"/>
		<updated>2022-05-21T20:19:41Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
[[File:DxWindow.png|300px|thumb|right|Ventana de Pruebas.]]&lt;br /&gt;
Esta funcion crea un cuadro de texto basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element dxEdit(int x, int y, int w, int h, string text, [ element parent = nil ])&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho de la ventana.&lt;br /&gt;
* '''h''': Un entero que representa la altura de la ventana.&lt;br /&gt;
* '''text''': Una cadena del texto que se mostrará como una etiqueta en la caja de texto.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual el [https://wiki.multitheftauto.com/wiki/dxEdit cuadro de texto] se adjunta.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
&lt;br /&gt;
--creamos una caja de texto&lt;br /&gt;
edit1 = dxEdit(277, 184, 197, 46, 'edit demo 1', win, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxEditSetMasked&amp;diff=74658</id>
		<title>DxEditSetMasked</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxEditSetMasked&amp;diff=74658"/>
		<updated>2022-05-21T20:19:15Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para enmascarar el texto de un [[dxEdit]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxEditSetMasked( element element, bool bool )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
*'''element:''' El elemento [[dxEdit]].&lt;br /&gt;
*'''bool:''' Un booleano (true o false).&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una caja de texto&lt;br /&gt;
edit = dxEdit(277, 184, 197, 46, 'edit demo 1')&lt;br /&gt;
-- enmascaramos el texto&lt;br /&gt;
dxEditSetMasked(edit, true)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxEditSetMaxCharacters&amp;diff=74657</id>
		<title>DxEditSetMaxCharacters</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxEditSetMaxCharacters&amp;diff=74657"/>
		<updated>2022-05-21T20:18:59Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para colocar un maximo de caracteres que se pueden escribir en un [[dxEdit]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxEditSetMaxCharacters( element element, int quantity )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
*'''element:''' El elemento [[dxEdit]].&lt;br /&gt;
*'''quantity:''' Un entero que representa la cantidad de caracteres.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una caja de texto&lt;br /&gt;
edit = dxEdit(277, 184, 197, 46, 'edit demo 1')&lt;br /&gt;
-- Le colocamos un maximo de 30 caracteres&lt;br /&gt;
dxEditSetMaxCharacters(edit, 30)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridList&amp;diff=74656</id>
		<title>DxGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridList&amp;diff=74656"/>
		<updated>2022-05-21T20:18:43Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea una lista de cuadrícula basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxGridList( int x, int y, int w, int h, [ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X de la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y de la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho del [[dxGridList]].&lt;br /&gt;
* '''h''': Un entero que representa la altura del [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxGridList gridlist] se adjunta.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74655</id>
		<title>DxGridListAddItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74655"/>
		<updated>2022-05-21T20:18:24Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para agregar un articulo/ítem a una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListAddItem( element element, columna1, columna2, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''...''': El numero sin fin de artículos/ítems a agregar según la cantidad de columnas.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveItem&amp;diff=74654</id>
		<title>DxGridListRemoveItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveItem&amp;diff=74654"/>
		<updated>2022-05-21T20:18:04Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para eliminar un articulo/ítem de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListRemoveItem( element element, int index )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''index''': Un entero que representa el índice de la fila a eliminar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000') -- fila 1&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000') -- fila 2&lt;br /&gt;
&lt;br /&gt;
--Eliminamos la fila 1&lt;br /&gt;
dxGridListRemoveItem(lista, 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListAddColumn&amp;diff=74653</id>
		<title>DxGridListAddColumn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListAddColumn&amp;diff=74653"/>
		<updated>2022-05-21T20:17:42Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para agregar una columna a una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListAddColumn( element element, string name, float size )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''name''': El nombre de la columna.&lt;br /&gt;
* '''size''': Un flotante que representa el tamaño de separación entre la columna actual y la siguiente.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveColumn&amp;diff=74652</id>
		<title>DxGridListRemoveColumn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveColumn&amp;diff=74652"/>
		<updated>2022-05-21T20:17:28Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para remover una columna de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListRemoveColumn( element element, string name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''name''': El nombre de la columna a eliminar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--eliminamos la segunda columna&lt;br /&gt;
dxGridListRemoveColumn(lista, 'Dueño')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74651</id>
		<title>DxGridListGetItemSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74651"/>
		<updated>2022-05-21T20:17:09Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para obtener la fila de articulos/items seleccionada de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int table dxGridListGetItemSelected( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
===Retorno===&lt;br /&gt;
* '''int''': El numero de la fila seleccionada.&lt;br /&gt;
* '''table''': Una tabla con todos los articulos/items de la fila seleccionada&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&lt;br /&gt;
boton = dxButton( 276, 80, 100, 40, 'Clickea')&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, boton,&lt;br /&gt;
   function()&lt;br /&gt;
      local inx, tab = dxGridListGetItemSelected(lista)&lt;br /&gt;
      if inx ~= -1 then&lt;br /&gt;
         print(inspect(tab))&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListSetItemSelected&amp;diff=74650</id>
		<title>DxGridListSetItemSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListSetItemSelected&amp;diff=74650"/>
		<updated>2022-05-21T20:16:46Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para seleccionar una fila de articulos/items de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListSetItemSelected( element element, int index )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''index''': El numero de la fila a seleccionar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&lt;br /&gt;
boton = dxButton( 276, 80, 100, 40, 'Clickea')&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, boton,&lt;br /&gt;
   function()&lt;br /&gt;
      dxGridListSetItemSelected(lista, math.random(2))&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74649</id>
		<title>DxGridListGetScrollHV</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74649"/>
		<updated>2022-05-21T20:16:31Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para extraer el scroll horizontal y vertical de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element element dxGridListGetScrollHV( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos varias filas de items, hay 3 valores en cada sub-tabke porque solamente se crearon 3 columnas ↑&lt;br /&gt;
for _, v in ipairs({{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'}}) do&lt;br /&gt;
   dxGridListAddItem(lista, unpack(v))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--extramos las scroll&lt;br /&gt;
scrollH, scrollV = dxGridListGetScrollHV(lista)&lt;br /&gt;
&lt;br /&gt;
--Le cambiamos el boton de las scroll a rojo.&lt;br /&gt;
dxScrollSetColorButton(scrollH, 255, 0, 0, 255)&lt;br /&gt;
dxScrollSetColorButton(scrollV, 255, 0, 0, 255)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxList&amp;diff=74648</id>
		<title>DxList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxList&amp;diff=74648"/>
		<updated>2022-05-21T20:15:53Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client Function}}&lt;br /&gt;
[[File:DxWindow.png|300px|thumb|right|Ventana de Pruebas.]]&lt;br /&gt;
Esta funcion crea una lista basada en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element dxList(int x, int y, int w, int h, [ element parent = nil ])&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y del origen absoluto de la ventana, representado por píxeles en la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho de la ventana.&lt;br /&gt;
* '''h''': Un entero que representa la altura de la ventana.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxList lista] se adjunta.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo de Uso==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )&lt;br /&gt;
&lt;br /&gt;
--creamos una ventana&lt;br /&gt;
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true)&lt;br /&gt;
--creamos una lista&lt;br /&gt;
list = dxList( 312, 347, 250, 203, win )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74647</id>
		<title>DxImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74647"/>
		<updated>2022-05-21T20:14:58Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea una imagen basada en [[dxCreateTexture]] + dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxImage( int x, int y, int w, int h, string filepath, [ element parent = nil , string textureformat = 'dxt5', mipmaps = true, textureType = 'clamp' ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X de la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y de la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho del [[dxImage]].&lt;br /&gt;
* '''h''': Un entero que representa la altura del [[dxImage]].&lt;br /&gt;
* '''filepath''': La ruta donde se encuentra la imagen.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxImage imagen] se adjunta.&lt;br /&gt;
* '''textureformat''': Formatos validos '''''&amp;quot;argb&amp;quot;''''' '''''&amp;quot;dxt1&amp;quot;''''' '''''&amp;quot;dxt3&amp;quot;''''' '''''&amp;quot;dxt5&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''mipmaps''': Un booleano (true o false) ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''textureType''': Formatos validos '''''&amp;quot;wrap&amp;quot;''''' '''''&amp;quot;clamp&amp;quot;''''' '''''&amp;quot;mirror&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlibrary:dxGetLibrary())()&lt;br /&gt;
--creamos una imagen&lt;br /&gt;
dxImage(561, 92, 116, 92, &amp;quot;:admin/client/images/map.png&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74646</id>
		<title>DxImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74646"/>
		<updated>2022-05-21T20:14:35Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea una imagen basada en [[dxCreateTexture]] + dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxImage( int x, int y, int w, int h, string filepath, [ element parent = nil , string textureformat = 'dxt5', mipmaps = true, textureType = 'clamp' ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X de la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y de la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho del [[dxImage]].&lt;br /&gt;
* '''h''': Un entero que representa la altura del [[dxImage]].&lt;br /&gt;
* '''filepath''': La ruta donde se encuentra la imagen.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxImage imagen] se adjunta.&lt;br /&gt;
* '''textureformat''': Formatos validos '''''&amp;quot;argb&amp;quot;''''' '''''&amp;quot;dxt1&amp;quot;''''' '''''&amp;quot;dxt3&amp;quot;''''' '''''&amp;quot;dxt5&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''mipmaps''': Un booleano (true o false) ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''textureType''': Formatos valudos '''''&amp;quot;wrap&amp;quot;''''' '''''&amp;quot;clamp&amp;quot;''''' '''''&amp;quot;mirror&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlibrary:dxGetLibrary())()&lt;br /&gt;
--creamos una imagen&lt;br /&gt;
dxImage(561, 92, 116, 92, &amp;quot;:admin/client/images/map.png&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74645</id>
		<title>DxImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxImage&amp;diff=74645"/>
		<updated>2022-05-21T20:14:00Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función crea una imagen basada en dxCreateTexture + dxDrawing.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dxImage( int x, int y, int w, int h, string filepath, [ element parent = nil , string textureformat = 'dxt5', mipmaps = true, textureType = 'clamp' ] ) &amp;lt;/syntaxhig...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea una imagen basada en [[dxCreateTexture]] + dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxImage( int x, int y, int w, int h, string filepath, [ element parent = nil , string textureformat = 'dxt5', mipmaps = true, textureType = 'clamp' ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X de la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y de la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho del [[dxImage]].&lt;br /&gt;
* '''h''': Un entero que representa la altura del [[dxImage]].&lt;br /&gt;
* '''filepath''': La ruta donde se encuentra la imagen.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxImage imagen] se adjunta.&lt;br /&gt;
* '''textureformat''': Formatos validos '''''&amp;quot;argb&amp;quot;''''' '''''&amp;quot;dxt1&amp;quot;''''' '''''&amp;quot;dxt3&amp;quot;''''' '''''&amp;quot;dxt5&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''mipmaps''': Un booleano (true o false) ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
* '''textureType''': '''''&amp;quot;wrap&amp;quot;''''' '''''&amp;quot;clamp&amp;quot;''''' '''''&amp;quot;mirror&amp;quot;''''' ; &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#000000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Para mas información véase [[dxCreateTexture]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlibrary:dxGetLibrary())()&lt;br /&gt;
--creamos una imagen&lt;br /&gt;
dxImage(561, 92, 116, 92, &amp;quot;:admin/client/images/map.png&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74644</id>
		<title>DxGridListGetScrollHV</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74644"/>
		<updated>2022-05-21T19:06:21Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para extraer el scroll horizontal y vertical de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element element dxGridListGetScrollHV( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos varias filas de items, hay 3 valores en cada sub-tabke porque solamente se crearon 3 columnas ↑&lt;br /&gt;
for _, v in ipairs({{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'}}) do&lt;br /&gt;
   dxGridListAddItem(lista, unpack(v))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--extramos las scroll&lt;br /&gt;
scrollH, scrollV = dxGridListGetScrollHV(lista)&lt;br /&gt;
&lt;br /&gt;
--Le cambiamos el boton de las scroll a rojo.&lt;br /&gt;
dxScrollSetColorButton(scrollH, 255, 0, 0, 255)&lt;br /&gt;
dxScrollSetColorButton(scrollV, 255, 0, 0, 255)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74643</id>
		<title>DxGridListGetScrollHV</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetScrollHV&amp;diff=74643"/>
		<updated>2022-05-21T19:05:51Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para extraer el scroll horizontal y vertical de una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element element dxGridListGetScrollHV( element element ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList.  ==Ej...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para extraer el scroll horizontal y vertical de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element element dxGridListGetScrollHV( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos varias filas de items, hay 3 valores en cada sub-tabke porque solamente se crearon 3 columnas ↑&lt;br /&gt;
for _, v in ipairs({{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'},{'Infernus', 'Claw', '50000'}, {'Sultan', 'Pand', '500000'}, {'Towtruck', 'Bert', '5000200'}}) do&lt;br /&gt;
   dxGridListAddItem(lista, unpack(v))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-extramos las scroll&lt;br /&gt;
scrollH, scrollV = dxGridListGetScrollHV(lista)&lt;br /&gt;
&lt;br /&gt;
--Le cambiamos el boton de las scroll a rojo.&lt;br /&gt;
dxScrollSetColorButton(scrollH, 255, 0, 0, 255)&lt;br /&gt;
dxScrollSetColorButton(scrollV, 255, 0, 0, 255)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListSetItemSelected&amp;diff=74642</id>
		<title>DxGridListSetItemSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListSetItemSelected&amp;diff=74642"/>
		<updated>2022-05-21T18:49:51Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para seleccionar una fila de articulos/items de una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxGridListSetItemSelected( element element, int index ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList. *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para seleccionar una fila de articulos/items de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListSetItemSelected( element element, int index )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''index''': El numero de la fila a seleccionar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&lt;br /&gt;
boton = dxButton( 276, 80, 100, 40, 'Clickea')&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, boton,&lt;br /&gt;
   function()&lt;br /&gt;
      dxGridListSetItemSelected(lista, math.random(2))&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74641</id>
		<title>DxGridListGetItemSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74641"/>
		<updated>2022-05-21T17:17:29Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para obtener la fila de articulos/items seleccionada de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int table dxGridListGetItemSelected( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
===Retorno===&lt;br /&gt;
* '''int''': El numero de la fila seleccionada.&lt;br /&gt;
* '''table''': Una tabla con todos los articulos/items de la fila seleccionada&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&lt;br /&gt;
boton = dxButton( 276, 80, 100, 40, 'Clickea')&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, boton,&lt;br /&gt;
   function()&lt;br /&gt;
      local inx, tab = dxGridListGetItemSelected(lista)&lt;br /&gt;
      if inx ~= -1 then&lt;br /&gt;
         print(inspect(tab))&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74640</id>
		<title>DxGridListGetItemSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListGetItemSelected&amp;diff=74640"/>
		<updated>2022-05-21T17:14:15Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para obtener la fila de articulos/items seleccionada de una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int table dxGridListGetItemSelected( element element ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para obtener la fila de articulos/items seleccionada de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int table dxGridListGetItemSelected( element element )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
===Retorno===&lt;br /&gt;
* '''int''': Es el numero de la fila seleccionada.&lt;br /&gt;
* '''table''': Una tabla con todos los articulos/items de la fila seleccionada&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&lt;br /&gt;
boton = dxButton( 276, 80, 100, 40, 'Clickea')&lt;br /&gt;
addEventHandler ( &amp;quot;onClick&amp;quot;, boton,&lt;br /&gt;
   function()&lt;br /&gt;
      local inx, tab = dxGridListGetItemSelected(lista)&lt;br /&gt;
      if inx ~= -1 then&lt;br /&gt;
         print(inspect(tab))&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveColumn&amp;diff=74639</id>
		<title>DxGridListRemoveColumn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveColumn&amp;diff=74639"/>
		<updated>2022-05-21T07:39:27Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para remover una columna de una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxGridListRemoveColumn( element element, string name ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList. * '''name''': El nombr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para remover una columna de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListRemoveColumn( element element, string name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''name''': El nombre de la columna a eliminar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--eliminamos la segunda columna&lt;br /&gt;
dxGridListRemoveColumn(lista, 'Dueño')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListAddColumn&amp;diff=74638</id>
		<title>DxGridListAddColumn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListAddColumn&amp;diff=74638"/>
		<updated>2022-05-21T07:37:31Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para agregar una columna a una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxGridListAddColumn( element element, string name, float size ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList. * '''name''':...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para agregar una columna a una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListAddColumn( element element, string name, float size )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''name''': El nombre de la columna.&lt;br /&gt;
* '''size''': Un flotante que representa el tamaño de separación entre la columna actual y la siguiente.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74637</id>
		<title>DxGridListAddItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74637"/>
		<updated>2022-05-21T07:33:55Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para agregar un articulo/ítem a una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListAddItem( element element, columna1, columna2, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''...''': El numero sin fin de artículos/ítems a agregar según la cantidad de columnas.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveItem&amp;diff=74636</id>
		<title>DxGridListRemoveItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListRemoveItem&amp;diff=74636"/>
		<updated>2022-05-21T07:33:15Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para eliminar un articulo/ítem de una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxGridListRemoveItem( element element, int index ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList. * '''index''': Un e...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para eliminar un articulo/ítem de una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxGridListRemoveItem( element element, int index )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''index''': Un entero que representa el índice de la fila a eliminar.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000') -- fila 1&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000') -- fila 2&lt;br /&gt;
&lt;br /&gt;
--Eliminamos la fila 1&lt;br /&gt;
dxGridListRemoveItem(lista, 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74635</id>
		<title>DxGridListAddItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridListAddItem&amp;diff=74635"/>
		<updated>2022-05-21T07:28:27Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para agregar un articulo/ítem a una dxGridList.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dxGridListAddItem( element element, columna1, column2, ... ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''element''': El elemento dxGridList. * '''......&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para agregar un articulo/ítem a una [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxGridListAddItem( element element, columna1, column2, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''element''': El elemento [[dxGridList]].&lt;br /&gt;
* '''...''': El numero sin fin de artículos/ítems a agregar según la cantidad de columnas.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Agregamos 2 filas de items, hay 3 valores en cada función porque solamente se crearon 3 columnas ↑&lt;br /&gt;
dxGridListAddItem(lista, 'Infernus', 'Claw', '50000')&lt;br /&gt;
dxGridListAddItem(lista, 'Sultan', 'Pand', '50000')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGridList&amp;diff=74634</id>
		<title>DxGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGridList&amp;diff=74634"/>
		<updated>2022-05-21T07:20:54Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función crea una lista de cuadrícula basado en dxDrawing.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dxGridList( int x, int y, int w, int h, [ element parent = nil] ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos=== * '''x''': Un entero que representa la posición X de la...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función crea una lista de cuadrícula basado en dxDrawing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxGridList( int x, int y, int w, int h, [ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
* '''x''': Un entero que representa la posición X de la pantalla.&lt;br /&gt;
* '''y''': Un entero que representa la posición Y de la pantalla.&lt;br /&gt;
* '''w''': Un entero que representa el ancho del [[dxGridList]].&lt;br /&gt;
* '''h''': Un entero que representa la altura del [[dxGridList]].&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
* '''parent''': Este es el padre el cual la [https://wiki.multitheftauto.com/wiki/dxGridList gridlist] se adjunta.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una lista&lt;br /&gt;
lista = dxGridList( 588, 349, 351, 120 )&lt;br /&gt;
&lt;br /&gt;
--Agregamos 3 columnas a la lista...&lt;br /&gt;
for _, c in ipairs({{'Vehiculo', 2}, {'Dueño', 2}, {'Costo', 3}}) do&lt;br /&gt;
   dxGridListAddColumn(lista, c[1], c[2])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxEditSetMaxCharacters&amp;diff=74633</id>
		<title>DxEditSetMaxCharacters</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxEditSetMaxCharacters&amp;diff=74633"/>
		<updated>2022-05-21T07:11:38Z</updated>

		<summary type="html">&lt;p&gt;ClawSuit: Created page with &amp;quot;__NOTOC__  {{Client function}} Esta función sirve para colocar un maximo de caracteres que se pueden escribir en un dxEdit.  &amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por Modern-Library!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt; ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxEditSetMaxCharacters( element element, int quantity ) &amp;lt;/syntaxhighlight&amp;gt;   ===Argumentos requeridos===  *'''element:''' El elemento dxEdi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Esta función sirve para colocar un maximo de caracteres que se pueden escribir en un [[dxEdit]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;'''&amp;lt;span style=&amp;quot;color:#ff0000; text-shadow:black 0em 0.1em 0.1em;&amp;quot;&amp;gt;''Aviso: Esta es una función exportada por [[Modern-Library]]!''&amp;lt;/span&amp;gt;'''&amp;lt;/small&amp;gt;&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxEditSetMaxCharacters( element element, int quantity )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
*'''element:''' El elemento [[dxEdit]].&lt;br /&gt;
*'''quantity:''' Un entero que representa la cantidad de caracteres.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dxlib:dxGetLibrary())()&lt;br /&gt;
&lt;br /&gt;
--creamos una caja de texto&lt;br /&gt;
edit = dxEdit(277, 184, 197, 46, 'edit demo 1')&lt;br /&gt;
-- Le colocamos un maximo de 30 caracteres&lt;br /&gt;
dxEditSetMaxCharacters(edit, 30)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{DXLIB_FUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ClawSuit</name></author>
	</entry>
</feed>