<?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=Chumillas</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=Chumillas"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Chumillas"/>
	<updated>2026-05-12T19:30:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=24093</id>
		<title>ForcePlayerMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=24093"/>
		<updated>2010-07-23T11:19:56Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: /* Example update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to forcefully show a player's radar map.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool forcePlayerMap ( player thePlayer, bool forceOn )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': A [[player]] object referencing the specified player&lt;br /&gt;
*'''forceOn''': A boolean value representing whether or not the players radar map will be forced on&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's radar map was forced on, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example forces the radar map of the player named &amp;quot;Pedro&amp;quot; on for 10 seconds, if it hasn't been already&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get the player named &amp;quot;Pedro&amp;quot;&lt;br /&gt;
Pedro = getPlayerFromName ( &amp;quot;Pedro&amp;quot; )&lt;br /&gt;
-- Pedro sure we found him&lt;br /&gt;
if ( Pedro ) then&lt;br /&gt;
    if not isPlayerMapForced ( Pedro ) then                  -- if his radar map isn't already forced on&lt;br /&gt;
        forcePlayerMap ( Pedro, true )                       -- force it on&lt;br /&gt;
        setTimer ( forcePlayerMap, 10000, 1, Pedro, false )  -- stop forcing in 10 seconds&lt;br /&gt;
    end&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;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=24088</id>
		<title>ForcePlayerMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=24088"/>
		<updated>2010-07-22T20:55:57Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to forcefully show a player's radar map.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool forcePlayerMap ( player thePlayer, bool forceOn )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': A [[player]] object referencing the specified player&lt;br /&gt;
*'''forceOn''': A boolean value representing whether or not the players radar map will be forced on&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's radar map was forced on, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example forces the radar map of the player named &amp;quot;dave&amp;quot; on for 10 seconds, if it hasn't been already&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get the player named &amp;quot;Pedro&amp;quot;&lt;br /&gt;
dave = getPlayerFromName ( &amp;quot;Pedro&amp;quot; )&lt;br /&gt;
-- Make sure we found him&lt;br /&gt;
if ( dave ) then&lt;br /&gt;
    if not isPlayerMapForced ( dave ) then                  -- if his radar map isn't already forced on&lt;br /&gt;
        forcePlayerMap ( dave, true )                       -- force it on&lt;br /&gt;
        setTimer ( forcePlayerMap, 10000, 1, dave, false )  -- stop forcing in 10 seconds&lt;br /&gt;
    end&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;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Chumillas&amp;diff=24075</id>
		<title>User talk:Chumillas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Chumillas&amp;diff=24075"/>
		<updated>2010-07-20T17:22:25Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: Created page with 'YAY! Contact: chusmadones@gmail.com'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;YAY!&lt;br /&gt;
Contact: chusmadones@gmail.com&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Code_Snippets_General&amp;diff=24045</id>
		<title>Code Snippets General</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Code_Snippets_General&amp;diff=24045"/>
		<updated>2010-07-14T11:34:44Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains general purpose code snippets.&lt;br /&gt;
&lt;br /&gt;
''(You can test your code in http://www.lua.org/demo.html)''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Mathematical Snippets =&lt;br /&gt;
&lt;br /&gt;
=== Generating Pseudo-Random Numbers ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
math.random( 3, 9 ) -- Generates a random integer between 3 and 9 inclusively.&lt;br /&gt;
math.Rand( 3, 9 ) -- Generates a random real number (floating point) between 3 and 9 inclusively.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Better Rounding ===&lt;br /&gt;
* This allows you to round to a decimal point instead of to a whole number.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Rounds to the 2nd decimal point&lt;br /&gt;
-- Usage: math.AdvRound( 1.6443132, 2 ); &lt;br /&gt;
--&lt;br /&gt;
function math.AdvRound( val, d )&lt;br /&gt;
	d = d or 0;&lt;br /&gt;
	&lt;br /&gt;
	return math.Round( val * (10 ^ d) ) / (10 ^ d);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Toggling a Boolean ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Boolean = false&lt;br /&gt;
 -- Toggle the boolean.&lt;br /&gt;
Boolean = not Boolean&lt;br /&gt;
-- or, in C-style notation:&lt;br /&gt;
Boolean = !Boolean&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
=== Defining Multiple Variables ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- X = 1, Y = 2, Z = 3.&lt;br /&gt;
local X, Y, Z = 1, 2, 3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using OR ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- If Y is non-nil, set X to Y; otherwise, set X to 0.&lt;br /&gt;
local X = Y or 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Switching Two Variables without Making a Third ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
a,b = b,a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Loops and statements =&lt;br /&gt;
&lt;br /&gt;
=== Looping through Every Character in a String ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 for i = 1, string.len( strToLoop ) do&lt;br /&gt;
    local Character = string.sub( strToLoop, i, i )&lt;br /&gt;
     -- Do stuff with Character here.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using 'repeat, until' ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
repeat&lt;br /&gt;
num = math.random( 200 )&lt;br /&gt;
Msg( num .. &amp;quot;\n&amp;quot; )&lt;br /&gt;
until( num == 25 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Doing 'if .. then ... else' in One Line ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local value = ( x &amp;gt; 1 ) &amp;amp;&amp;amp; &amp;quot;X is greater&amp;quot; || &amp;quot;X isn't greater&amp;quot;;&lt;br /&gt;
--and in STD. Lua notation:&lt;br /&gt;
local value = ( x &amp;gt; 1 ) and &amp;quot;X is greater&amp;quot; or &amp;quot;X isn't greater&amp;quot;;&lt;br /&gt;
--basic format for Inline Conditionals:&lt;br /&gt;
local value = (Condition) and TrueValue or FalseValue;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Returning 'if .. then ... else' ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
return current &amp;lt; max and func( current + 1, max ) or nil&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Miscellaneous =&lt;br /&gt;
=== Convert XYToRelative (by Cazomino05) ===&lt;br /&gt;
&lt;br /&gt;
Converts an XY co-ordinate to a relative size requires the resolution you tested it on (you can find it in gta display settings)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ConvertXYToRelative(Resx, Resy, x, y)&lt;br /&gt;
    local Rx = (1/Resx)*x&lt;br /&gt;
    local Ry = (1/Resy)*y&lt;br /&gt;
    return Rx,Ry&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- EXAMPLE&lt;br /&gt;
function ResourceStarted(resource)&lt;br /&gt;
    if (resource ~= getThisResource()) then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local x,y = ConvertXYToRelative(800, 600, 400, 300)&lt;br /&gt;
    outputChatBox(&amp;quot;Relative sizes:  &amp;quot;..x..&amp;quot;, &amp;quot;..y)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getRootElement(), ResourceStarted)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Code_Snippets_General&amp;diff=24044</id>
		<title>Code Snippets General</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Code_Snippets_General&amp;diff=24044"/>
		<updated>2010-07-14T11:34:09Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: Created page with '{{CatUp|Common Code Snippets}} This page contains general purpose code snippets.  ''(You can test your code in http://www.lua.org/demo.html)''    = Mathematical Snippets =  === G…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{CatUp|Common Code Snippets}}&lt;br /&gt;
This page contains general purpose code snippets.&lt;br /&gt;
&lt;br /&gt;
''(You can test your code in http://www.lua.org/demo.html)''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Mathematical Snippets =&lt;br /&gt;
&lt;br /&gt;
=== Generating Pseudo-Random Numbers ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
math.random( 3, 9 ) -- Generates a random integer between 3 and 9 inclusively.&lt;br /&gt;
math.Rand( 3, 9 ) -- Generates a random real number (floating point) between 3 and 9 inclusively.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Better Rounding ===&lt;br /&gt;
* This allows you to round to a decimal point instead of to a whole number.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Rounds to the 2nd decimal point&lt;br /&gt;
-- Usage: math.AdvRound( 1.6443132, 2 ); &lt;br /&gt;
--&lt;br /&gt;
function math.AdvRound( val, d )&lt;br /&gt;
	d = d or 0;&lt;br /&gt;
	&lt;br /&gt;
	return math.Round( val * (10 ^ d) ) / (10 ^ d);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Toggling a Boolean ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Boolean = false&lt;br /&gt;
 -- Toggle the boolean.&lt;br /&gt;
Boolean = not Boolean&lt;br /&gt;
-- or, in C-style notation:&lt;br /&gt;
Boolean = !Boolean&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
=== Defining Multiple Variables ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- X = 1, Y = 2, Z = 3.&lt;br /&gt;
local X, Y, Z = 1, 2, 3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using OR ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- If Y is non-nil, set X to Y; otherwise, set X to 0.&lt;br /&gt;
local X = Y or 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Switching Two Variables without Making a Third ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
a,b = b,a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Loops and statements =&lt;br /&gt;
&lt;br /&gt;
=== Looping through Every Character in a String ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 for i = 1, string.len( strToLoop ) do&lt;br /&gt;
    local Character = string.sub( strToLoop, i, i )&lt;br /&gt;
     -- Do stuff with Character here.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using 'repeat, until' ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
repeat&lt;br /&gt;
num = math.random( 200 )&lt;br /&gt;
Msg( num .. &amp;quot;\n&amp;quot; )&lt;br /&gt;
until( num == 25 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Doing 'if .. then ... else' in One Line ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local value = ( x &amp;gt; 1 ) &amp;amp;&amp;amp; &amp;quot;X is greater&amp;quot; || &amp;quot;X isn't greater&amp;quot;;&lt;br /&gt;
--and in STD. Lua notation:&lt;br /&gt;
local value = ( x &amp;gt; 1 ) and &amp;quot;X is greater&amp;quot; or &amp;quot;X isn't greater&amp;quot;;&lt;br /&gt;
--basic format for Inline Conditionals:&lt;br /&gt;
local value = (Condition) and TrueValue or FalseValue;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Returning 'if .. then ... else' ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
return current &amp;lt; max and func( current + 1, max ) or nil&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Miscellaneous =&lt;br /&gt;
=== Convert XYToRelative (by Cazomino05) ===&lt;br /&gt;
&lt;br /&gt;
Converts an XY co-ordinate to a relative size requires the resolution you tested it on (you can find it in gta display settings)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ConvertXYToRelative(Resx, Resy, x, y)&lt;br /&gt;
    local Rx = (1/Resx)*x&lt;br /&gt;
    local Ry = (1/Resy)*y&lt;br /&gt;
    return Rx,Ry&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- EXAMPLE&lt;br /&gt;
function ResourceStarted(resource)&lt;br /&gt;
    if (resource ~= getThisResource()) then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local x,y = ConvertXYToRelative(800, 600, 400, 300)&lt;br /&gt;
    outputChatBox(&amp;quot;Relative sizes:  &amp;quot;..x..&amp;quot;, &amp;quot;..y)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getRootElement(), ResourceStarted)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22281</id>
		<title>Modules/MTA-MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22281"/>
		<updated>2010-01-13T17:51:32Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: The mistake is in another part. Maybe the directory for mta_mysql.dll should be in server/modules&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module_Info|&lt;br /&gt;
  name           = MTA MySQL |&lt;br /&gt;
  version        = 0.41 |&lt;br /&gt;
  author         = [[User:ryden|Alberto Alonso (ryden)]] |&lt;br /&gt;
  module_website = ''Not available'' |&lt;br /&gt;
  download_link  = [http://dan.bastage.net/mta/MTA-MySQL-0.41.rar Here] |&lt;br /&gt;
  license        = [http://www.opensource.org/licenses/bsd-license.php BSD]&lt;br /&gt;
}}&lt;br /&gt;
MTA MySQL is an alternative to the default [[Modules/MySQL|ml_mysql]] module provided by the MTA team.&lt;br /&gt;
It is available for Windows and GNU/Linux and provides the source code.&lt;br /&gt;
&lt;br /&gt;
''Note: From version 0.4 it supports both DP2.3 and 1.0 servers.''&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
===Windows===&lt;br /&gt;
Uncompress the file mta_mysql.dll into your ''C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\'' directory and the file libmysql.dll into your ''C:\Program files\MTA San Andreas\server\'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;mta_mysql.dll&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GNU/Linux===&lt;br /&gt;
Uncompress the file mta_mysql.so in the ''mods/deathmatch/modules/'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;mta_mysql.so&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you experience an error on Unix systems:'''&lt;br /&gt;
Try to add port and socket parameters to your mysql_connect.&lt;br /&gt;
&lt;br /&gt;
==Linux 1.0.3+ servers==&lt;br /&gt;
It appears that the current version does not work with the 1.0.3 linux servers, a recompiled MTA-MySQL.so is available for download here: http://forum.multitheftauto.com/download/file.php?id=217&lt;br /&gt;
&lt;br /&gt;
==Handler functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Handler_functions}}&lt;br /&gt;
&lt;br /&gt;
==Result managing functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Result_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22280</id>
		<title>Modules/MTA-MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22280"/>
		<updated>2010-01-13T15:09:13Z</updated>

		<summary type="html">&lt;p&gt;Chumillas: &amp;lt;module src=&amp;quot;mta_mysql.dll&amp;quot; /&amp;gt;  FIXED INTO: &amp;lt;module src=&amp;quot;../mta_mysql.dll&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module_Info|&lt;br /&gt;
  name           = MTA MySQL |&lt;br /&gt;
  version        = 0.41 |&lt;br /&gt;
  author         = [[User:ryden|Alberto Alonso (ryden)]] |&lt;br /&gt;
  module_website = ''Not available'' |&lt;br /&gt;
  download_link  = [http://dan.bastage.net/mta/MTA-MySQL-0.41.rar Here] |&lt;br /&gt;
  license        = [http://www.opensource.org/licenses/bsd-license.php BSD]&lt;br /&gt;
}}&lt;br /&gt;
MTA MySQL is an alternative to the default [[Modules/MySQL|ml_mysql]] module provided by the MTA team.&lt;br /&gt;
It is available for Windows and GNU/Linux and provides the source code.&lt;br /&gt;
&lt;br /&gt;
''Note: From version 0.4 it supports both DP2.3 and 1.0 servers.''&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
===Windows===&lt;br /&gt;
Uncompress the file mta_mysql.dll into your ''C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\'' directory and the file libmysql.dll into your ''C:\Program files\MTA San Andreas\server\'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;../mta_mysql.dll&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GNU/Linux===&lt;br /&gt;
Uncompress the file mta_mysql.so in the ''mods/deathmatch/modules/'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;../mta_mysql.so&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you experience an error on Unix systems:'''&lt;br /&gt;
Try to add port and socket parameters to your mysql_connect.&lt;br /&gt;
&lt;br /&gt;
==Linux 1.0.3+ servers==&lt;br /&gt;
It appears that the current version does not work with the 1.0.3 linux servers, a recompiled MTA-MySQL.so is available for download here: http://forum.multitheftauto.com/download/file.php?id=217&lt;br /&gt;
&lt;br /&gt;
==Handler functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Handler_functions}}&lt;br /&gt;
&lt;br /&gt;
==Result managing functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Result_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Chumillas</name></author>
	</entry>
</feed>