<?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=Gothemsh</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=Gothemsh"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Gothemsh"/>
	<updated>2026-04-22T05:45:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsResourceArchived&amp;diff=51587</id>
		<title>IsResourceArchived</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsResourceArchived&amp;diff=51587"/>
		<updated>2017-07-05T19:12:49Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Fixed build number and added example.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature/item|3.0155|1.5.5|11550|&lt;br /&gt;
Checks whether a resource is currently archived (running from within a ZIP file).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isResourceArchived ( resource resourceElement )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[resource]]:isArchived|archived|}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''resource:''' the resource to check&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if a resource is archived, ''false'' if it is not archived, or ''nil'' if there is problem with resource.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
This example stops the resource from loading if it's archived&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function resourceLoading( res )&lt;br /&gt;
    if res.archived then&lt;br /&gt;
        cancelEvent()&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addEventHandler('onResourcePreStart',root,resourceLoading,true,'high+10')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiComboBoxGetSelected&amp;diff=46275</id>
		<title>GuiComboBoxGetSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiComboBoxGetSelected&amp;diff=46275"/>
		<updated>2015-12-29T23:03:33Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Added OOP Syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the index of the selected combobox item.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiComboBoxGetSelected ( element comboBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/GUI/Combobox|GuiComboBox]]:getSelected|selected|guiComboBoxSetSelected}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''comboBox:''' the combobox you want to know the selected item index of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the index of the selected item if the specified combobox is valid and has a selected item, ''-1'' if no item is selected, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs selected item's text and ID to the chat.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getSelected&amp;quot;,&lt;br /&gt;
function (command)&lt;br /&gt;
&lt;br /&gt;
local item = guiComboBoxGetSelected(comboBox)&lt;br /&gt;
local text = guiComboBoxGetItemText(comboBox, item)&lt;br /&gt;
&lt;br /&gt;
outputChatBox(&amp;quot;Currently selected item with ID: &amp;quot; .. tostring(item) .. &amp;quot; and with text: &amp;quot; .. text)&lt;br /&gt;
&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetText&amp;diff=46274</id>
		<title>GuiGetText</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetText&amp;diff=46274"/>
		<updated>2015-12-29T22:55:57Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Added OOP Syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function is used to get the text of GUI elements like edit boxes, labels, buttons etc.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string guiGetText ( element guiElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element|guiElement]]:getText|text|guiSetText}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''guiElement:''' element you wish to get text of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns a string containing the requested element's text, or false if the gui element passed to the function is invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example gets the text of a pre-made gui element and outputs it to chat box.&lt;br /&gt;
&amp;lt;!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- We create a dummy gui label to get text of&lt;br /&gt;
local dummyGUIElement = guiCreateLabel ( 0.45, 0.48, 0.10, 0.04, &amp;quot;Hello world&amp;quot;, true )&lt;br /&gt;
-- Output the text of the label to chat box&lt;br /&gt;
outputChatBox ( &amp;quot;Text in the GUI label: &amp;quot; .. guiGetText ( dummyGUIElement ) )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetSelectedTab&amp;diff=46273</id>
		<title>GuiGetSelectedTab</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetSelectedTab&amp;diff=46273"/>
		<updated>2015-12-29T22:45:07Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Added OOP Syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the currently selected tab in the specified [[Element/GUI/Tab panel|tab panel]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiGetSelectedTab ( element tabPanel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Tab panel|GuiTabPanel]]:getSelectedTab|selectedTab|guiSetSelectedTab}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''tabPanel:''' The [[Element/GUI/Tab panel|tab panel]] which current tab you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[element]] of the [[Element/GUI/Tab|tab]] if a tab was selected or [[nil]] if no tab was selected. If passed arguments were invalid or something went wrong, the function will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the current selected tab and sets the selected tab to the next available tab.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true) --create a tab panel which fills the whole window&lt;br /&gt;
local tab1 = guiCreateTab(&amp;quot;Welcome&amp;quot;,tabPanel) --create a tab for the tab panel above&lt;br /&gt;
local tab2 = guiCreateTab(&amp;quot;Info&amp;quot;,tabPanel)--create another tab for the tab panel at the top&lt;br /&gt;
&lt;br /&gt;
function check()&lt;br /&gt;
   if(guiGetSelectedTab(tabPanel)==tab1)then --Check what tab is currently shown&lt;br /&gt;
      guiSetSelectedTab(tabPanel,tab2) --if the &amp;quot;Welcome&amp;quot; tab is selected, change it to tab2(&amp;quot;Info&amp;quot; tab)&lt;br /&gt;
   else&lt;br /&gt;
      guiSetSelectedTab(tabPanel,tab1) --if the &amp;quot;Info&amp;quot; tab is selected, change it to tab1(&amp;quot;Welcome&amp;quot; tab)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapon&amp;diff=42046</id>
		<title>GetPedWeapon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapon&amp;diff=42046"/>
		<updated>2014-09-18T15:59:20Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function tells you which weapon type is in a certain weapon slot of a ped. See [[weapon|Weapon Info]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPedWeapon ( ped thePed, [ int weaponSlot = current ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP|This function is also a static function underneath the Ped class.|[[Ped]]:getWeapon|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': the [[ped]] you want to get the weapon type from.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''weaponSlot''': an integer representing the weapon slot (set to the ped's current slot if not given).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the type of the weapon the ped has in the specified slot. If the slot is empty, it returns 0.&lt;br /&gt;
&lt;br /&gt;
It should be noted that if a ped runs out of ammo for a weapon, it will still return the ID of that weapon in the slot (even if it appears as if the ped does not have a weapon at all), though [[getPedTotalAmmo]] will return '''0'''.  Therefore, [[getPedTotalAmmo]] should be used in conjunction with [[getPedWeapon]] in order to check if a ped has a weapon.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will display a player's current weapon type. In this case,a random player.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find a player called someguy and find his current weapon id.&lt;br /&gt;
local weaponType = getPedWeapon ( getRandomPlayer() )&lt;br /&gt;
-- If a weapon type was returned then&lt;br /&gt;
if ( weaponType ) then&lt;br /&gt;
    outputChatBox ( &amp;quot;someguy's current Weapon-type: &amp;quot; .. weaponType .. &amp;quot;.&amp;quot; ) -- Display the weapon type in the chat box&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;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=42044</id>
		<title>GetPedOccupiedVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedOccupiedVehicle&amp;diff=42044"/>
		<updated>2014-09-18T15:09:42Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the [[vehicle]] that the ped is currently in or is trying to enter, if any.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicle getPedOccupiedVehicle ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP|This function is also a static function underneath the Ped class.|[[Ped]]:getOccupiedVehicle|vehicle|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] whose vehicle you're looking up.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the vehicle that the specified ped is in, or ''false'' if the ped is not in a vehicle or is an invalid ped.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
When a ped enters the 'getcarname' command and is currently in a vehicle, this example outputs the name of the vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showVehicleName ( thePlayer )&lt;br /&gt;
   local theVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
   if theVehicle then&lt;br /&gt;
      outputChatBox ( &amp;quot;Name of the Vehicle: &amp;quot; .. getVehicleName ( theVehicle ), thePlayer )&lt;br /&gt;
   else&lt;br /&gt;
      outputChatBox ( &amp;quot;You do not have a Vehicle!&amp;quot;, thePlayer, 255, 0, 0, true )&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;getcarname&amp;quot;, showVehicleName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAllElementsStartingAt&amp;diff=34326</id>
		<title>GetAllElementsStartingAt</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAllElementsStartingAt&amp;diff=34326"/>
		<updated>2012-12-22T21:40:06Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Created page with &amp;quot;{{Useful Function}} __NOTOC__ This function can be used to itinerate through a whole tree without having an element type. useful to get all the elements of a custom map.&amp;lt;br&amp;gt; * ''...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function can be used to itinerate through a whole tree without having an element type. useful to get all the elements of a custom map.&amp;lt;br&amp;gt;&lt;br /&gt;
* '''NOTE:''' This need more testing specially in deeps trees.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getAllElementsStartingAt(element theStartingElement )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theStartingElement''': The element where the itineration will start, searching through all the childrens&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&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 getAllElementsStartingAt(startElement)&lt;br /&gt;
	local tabla = {}&lt;br /&gt;
	for k,v in ipairs(getElementChildren(startElement)) do&lt;br /&gt;
		table.insert(tabla,v)&lt;br /&gt;
		local childs = getElementChildren(startElement)&lt;br /&gt;
		if #childs &amp;gt; 0 then&lt;br /&gt;
			for q,w in ipairs(getAllElementsStartingAt(v)) do&lt;br /&gt;
				table.insert(tabla,w)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return tabla&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;
This example change all the elements of a whole map to the fifth dimension&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
for k,v in ipairs(getAllElementsStartingAt(mapRoot)) do&lt;br /&gt;
	setElementDimension(v,5)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Author: Gothem&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Interior_IDs&amp;diff=29038</id>
		<title>Interior IDs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Interior_IDs&amp;diff=29038"/>
		<updated>2012-01-18T05:28:53Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;San Andreas Interior ID list.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 0:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Normal world''' || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 1:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-nation 1''' || 289.7870 || -35.7190 || 1003.5160&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 1''' || 224.6351 || 1289.012 || 1082.141 &lt;br /&gt;
|-&lt;br /&gt;
| '''The Wellcome Pump (Catalina?)''' || 681.65 || -452.86 || -25.62&lt;br /&gt;
|-&lt;br /&gt;
| '''Restaurant 1''' || 446.6941 || -9.7977 || 1000.7340&lt;br /&gt;
|-&lt;br /&gt;
| '''Caligulas Casino''' || 2235.2524 || 1708.5146 || 1010.6129&lt;br /&gt;
|-&lt;br /&gt;
| '''Denise's Place''' || 244.0892 || 304.8456 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
| '''Shamal cabin''' || 1.6127 || 34.7411 || 1199.0&lt;br /&gt;
|-&lt;br /&gt;
| '''Liberty City''' || -750.80 || 491.00 || 1371.70&lt;br /&gt;
|-&lt;br /&gt;
| '''Sweet's House''' || 2525.0420 || -1679.1150 || 1015.4990&lt;br /&gt;
|-&lt;br /&gt;
| '''Transfender''' || 621.7850 || -12.5417 || 1000.9220&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 4''' || 2216.5400 || -1076.2900 || 1050.4840&lt;br /&gt;
|-&lt;br /&gt;
| '''Trials(Hyman Memorial?) Stadium''' || -1401.13 || 106.110 || 1032.273&lt;br /&gt;
|-&lt;br /&gt;
| '''Warehouse 1''' || 1405.3120 || -8.2928 || 1000.9130&lt;br /&gt;
|-&lt;br /&gt;
| '''Doherty Garage''' || -2042.42 || 178.59 || 28.84 ||  	   &lt;br /&gt;
|-&lt;br /&gt;
| '''Sindacco Abatoir''' || 963.6078 || 2108.3970 || 1011.0300&lt;br /&gt;
|-&lt;br /&gt;
| '''Sub Urban''' || 203.8173 || -46.5385 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
| '''Wu Zi Mu's Betting place''' || -2159.9260 || 641.4587 || 1052.3820&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 2:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ryder's House''' || 2464.2110 || -1697.9520 || 1013.5080&lt;br /&gt;
|-&lt;br /&gt;
| '''Angel Pine Trailer''' || 0.3440 || -0.5140 || 1000.5490¨&lt;br /&gt;
|-&lt;br /&gt;
| '''The Pig Pen''' || 1213.4330 ||-6.6830 || 1000.9220&lt;br /&gt;
|-&lt;br /&gt;
| '''BDups Crack Palace''' || 1523.7510 || -46.0458 || 1002.1310&lt;br /&gt;
|-&lt;br /&gt;
| '''Big Smoke's Crack Palace''' || 2543.6610 || -1303.9320 || 1025.0700&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 2''' || 225.756 || 1240.000 || 1082.149&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 3''' || 447.470 || 1398.348 || 1084.305&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 4''' || 491.740 || 1400.541 || 1080.265&lt;br /&gt;
|-&lt;br /&gt;
| '''Katie's Place''' || 267.2290 || 304.7100 || 999.1480&lt;br /&gt;
|-&lt;br /&gt;
| '''Loco Low Co.''' || 612.5910 || -75.6370 || 997.9920&lt;br /&gt;
|-&lt;br /&gt;
| '''Reece's Barbershop''' || 612.5910 || -75.6370 || 997.9920&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 3:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Jizzy's Pleasure Domes''' || -2636.7190 || 1402.9170 || 906.4609&lt;br /&gt;
|-&lt;br /&gt;
| '''Brothel''' || 940.6520 || -18.4860 || 1000.9300&lt;br /&gt;
|-&lt;br /&gt;
| '''Brothel 2''' || 967.5334 || -53.0245 || 1001.1250&lt;br /&gt;
|-&lt;br /&gt;
| '''BDups Apartment''' || 1527.38 || -11.02 || 1002.10 &lt;br /&gt;
|-&lt;br /&gt;
| '''Bike School''' || 1494.3350 || 1305.6510 || 1093.2890&lt;br /&gt;
|-&lt;br /&gt;
| '''Big Spread Ranch''' || 1210.2570 || -29.2986 || 1000.8790&lt;br /&gt;
|-&lt;br /&gt;
| '''LV Tattoo Parlour''' || -204.4390 || -43.6520 || 1002.2990&lt;br /&gt;
|-&lt;br /&gt;
| '''LVPD HQ''' || 289.7703 || 171.7460 || 1007.1790&lt;br /&gt;
|-&lt;br /&gt;
| '''OG Loc's House''' || 516.8890 || -18.4120 || 1001.5650&lt;br /&gt;
|-&lt;br /&gt;
| '''Pro-Laps''' || 207.3560 || -138.0029 || 1003.3130&lt;br /&gt;
|-&lt;br /&gt;
| '''Las Venturas Planning Dep.''' || 374.6708 || 173.8050 || 1008.3893&lt;br /&gt;
|-&lt;br /&gt;
| '''Record Label Hallway''' || 1038.2190 || 6.9905 || 1001.2840&lt;br /&gt;
|-&lt;br /&gt;
| '''Driving School''' || -2027.9200 || -105.1830 || 1035.1720&lt;br /&gt;
|-&lt;br /&gt;
| '''Johnson House''' || 2496.0500 || -1693.9260 || 1014.7420&lt;br /&gt;
|-&lt;br /&gt;
| '''Budget Inn Motel Room''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 5''' || 234.733 || 1190.391 || 1080.258&lt;br /&gt;
|-&lt;br /&gt;
| '''Gay Gordo's Barbershop''' || 418.6530 || -82.6390 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
| '''Helena's Place''' || 292.4459 || 308.7790 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
| '''Inside Track Betting''' || 826.8863 || 5.5091 || 1004.4830&lt;br /&gt;
|-&lt;br /&gt;
| '''Sex Shop''' || -106.7268 || -19.6444 || 1000.7190&lt;br /&gt;
|-&lt;br /&gt;
| '''Wheel Arch Angels''' || 614.3889 || -124.0991 || 997.9950&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 4:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 1''' || -27.3769 || -27.6416 || 1003.5570&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 2''' || 285.8000 || -84.5470 || 1001.5390&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 6''' || -262.91 || 1454.966 || 1084.367&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 7''' || 221.4296 || 1142.423 || 1082.609&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 8''' || 261.1168 || 1286.519 || 1080.258&lt;br /&gt;
|-&lt;br /&gt;
| '''Diner 2''' || 460.0 || -88.43 || 999.62 &lt;br /&gt;
|-&lt;br /&gt;
| '''Dirtbike Stadium''' || -1435.8690 || -662.2505 || 1052.4650&lt;br /&gt;
|-&lt;br /&gt;
| '''Michelle's Place''' || 302.6404 || 304.8048 || 999.1484&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 5:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Madd Dogg's Mansion''' || 1272.9116 || -768.9028 || 1090.5097&lt;br /&gt;
|-&lt;br /&gt;
| '''Well Stacked Pizza Co.''' || 377.7758 || -126.2766 || 1001.4920&lt;br /&gt;
|-&lt;br /&gt;
| '''Victim''' || 221.3310 || -6.6169 || 1005.1977&lt;br /&gt;
|-&lt;br /&gt;
| '''Burning Desire House''' || 2351.1540 || -1180.5770 || 1027.9770&lt;br /&gt;
|-&lt;br /&gt;
| '''Barbara's Place''' || (Police Station??)&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 9''' || 22.79996 || 1404.642 || 1084.43&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 10''' || 228.9003 || 1114.477 || 1080.992&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 11''' || 140.5631 || 1369.051 || 1083.864&lt;br /&gt;
|-&lt;br /&gt;
| '''The Crack Den''' || 322.1117 || 1119.3270 || 1083.8830&lt;br /&gt;
|-&lt;br /&gt;
| '''Police Station (Barbara's)''' || 322.72 || 306.43 || 999.15&lt;br /&gt;
|-&lt;br /&gt;
| '''Diner 1''' || 448.7435 || -110.0457 || 1000.0772&lt;br /&gt;
|-&lt;br /&gt;
| '''Ganton Gym''' || 768.0793 || 5.8606 || 1000.7160&lt;br /&gt;
|-&lt;br /&gt;
| '''Vank Hoff Hotel ''' || 2232.8210 || -1110.0180 || 1050.8830&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 6:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 3''' || 297.4460 || -109.9680 || 1001.5160&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 4''' || 317.2380 || -168.0520 || 999.5930&lt;br /&gt;
|-&lt;br /&gt;
| '''LSPD HQ ''' || 246.4510 || 65.5860 ||1003.6410&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 3''' || 2333.0330 || -1073.9600 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 5''' || 2194.2910 || -1204.0150 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 6''' || 2308.8710 || -1210.7170 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Cobra Marital Arts Gym''' || 774.0870 ||-47.9830 || 1000.5860&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 2''' || -26.7180 || -55.9860 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''Millie's Bedroom''' || 344.5200 || 304.8210 || 999.1480&lt;br /&gt;
|-&lt;br /&gt;
| '''Fanny Batter's Brothel''' || 744.2710 || 1437.2530 || 1102.7030&lt;br /&gt;
|-&lt;br /&gt;
| '''Restaurant 2''' || 443.9810 || -65.2190 || 1050.0000&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 15''' || 234.319 || 1066.455 || 1084.208&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 16''' || -69.049 || 1354.056 || 1080.211&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 7:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Ammu-Nation 5 (2 Floors)''' || 315.3850 || -142.2420 || 999.6010&lt;br /&gt;
|-&lt;br /&gt;
| '''8-Track Stadium''' || -1417.8720 || -276.4260 || 1051.1910&lt;br /&gt;
|-&lt;br /&gt;
| '''Below the Belt Gym''' || 774.2430 || -76.0090 || 1000.6540&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 8:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe house 2''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Colonel Fuhrberger's House''' || 2807.8990 || -1172.9210 || 1025.5700&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 22''' || -42.490 || 1407.644 || 1084.43&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 9:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Unknown safe house''' || 2253.1740 || -1139.0100 || 1050.6330&lt;br /&gt;
|-&lt;br /&gt;
| '''Andromada Cargo hold''' || 315.48 || 984.13 || 1959.11&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 12''' || 85.32596 || 1323.585 || 1083.859&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 13''' || 260.3189 || 1239.663 || 1084.258&lt;br /&gt;
|-&lt;br /&gt;
| '''Cluckin' Bell''' || 365.67 || -11.61 || 1000.87&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 10:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Four Dragons Casino''' || 2009.4140 || 1017.8990 || 994.4680&lt;br /&gt;
|-&lt;br /&gt;
| '''RC Zero's Battlefield''' || -975.5766 || 1061.1312 || 1345.6719&lt;br /&gt;
|-&lt;br /&gt;
| '''Burger Shot''' || 366.4220 || -73.4700 || 1001.5080&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 14''' || 21.241 || 1342.153 || 1084.375 &lt;br /&gt;
|-&lt;br /&gt;
| '''Janitor room(Four Dragons Maintenance)''' || 1891.3960 ||1018.1260 || 31.8820&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe House 1''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Hashbury safe house''' || 2264.5231 || -1210.5229 || 1049.0234&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 3''' || 6.0780 || -28.6330 || 1003.5490&lt;br /&gt;
|-&lt;br /&gt;
| '''Abandoned AC Tower''' || 419.6140 || 2536.6030 || 10.0000&lt;br /&gt;
|-&lt;br /&gt;
| '''SFPD HQ''' || 246.4410 || 112.1640 || 1003.2190&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 11:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''The Four Dragons Office''' || 2011.6030 || 1017.0230 || 39.0910&lt;br /&gt;
|-&lt;br /&gt;
| '''Los Santos safe house''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''Ten Green Bottles Bar''' || 502.3310 || -70.6820 || 998.7570&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 12:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Budget Inn Motel Room''' || &lt;br /&gt;
|-&lt;br /&gt;
| '''The Casino''' || 1132.9450 || -8.6750 || 1000.6800&lt;br /&gt;
|-&lt;br /&gt;
| '''Macisla's Barbershop''' || 411.6410 || -51.8460 || 1001.8980&lt;br /&gt;
|-&lt;br /&gt;
| '''Safe house 7''' || 2237.2970 || -1077.9250 || 1049.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Modern safe house''' || 2324.4990 || -1147.0710 || 1050.7100&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 13:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|'''LS Atrium''' || 1724.33 || -1625.784 || 20.211&lt;br /&gt;
|-&lt;br /&gt;
|'''CJ's Garage''' || -2043.966 || 172.932 || 28.835&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 14:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Kickstart Stadium''' || -1464.5360 || 1557.6900 || 1052.5310&lt;br /&gt;
|-&lt;br /&gt;
| '''Didier Sachs''' || 204.1789 || -165.8740 || 1000.5230&lt;br /&gt;
|-&lt;br /&gt;
| '''Francis Int. Airport (Front ext.)''' || -1827.1473 || 7.2074 || 1061.1435&lt;br /&gt;
|-&lt;br /&gt;
| '''Francis Int. Airport (Baggage Claim/Ticket Sales)''' || -1855.5687 || 41.2631 || 1061.1435&lt;br /&gt;
|-&lt;br /&gt;
| '''Wardrobe''' || 255.7190 || -41.1370 || 1002.0230&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 15:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Binco''' || 207.5430 || -109.0040 || 1005.1330&lt;br /&gt;
|-&lt;br /&gt;
| '''Blood Bowl Stadium''' || -1394.20 || 987.62 || 1023.96&lt;br /&gt;
|-&lt;br /&gt;
| '''Jefferson Motel''' || 2217.6250 || -1150.6580 || 1025.7970&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 17''' || -285.711 || 1470.697 || 1084.375&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 18''' || 327.808 || 1479.74 || 1084.438&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 19''' || 375.572 || 1417.439 || 1081.328&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 20''' || 384.644 || 1471.479 || 1080.195&lt;br /&gt;
|-&lt;br /&gt;
| '''Burglary House 21''' || 295.467 || 1474.697 || 1080.258&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 16:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 4''' || -25.3730 || -139.6540 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''LS Tattoo Parlour''' || -204.5580 || -25.6970 || 1002.2730&lt;br /&gt;
|-&lt;br /&gt;
| '''Sumoring? stadium''' || -1400 || 1250 ||  1040 &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 17:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 5''' || -25.3930 || -185.9110 || 1003.5470&lt;br /&gt;
|-&lt;br /&gt;
| '''Club''' || 493.4687 || -23.0080 || 1000.6796&lt;br /&gt;
|-&lt;br /&gt;
| '''Rusty Brown's - Ring Donuts''' || 377.0030 || -192.5070 || 1000.6330&lt;br /&gt;
|-&lt;br /&gt;
| '''The Sherman's Dam Generator Hall''' || -942.1320 || 1849.1420 || 5.0050&lt;br /&gt;
|-&lt;br /&gt;
| '''Hemlock Tattoo''' || 377.0030 || -192.5070 || 1000.6330&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*'''ID 18:'''&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:50%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Lil Probe Inn''' || -227.0280 || 1401.2290 || 27.7690&lt;br /&gt;
|-&lt;br /&gt;
| '''24/7 shop 6''' || -30.9460 || -89.6090 || 1003.5490&lt;br /&gt;
|-&lt;br /&gt;
| '''Atrium''' || 1726.1370 || -1645.2300 || 20.2260&lt;br /&gt;
|-&lt;br /&gt;
| '''Warehouse 2''' || 1296.6310 || 0.5920 || 1001.0230&lt;br /&gt;
|-&lt;br /&gt;
| '''Zip''' || 161.4620 || -91.3940 || 1001.8050&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
[[id|ID Lists]]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:ID Lists]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28867</id>
		<title>SetFarClipDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28867"/>
		<updated>2011-12-29T12:36:09Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the distance of render.&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Setting this less than 5 may cause problems to the client'''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setFarClipDistance ( float distance )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''distance:''' A float specifying the distance of render.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Add example&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28866</id>
		<title>SetFarClipDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28866"/>
		<updated>2011-12-29T12:35:50Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the distance of render.&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Setting this less than 5 may cause problems to the client'''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setFarClipDistance ( float distance )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''distance:''' A float specifying the distance of render.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Add example&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28865</id>
		<title>SetFarClipDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=28865"/>
		<updated>2011-12-29T12:33:37Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the distance of render.&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Setting this less than 5 may cause problems to the client'''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setFarClipDistance ( float distance )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''distance:''' A float specifying the distance of render.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Introduction_to_Scripting_the_GUI&amp;diff=27625</id>
		<title>Introduction to Scripting the GUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Introduction_to_Scripting_the_GUI&amp;diff=27625"/>
		<updated>2011-11-10T00:53:44Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- place holder --&amp;gt;&lt;br /&gt;
One important feature in MTA:SA is the ability to script customized GUI (Graphic User Interface). The GUI consists of windows, button, edit boxes, check boxes... Almost every standard form components in graphical environments. They can be displayed while the user is in game, and used for inputs and outputs in place of traditional commands. &lt;br /&gt;
&lt;br /&gt;
[[Image:AdminGUI.png|thumb|Admin Console GUI]]&lt;br /&gt;
&lt;br /&gt;
==A tutorial to make a login window==&lt;br /&gt;
In this tutorial we'll make a simple login window, with two input boxes and a button. The window appears when the player joins the game, and once the button is clicked, the player is spawned. The tutorial will continue the gamemode we made in [[Scripting Introduction|Introduction to Scripting]] ''(If you have used the [[Scripting Introduction|Introduction to Scripting]], you will need to remove or comment the [[spawnPlayer]] line in the &amp;quot;joinHandler&amp;quot; function in your code, as we will be replacing it with a gui alternative in this tutorial)''. We'll also take a look at client-side scripting. &lt;br /&gt;
&lt;br /&gt;
===Draw the window===&lt;br /&gt;
All the GUI must be made client side. It is also a good practice to keep all the client scripts in a separate folder. &lt;br /&gt;
&lt;br /&gt;
Browse to /Your MTA Server/mods/deathmatch/resources/myserver/ directory, and create a folder named &amp;quot;client&amp;quot;. Under /client/ directory, create a text file and name it &amp;quot;gui.lua&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
In this file we will write a funtion that draws the window. To create a window we will use [[guiCreateWindow]]:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- define the X and Y positions of the window&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	-- define the width and height of the window&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	-- create the window and save its element value into the variable 'wdwLogin'&lt;br /&gt;
	-- click on the function's name to read its documentation&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Please Log In&amp;quot;, true)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Relative and Absolute===&lt;br /&gt;
Note that the final argument passed to guiCreateWindow in the above example is ''true''. This indicates that the coordinates and dimensions of the window are '''relative''', meaning they are a ''percentage'' of the total screen size. This means that if the far left side of the screen is 0, and the far right is 1, an X position of 0.5 would represent the centre point of the screen. Similarly, if the top of the screen is 0 and the bottom is 1, a Y position of 0.2 would be 20% of the way down the screen. The same principles apply to both Width and Height as well (with a Width value of 0.5 meaning the window will be half as wide as the screen).&lt;br /&gt;
&lt;br /&gt;
The alternative to using relative values is using '''absolute''' (by passing ''false'' instead of true to guiCreateWindow). Absolute values are calculated as the total number of pixels from the top-left corner of the parent (if no gui element parent is specified, the parent is the screen itself). If we assume a screen resolution of 1920x1200, the far left side of the screen being 0 pixels and the far right being 1920 pixels, an X position of 960 will represent the centre point of the screen. Similarly, if the top of the screen is 0 pixels and the bottom is 1200, a Y position of 20 would be 20 pixels down from the top of the screen. The same principles apple to both Width and Height as well (with a Width value of 50 meaning the window will be 50 pixels wide). ''You can use [[guiGetScreenSize]] and a little maths to calculate certain absolute positions.''&lt;br /&gt;
&lt;br /&gt;
The differences between using relative and absolute values is quite simple; gui created using absolute values will always remain exactly the same pixel size and position, while gui created using relative values will always be a percentage of its parent's size.&lt;br /&gt;
&lt;br /&gt;
Absolute is generally easier to maintain when editing code by hand, however your choice of type depends on the situation you are using it for.&lt;br /&gt;
&lt;br /&gt;
For the purposes of this introduction we will be using relative values.&lt;br /&gt;
&lt;br /&gt;
===Adding the components===&lt;br /&gt;
Next, we'll add the text labels (saying &amp;quot;username:&amp;quot; and &amp;quot;password:&amp;quot;), edit boxes (for entering your data) and a button to log in.&lt;br /&gt;
&lt;br /&gt;
To create buttons we use [[guiCreateButton]] and to create edit boxes use [[guiCreateEdit]]:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'createLoginWindow' function. This is not a new function and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Please Log In&amp;quot;, true)&lt;br /&gt;
	&lt;br /&gt;
	-- define new X and Y positions for the first label&lt;br /&gt;
	X = 0.0825&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	-- define new Width and Height values for the first label&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.25&lt;br /&gt;
	-- create the first label, note the final argument passed is 'wdwLogin' meaning the window&lt;br /&gt;
	-- we created above is the parent of this label (so all the position and size values are now relative to the position of that window)&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Username&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- alter the Y value, so the second label is slightly below the first&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Password&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	Width = 0.5&lt;br /&gt;
	Height = 0.15&lt;br /&gt;
	edtUser = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	edtPass = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- set the maximum character length for the username and password fields to 50&lt;br /&gt;
	guiEditSetMaxLength(edtUser, 50)&lt;br /&gt;
	guiEditSetMaxLength(edtPass, 50)&lt;br /&gt;
	&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.7&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.2&lt;br /&gt;
	btnLogin = guiCreateButton(X, Y, Width, Height, &amp;quot;Log In&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
	-- make the window invisible&lt;br /&gt;
	guiSetVisible(wdwLogin, false)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Note that every GUI component created is a child of the window, this is done by specifying the parent element (wdwLogin, in this case) when creating the component. &lt;br /&gt;
&lt;br /&gt;
This is very useful because not only does it mean that all the components are attached to the window and will move with it, but also that any changes done to the parent window will be applied down the tree to these child components. For example, we can now hide all of the GUI we just created by simply hiding the window:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiSetVisible(wdwLogin, false) --hides all the GUI we made so we can show them to the player at the appropriate moment. &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Using the function we wrote===&lt;br /&gt;
The createLoginWindow function is now complete, but it won't do anything until we call it. It is recommended to create all GUI when the client resource starts, hide them, and show them to the player later when needed. Therefore, we'll write an event handler for &amp;quot;[[onClientResourceStart]]&amp;quot; to create the window:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event handler to the root element of the resource&lt;br /&gt;
-- this means it will only trigger when its own resource is started&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), &lt;br /&gt;
	function ()&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As this is a log in window, we now need to show the window when the player joins the game. &lt;br /&gt;
This can be done using the same event, &amp;quot;[[onClientResourceStart]]&amp;quot;, so we can modify the above code to include showing the window:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'onClientResourceStart' handler. This is not a new event handler and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), &lt;br /&gt;
	function ()&lt;br /&gt;
		-- create the log in window and its components&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
&lt;br /&gt;
		-- output a brief welcome message to the player&lt;br /&gt;
                outputChatBox(&amp;quot;Welcome to My MTA:SA Server, please log in.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		-- if the GUI was successfully created, then show the GUI to the player&lt;br /&gt;
	        if (wdwLogin ~= nil) then&lt;br /&gt;
			guiSetVisible(wdwLogin, true)&lt;br /&gt;
		else&lt;br /&gt;
			-- if the GUI hasnt been properly created, tell the player&lt;br /&gt;
			outputChatBox(&amp;quot;An unexpected error has occurred and the log in GUI has not been created.&amp;quot;)&lt;br /&gt;
	        end &lt;br /&gt;
&lt;br /&gt;
		-- enable the players cursor (so they can select and click on the components)&lt;br /&gt;
	        showCursor(true)&lt;br /&gt;
		-- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening&lt;br /&gt;
	        guiSetInputEnabled(true)&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we have a simple security check before making the window visible, so in the unlikely event that the window has not been created, meaning wdwLogin is not a valid element, we don't get an error and just inform the player what has happened. &lt;br /&gt;
In the next step, we will create the button functionality for the log in button.&lt;br /&gt;
&lt;br /&gt;
==Scripting the button==&lt;br /&gt;
Now that we have created our GUI and shown it to the player, we need to make it work. &lt;br /&gt;
&lt;br /&gt;
===Detecting the click===&lt;br /&gt;
When the player clicks on any part of the GUI, the event &amp;quot;[[onClientGUIClick]]&amp;quot; will be triggered for the GUI component you clicked on. This allows us to easily detect any clicks on the GUI elements we want to use.&lt;br /&gt;
For example, we can attach the event to the btnLogin button to catch any clicks on it:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event onClientGUIClick to btnLogin and set it to trigger the 'clientSubmitLogin' function&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Note the final argument passed is &amp;quot;false&amp;quot;. This indicates that the event will only trigger directly on btnLogin, not if the event has propagated up or down the tree. Setting this to &amp;quot;true&amp;quot; while attaching to gui elements will mean that clicking on any element in the same branch will trigger this event.'''&lt;br /&gt;
&lt;br /&gt;
This line of code can now be added inside the createLoginWindow function. It is a common mistake to try and attach events to non-existant GUI elements, so make sure you always attach your events '''after''' the gui element (in this case, the button) has been created:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'createLoginWindow' function.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- create all our GUI elements&lt;br /&gt;
	...&lt;br /&gt;
&lt;br /&gt;
	-- now add our onClientGUIClick event to the button we just created&lt;br /&gt;
	addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Managing the click===&lt;br /&gt;
Now that we can detect when the player clicks on the button, we need to write code to manage what happens when they do.&lt;br /&gt;
In our [[onClientGUIClick]] event handle, we told it to call the function clientSubmitLogin whenever btnLogin is clicked.&lt;br /&gt;
Therefore, we can now use the function clientSubmitLogin to control what happens when the button is clicked:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the function and define the 'button' and 'state' parameters&lt;br /&gt;
-- (these are passed automatically by onClientGUIClick)&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	-- if our login button was clicked with the left mouse button, and the state of the mouse button is up&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- move the input focus back onto the game (allowing players to move around, open the chatbox, etc)&lt;br /&gt;
		guiSetInputEnabled(false)&lt;br /&gt;
		-- hide the window and all the components&lt;br /&gt;
		guiSetVisible(wdwLogin, false)&lt;br /&gt;
		-- hide the mouse cursor&lt;br /&gt;
		showCursor(false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now, when the button is clicked, the window will be hidden and all controls will be returned to the player. Next, we will tell the server to allow the player to spawn.&lt;br /&gt;
&lt;br /&gt;
===Triggering the server===&lt;br /&gt;
Triggering the server can be done using [[triggerServerEvent]]. This allows you to trigger a specified event on the server from the client. The same can be done in reverse using [[triggerClientEvent]].&lt;br /&gt;
Here, we use the [[triggerServerEvent]] function to call our own custom event on the server, named &amp;quot;submitLogin&amp;quot;, which will then control the spawning of the player serverside.&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'clientSubmitLogin' function. This is not a new function and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- get the text entered in the 'username' field&lt;br /&gt;
		local username = guiGetText(edtUser)&lt;br /&gt;
		-- get the text entered in the 'password' field&lt;br /&gt;
		local password = guiGetText(edtPass)&lt;br /&gt;
&lt;br /&gt;
		-- if the username and password both exist&lt;br /&gt;
		if username and password then&lt;br /&gt;
			-- trigger the server event 'submitLogin' and pass the username and password to it&lt;br /&gt;
			triggerServerEvent(&amp;quot;submitLogin&amp;quot;, getRootElement(), username, password)&lt;br /&gt;
&lt;br /&gt;
			-- hide the gui, hide the cursor and return control to the player&lt;br /&gt;
			guiSetInputEnabled(false)&lt;br /&gt;
			guiSetVisible(wdwLogin, false)&lt;br /&gt;
			showCursor(false)&lt;br /&gt;
		else&lt;br /&gt;
			-- otherwise, output a message to the player, do not trigger the server&lt;br /&gt;
			-- and do not hide the gui&lt;br /&gt;
			outputChatBox(&amp;quot;Please enter a username and password.&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating the serverside event===&lt;br /&gt;
At this point we now have all the code needed on the client side, so open up your serverside 'script.lua' file (from the [[Scripting Introduction|Introduction to Scripting]]) or another suitable serverside file to work with.&lt;br /&gt;
&lt;br /&gt;
On the server side, recall that we are spawning the player as soon as they login.&lt;br /&gt;
So, first of all, we will need to define the custom event that we used before on the client. This can be done using [[addEvent]] and [[addEventHandler]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create our loginHandler function, with username and password parameters (passed from the client gui)&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- define our custom event, and allow it to be triggered from the client ('true')&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
-- add an event handler so that when submitLogin is triggered, the function loginHandler is called&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Logging in===&lt;br /&gt;
Now we have a function that is called through the custom event 'submitLogin', we can start to work on logging in and spawning the player, using our 'loginHandler' function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
	-- check that the username and password are correct&lt;br /&gt;
	if username == &amp;quot;user&amp;quot; and password == &amp;quot;apple&amp;quot; then&lt;br /&gt;
		-- the player has successfully logged in, so spawn them&lt;br /&gt;
		if (client) then&lt;br /&gt;
			spawnPlayer(client, 1959.55, -1714.46, 10)&lt;br /&gt;
			fadeCamera(client, true)&lt;br /&gt;
                        setCameraTarget(client, client)&lt;br /&gt;
			outputChatBox(&amp;quot;Welcome to My Server.&amp;quot;, client)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- if the username or password are not correct, output a message to the player&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid username and password. Please re-connect and try again.&amp;quot;,client)&lt;br /&gt;
        end			&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''For the purposes of this tutorial, a very basic username and password system is shown. For a more comprehensive alternative, you can use the Account System or a MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Also note the use of the variable &amp;quot;client&amp;quot;, it's an internal variable used by MTA to identify the player who triggered the event. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, do not forget to include the new gui.lua file in the meta.xml of the main resource, and label it as a client script:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;client/gui.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point, we now have a basic login window that checks the player's username and password when the login button is clicked. If they are correct, the player is automatically spawned.&lt;br /&gt;
&lt;br /&gt;
For further help with GUI, see the [[:Category:GUI_Tutorials|GUI tutorials]].&lt;br /&gt;
&lt;br /&gt;
[[Category:GUI_Tutorials]]&lt;br /&gt;
[[it:Introduzione_allo_scripting_della_GUI]]&lt;br /&gt;
[[ru:Introduction to Scripting the GUI]]&lt;br /&gt;
[[es:Introducción a la Programación de GUI]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=27624</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=27624"/>
		<updated>2011-11-10T00:53:05Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[ES/Cómo puedes ayudar|cosas que puedes hacer]] para ayudarnos a mejorar MTA.&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]] (Traducción: 55%)&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]] (Traducción: 10%)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Scripting====&lt;br /&gt;
* [[ES/Resources| Introducción a los Resources]]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
** [[Resource Web Access| Acceso Web con Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Introducción a Lua| Introducción a Lua]] [[Image:flag_es.png|En Español]] (Traducción: 70%)&lt;br /&gt;
* [[ES/Introducción a la Programación de GUI| Introducción a la Programación del GUI]] [[Image:flag_es.png|En Español]] (En traducción...)&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Encontrar errores en scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de Lua y recursos importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor Lua.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]]&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Funciones de Servidor|Funciones de Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
** [[ES/Elemento| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[ES/Climas|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Equipo de Traducción====&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* Benxamix2/The Kid&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:cesarcastillo4@gmail.com cesarcastillo4@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:alex_firexx@hotmail.com alex_firexx@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:carlos_olivo@msn.com carlos_olivo@msn.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, y la ortografía sea la mejor posible.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Introducci%C3%B3n_a_la_Programaci%C3%B3n_de_GUI&amp;diff=27623</id>
		<title>ES/Introducción a la Programación de GUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Introducci%C3%B3n_a_la_Programaci%C3%B3n_de_GUI&amp;diff=27623"/>
		<updated>2011-11-10T00:52:01Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Created page with &amp;quot;&amp;lt;!-- place holder --&amp;gt; Una importante caracteristica de MTA:SA es la posibilidad de programar GUIs propias (Graphics User Interface que traducido seria, Interfaz Grafica del Usuar...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- place holder --&amp;gt;&lt;br /&gt;
Una importante caracteristica de MTA:SA es la posibilidad de programar GUIs propias (Graphics User Interface que traducido seria, Interfaz Grafica del Usuario). Una GUI consiste en ventanas, botones, cajas de edición, entre otras cosas.... Estos pueden ser mostrados mientras el jugador esta en el juego, y es usado para tener interacción con el usuario en lugar de los típicos comandos.&lt;br /&gt;
&lt;br /&gt;
[[Image:AdminGUI.png|thumb|Consola de Administración]]&lt;br /&gt;
&lt;br /&gt;
==Un tutorial para hacer una ventana de ingreso==&lt;br /&gt;
En este tutorial nosotros haremos una simple ventana de ingreso, con dos cajas de edición y un botón. La ventana aparecerá cuando el jugador ingrese al juego, y cuando el botón sea apretado, el jugador aparecerá. El tutorial continuara el modo que hicimos en [[ES/Introducción_a_Lua|Introducción a LUA]] ''(Si tu continuaste de la pagina anterior, tendrás que remover o comentar la linea donde se encuentra la función [[spawnPlayer]], porque estaremos reemplazando eso con una GUI alternativa en este tutorial)''. También daremos una mirada a lo que es la programación en el cliente.&lt;br /&gt;
&lt;br /&gt;
===Dibujando la ventana===&lt;br /&gt;
Toda GUI se debe hacer en el cliente. Esto tambien es una buena practica para tener todos los archivos de cliente en carpetas separadas.&lt;br /&gt;
&lt;br /&gt;
Busca el directorio /Tu servidor MTA/mods/deathmatch/resources/myserver/, y crea una carpeta llamada &amp;quot;cliente&amp;quot;. En la carpeta cliente, crea un archivo de texto y llamalo &amp;quot;gui.lua&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
En este archivo escribiremos una función que dibuje la ventana. Para crear la ventana usaremos [[guiCreateWindow]]:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- definimos las coordenadas X,Y donde se creara la ventana&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	-- definimos el tamaño de la ventana (El ancho y el alto)&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	-- Creamos la ventana y la grabamos su valor de elemento en la variable 'wdwLogin'&lt;br /&gt;
	-- Apreta en el nombre de la función para leer su definición&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Porfavor ingrese&amp;quot;, true)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Relativo y absoluto===&lt;br /&gt;
Notese que el argumento final pasado a la función [[guiCreateWindow]] en el ejemplo de arriba es ''true''. Esto indica que las coordenadas y las dimensiones de la ventana son '''relativas''', queriendo decir que son un ''porcentaje'' del tamaño total de la pantalla. Queriendo decir que el lado izquierdo de la pantalla es 0 y el lado derecho es 1. Una posición X de 0.5, representaría el centro de la pantalla. Similarmente, si la parte de arriba de la pantalla es 0 y la de abajo es 1, entonces una posición en Y de 0.2 seria un 20% abajo de la pantalla. Este mismo principio se aplica al ancho y alto también. (Con un ancho de 0.5, quiere decir que la ventana tendrá un ancho de la mitad de la pantalla) &lt;br /&gt;
&lt;br /&gt;
La alternativa a usar valores relativos es usar '''absolutos''' (Pasando ''false'' en vez de true a [[guiCreateWindow]])). Los valores absolutos son calculados como el numero total de pixeles de la esquina superior-izquierda de su padre (Si no se especifica un elemento padre, entonces el padre seria la pantalla en si). Si asumimos una resolución de 1920x1200, El lado izquierdo empezaría con 0 pixeles y el lado derecho tendría 1920 pixeles, una posición X de 960 representaría el centro de la pantalla. Similarmente, si el lado superior de la pantalla empieza 0 pixeles y el lado inferior termina con 1920 pixeles, una posición Y de 20 seria 20 pixeles bajo el lado superior de la pantalla. El mismo principio se aplica al ancho y al alto. ''Tu puedes usar [[guiGetScreenSize]] y un poco de matemáticas para calcular algunas posiciones absolutas.''&lt;br /&gt;
&lt;br /&gt;
Las diferencias entre usar valores relativos y absolutos es un poco simple; Una GUI creada con valores absolutos siempre tendrá el mismo tamaño y posición, mientras que una GUI creada usando valores relativos siempre sera un porcentaje del tamaño de su padre.&lt;br /&gt;
&lt;br /&gt;
El valor absoluto es generalmente mas fácil de mantener cuando se edita un código a mano, aunque tu opción del tipo depende de la situación para que lo estas usando.&lt;br /&gt;
&lt;br /&gt;
Para propósitos de esta introducción usaremos valores relativos. (Aunque recomiendo usar absolutos)&lt;br /&gt;
&lt;br /&gt;
===Añadiendo los componentes===&lt;br /&gt;
Ahora agregaremos las etiquetas de texto (Diciendo &amp;quot;Usuario:&amp;quot; y &amp;quot;Contraseña:&amp;quot;, Cajas de edición (Para ingresar los datos) y un botón para ingresar.&lt;br /&gt;
&lt;br /&gt;
Para crear el botón usaremos [[guiCreateButton]], y para crear las cajas de edición usaremos [[guiCreateEdit]]:&lt;br /&gt;
&lt;br /&gt;
'''Nota que estamos escribiendo mas codigo de nuestra existente función 'createLoginWindow'. Esto no es una nueva función y esta pensada a reemplazar la que tu ya tenias.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Porfavor Ingrese&amp;quot;, true)&lt;br /&gt;
	&lt;br /&gt;
	-- definimos las coordenadas X,Y de nuestra primera etiqueta&lt;br /&gt;
	X = 0.0825&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	-- definimos el ancho y el alto de nuestra primera etiqueta&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.25&lt;br /&gt;
	-- Creamos la primera etiqueta, nota que el argumento final es 'wdwLogin' significando la ventana que creamos arriba es el padre de&lt;br /&gt;
	-- esta etiqueta (asique todos los valores de posición y tamaño son relativos a la posición de esa ventana)&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Usuario&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- alteramos el valor Y, para que la segunda etiqueta este un poco mas abajo de la primera&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Contraseña&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	Width = 0.5&lt;br /&gt;
	Height = 0.15&lt;br /&gt;
	edtUser = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	edtPass = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- Ponemos el maximo de caracteres que se pueden escribir en las cajas a 50&lt;br /&gt;
	guiEditSetMaxLength(edtUser, 50)&lt;br /&gt;
	guiEditSetMaxLength(edtPass, 50)&lt;br /&gt;
	&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.7&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.2&lt;br /&gt;
	btnLogin = guiCreateButton(X, Y, Width, Height, &amp;quot;Ingresar&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
	-- Hacer la ventana invisible&lt;br /&gt;
	guiSetVisible(wdwLogin, false)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Nota que todo componente GUI creado es un hijo de la ventana, esto se hace espeficicando el elemento padre (wdwLogin, en este caso) cuando se crea el componente.&lt;br /&gt;
&lt;br /&gt;
Esto es muy util porque no solo hace pensar que todos sus componentes estan unidos a la ventana y que se van a mover con ella, sino que ademas todo cambio hecho a la ventana padre seran aplicados arbol abajo a todos sus elementos hijos. Por ejemplo, ahora podemos esconder todos los elementos GUI que creamos con solo esconder la ventana:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiSetVisible(wdwLogin, false) --esconde todos los elementos GUI que hicimos para poderlos mostrar al jugador en el momento apropiado&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Using the function we wrote===&lt;br /&gt;
The createLoginWindow function is now complete, but it won't do anything until we call it. It is recommended to create all GUI when the client resource starts, hide them, and show them to the player later when needed. Therefore, we'll write an event handler for &amp;quot;[[onClientResourceStart]]&amp;quot; to create the window:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event handler to the root element of the resource&lt;br /&gt;
-- this means it will only trigger when its own resource is started&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), &lt;br /&gt;
	function ()&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As this is a log in window, we now need to show the window when the player joins the game. &lt;br /&gt;
This can be done using the same event, &amp;quot;[[onClientResourceStart]]&amp;quot;, so we can modify the above code to include showing the window:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'onClientResourceStart' handler. This is not a new event handler and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), &lt;br /&gt;
	function ()&lt;br /&gt;
		-- create the log in window and its components&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
&lt;br /&gt;
		-- output a brief welcome message to the player&lt;br /&gt;
                outputChatBox(&amp;quot;Welcome to My MTA:SA Server, please log in.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		-- if the GUI was successfully created, then show the GUI to the player&lt;br /&gt;
	        if (wdwLogin ~= nil) then&lt;br /&gt;
			guiSetVisible(wdwLogin, true)&lt;br /&gt;
		else&lt;br /&gt;
			-- if the GUI hasnt been properly created, tell the player&lt;br /&gt;
			outputChatBox(&amp;quot;An unexpected error has occurred and the log in GUI has not been created.&amp;quot;)&lt;br /&gt;
	        end &lt;br /&gt;
&lt;br /&gt;
		-- enable the players cursor (so they can select and click on the components)&lt;br /&gt;
	        showCursor(true)&lt;br /&gt;
		-- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening&lt;br /&gt;
	        guiSetInputEnabled(true)&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we have a simple security check before making the window visible, so in the unlikely event that the window has not been created, meaning wdwLogin is not a valid element, we don't get an error and just inform the player what has happened. &lt;br /&gt;
In the next step, we will create the button functionality for the log in button.&lt;br /&gt;
&lt;br /&gt;
==Scripting the button==&lt;br /&gt;
Now that we have created our GUI and shown it to the player, we need to make it work. &lt;br /&gt;
&lt;br /&gt;
===Detecting the click===&lt;br /&gt;
When the player clicks on any part of the GUI, the event &amp;quot;[[onClientGUIClick]]&amp;quot; will be triggered for the GUI component you clicked on. This allows us to easily detect any clicks on the GUI elements we want to use.&lt;br /&gt;
For example, we can attach the event to the btnLogin button to catch any clicks on it:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event onClientGUIClick to btnLogin and set it to trigger the 'clientSubmitLogin' function&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Note the final argument passed is &amp;quot;false&amp;quot;. This indicates that the event will only trigger directly on btnLogin, not if the event has propagated up or down the tree. Setting this to &amp;quot;true&amp;quot; while attaching to gui elements will mean that clicking on any element in the same branch will trigger this event.'''&lt;br /&gt;
&lt;br /&gt;
This line of code can now be added inside the createLoginWindow function. It is a common mistake to try and attach events to non-existant GUI elements, so make sure you always attach your events '''after''' the gui element (in this case, the button) has been created:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'createLoginWindow' function.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- create all our GUI elements&lt;br /&gt;
	...&lt;br /&gt;
&lt;br /&gt;
	-- now add our onClientGUIClick event to the button we just created&lt;br /&gt;
	addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Managing the click===&lt;br /&gt;
Now that we can detect when the player clicks on the button, we need to write code to manage what happens when they do.&lt;br /&gt;
In our [[onClientGUIClick]] event handle, we told it to call the function clientSubmitLogin whenever btnLogin is clicked.&lt;br /&gt;
Therefore, we can now use the function clientSubmitLogin to control what happens when the button is clicked:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the function and define the 'button' and 'state' parameters&lt;br /&gt;
-- (these are passed automatically by onClientGUIClick)&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	-- if our login button was clicked with the left mouse button, and the state of the mouse button is up&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- move the input focus back onto the game (allowing players to move around, open the chatbox, etc)&lt;br /&gt;
		guiSetInputEnabled(false)&lt;br /&gt;
		-- hide the window and all the components&lt;br /&gt;
		guiSetVisible(wdwLogin, false)&lt;br /&gt;
		-- hide the mouse cursor&lt;br /&gt;
		showCursor(false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now, when the button is clicked, the window will be hidden and all controls will be returned to the player. Next, we will tell the server to allow the player to spawn.&lt;br /&gt;
&lt;br /&gt;
===Triggering the server===&lt;br /&gt;
Triggering the server can be done using [[triggerServerEvent]]. This allows you to trigger a specified event on the server from the client. The same can be done in reverse using [[triggerClientEvent]].&lt;br /&gt;
Here, we use the [[triggerServerEvent]] function to call our own custom event on the server, named &amp;quot;submitLogin&amp;quot;, which will then control the spawning of the player serverside.&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'clientSubmitLogin' function. This is not a new function and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- get the text entered in the 'username' field&lt;br /&gt;
		local username = guiGetText(edtUser)&lt;br /&gt;
		-- get the text entered in the 'password' field&lt;br /&gt;
		local password = guiGetText(edtPass)&lt;br /&gt;
&lt;br /&gt;
		-- if the username and password both exist&lt;br /&gt;
		if username and password then&lt;br /&gt;
			-- trigger the server event 'submitLogin' and pass the username and password to it&lt;br /&gt;
			triggerServerEvent(&amp;quot;submitLogin&amp;quot;, getRootElement(), username, password)&lt;br /&gt;
&lt;br /&gt;
			-- hide the gui, hide the cursor and return control to the player&lt;br /&gt;
			guiSetInputEnabled(false)&lt;br /&gt;
			guiSetVisible(wdwLogin, false)&lt;br /&gt;
			showCursor(false)&lt;br /&gt;
		else&lt;br /&gt;
			-- otherwise, output a message to the player, do not trigger the server&lt;br /&gt;
			-- and do not hide the gui&lt;br /&gt;
			outputChatBox(&amp;quot;Please enter a username and password.&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating the serverside event===&lt;br /&gt;
At this point we now have all the code needed on the client side, so open up your serverside 'script.lua' file (from the [[Scripting Introduction|Introduction to Scripting]]) or another suitable serverside file to work with.&lt;br /&gt;
&lt;br /&gt;
On the server side, recall that we are spawning the player as soon as they login.&lt;br /&gt;
So, first of all, we will need to define the custom event that we used before on the client. This can be done using [[addEvent]] and [[addEventHandler]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create our loginHandler function, with username and password parameters (passed from the client gui)&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- define our custom event, and allow it to be triggered from the client ('true')&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
-- add an event handler so that when submitLogin is triggered, the function loginHandler is called&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Logging in===&lt;br /&gt;
Now we have a function that is called through the custom event 'submitLogin', we can start to work on logging in and spawning the player, using our 'loginHandler' function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
	-- check that the username and password are correct&lt;br /&gt;
	if username == &amp;quot;user&amp;quot; and password == &amp;quot;apple&amp;quot; then&lt;br /&gt;
		-- the player has successfully logged in, so spawn them&lt;br /&gt;
		if (client) then&lt;br /&gt;
			spawnPlayer(client, 1959.55, -1714.46, 10)&lt;br /&gt;
			fadeCamera(client, true)&lt;br /&gt;
                        setCameraTarget(client, client)&lt;br /&gt;
			outputChatBox(&amp;quot;Welcome to My Server.&amp;quot;, client)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- if the username or password are not correct, output a message to the player&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid username and password. Please re-connect and try again.&amp;quot;,client)&lt;br /&gt;
        end			&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''For the purposes of this tutorial, a very basic username and password system is shown. For a more comprehensive alternative, you can use the Account System or a MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Also note the use of the variable &amp;quot;client&amp;quot;, it's an internal variable used by MTA to identify the player who triggered the event. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, do not forget to include the new gui.lua file in the meta.xml of the main resource, and label it as a client script:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;client/gui.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point, we now have a basic login window that checks the player's username and password when the login button is clicked. If they are correct, the player is automatically spawned.&lt;br /&gt;
&lt;br /&gt;
For further help with GUI, see the [[:Category:GUI_Tutorials|GUI tutorials]].&lt;br /&gt;
&lt;br /&gt;
[[Category:GUI_Tutorials]]&lt;br /&gt;
[[it:Introduzione_allo_scripting_della_GUI]]&lt;br /&gt;
[[ru:Introduction to Scripting the GUI]]&lt;br /&gt;
[[en:Introduction to Scripting the GUI]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=27550</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=27550"/>
		<updated>2011-11-05T01:11:29Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[ES/Cómo puedes ayudar|cosas que puedes hacer]] para ayudarnos a mejorar MTA.&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]] (Traducción: 50%)&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]] (Traducción: 10%)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Scripting====&lt;br /&gt;
* [[ES/Resources| Introducción a los Resources]]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
** [[Resource Web Access| Acceso Web con Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Introducción a Lua| Introducción a Lua]] [[Image:flag_es.png|En Español]] (Traducción: 70%)&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Encontrar errores en scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de Lua y recursos importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor Lua.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]]&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Funciones de Servidor|Funciones de Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
** [[ES/Elemento| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Equipo de Traducción====&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* Benxamix2/The Kid&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:cesarcastillo4@gmail.com cesarcastillo4@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:alex_firexx@hotmail.com alex_firexx@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:carlos_olivo@msn.com carlos_olivo@msn.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, y la ortografía sea la mejor posible.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Scripts_de_Cliente&amp;diff=27549</id>
		<title>ES/Scripts de Cliente</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Scripts_de_Cliente&amp;diff=27549"/>
		<updated>2011-11-05T01:01:13Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==¿Qué son?==&lt;br /&gt;
&lt;br /&gt;
Los scripts de cliente son los que corren directamente en el computador del jugador. Esto implica poder realizar mas funciones que desde el servidor no se podrían hacer (Por ejemplo poner imágenes o alguna ventana).&lt;br /&gt;
&lt;br /&gt;
==¿Cómo funcionan?==&lt;br /&gt;
La parte cliente trabaja de forma parecida y a la vez diferente, a la parte servidor. Se pueden sincronizar ambas partes usando el sistema de eventos.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo, para el archivo cliente:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta&amp;gt;&lt;br /&gt;
	&amp;lt;script src=&amp;quot;guitest.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt; &amp;lt;!-- 'type=&amp;quot;client&amp;quot;' indica que el archivo en cuestión se trabaja desde el PC del jugador. --&amp;gt;&lt;br /&gt;
	&amp;lt;info author=&amp;quot;IJs&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Si queremos iniciar un evento del cliente desde el servidor, entonces primero hay que agregar el evento en el cliente con [[addEvent]]. Luego, se debe arreglar un manejador de este evento. Y en el lado servidor, se debe usar [[triggerClientEvent]] ( jugador, &amp;quot;nombreDeEvento&amp;quot;, jugador, argumentos ... ) para iniciar el evento. Este proceso de sincronía se puede hacer al revés también, con [[triggerServerEvent]].&lt;br /&gt;
&lt;br /&gt;
Por ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Script de cliente:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showObjectBrowser(id)&lt;br /&gt;
   -- El código aquí...&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent(&amp;quot;doShowObjectBrowser&amp;quot;, true) -- Agregamos el evento...&lt;br /&gt;
addEventHandler(&amp;quot;doShowObjectBrowser&amp;quot;, getRootElement(), showObjectBrowser) -- Y el manejador, que indica que al iniciarse el evento, llame a la función &amp;quot;showObjectBrowser&amp;quot;...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Script de servidor:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
triggerClientEvent ( unJugador, &amp;quot;doShowObjectBrowser&amp;quot;, getRootElement(), 1034 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Benxamix2/The Kid&lt;br /&gt;
&lt;br /&gt;
[[ru:Client side scripts]]&lt;br /&gt;
[[it:Script client-side]]&lt;br /&gt;
[[en:Client side scripts]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=27548</id>
		<title>ES/Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=27548"/>
		<updated>2011-11-05T00:50:43Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
El editor de mapas de MTA:SA te permite crear mapas para los modos de juego.&lt;br /&gt;
Para iniciarlo, simplemente presiona &amp;quot;Map Editor&amp;quot; en el menú principal de MTA&lt;br /&gt;
&lt;br /&gt;
==Menus==&lt;br /&gt;
Una vez que el editor haya comenzado, se te mostrarán dos menús de barras: la principal (arriba), y la de elementos (esquina inferior izquierda).&lt;br /&gt;
&lt;br /&gt;
===Menú principal===&lt;br /&gt;
Estos son los botones en el menú principal:&lt;br /&gt;
* [[Image:Editor_New.png]] Crear un nuevo mapa.&lt;br /&gt;
* [[Image:Editor_Open.png]] Abrir un mapa existente.&lt;br /&gt;
* [[Image:Editor_Save.png]] Grabar el mapa en que estás trabajando.&lt;br /&gt;
* [[Image:Editor_Save_as.png]] Grabar el mapa bajo un nombre diferente.&lt;br /&gt;
* [[Image:Editor_Options.png]] Modificar las opciones generales del editor.&lt;br /&gt;
* [[Image:Editor_Undo.png]] Deshacer la última acción.&lt;br /&gt;
* [[Image:Editor_Redo.png]] Restaurar la última acción deshecha.&lt;br /&gt;
* [[Image:Editor_Locations.png]] Lista de lugares &amp;quot;marcados&amp;quot; (como los Favoritos).&lt;br /&gt;
* [[Image:Editor_Current_elements.png]] Lista de todos los elementos contenidos en el mapa (vehículos, objetos, marcadores, pickups, etc).&lt;br /&gt;
* [[Image:Editor_Map_settings.png]] Propiedades del mapa, como el tiempo o la gravedad. Aquí también puedes especificar los modos de juego que son compatibles con tu mapa.&lt;br /&gt;
* [[Image:Editor_Definitions.png]] Cargar las [[Resource:Editor/EDF| Definiciones del Editor (EDF)]].&lt;br /&gt;
* [[Image:Editor_Test.png]] Probar el mapa.&lt;br /&gt;
&lt;br /&gt;
===Menú de elementos===&lt;br /&gt;
El menú de elementos es usado para agregar nuevos elementos al mapa.&lt;br /&gt;
* [[Image:Editor_Vehicle.png]] Crear un vehículo.&lt;br /&gt;
* [[Image:Editor_Object.png]] Crear un objeto (edificios, caminos, basura, árboles, rocas, decoración exterior, etc).&lt;br /&gt;
* [[Image:Editor_Pickup.png]] Crear un pickup (sólo se puede crear de vida, armadura o de un arma).&lt;br /&gt;
* [[Image:Editor_Marker.png]] Crear un marcador.&lt;br /&gt;
&lt;br /&gt;
Adicionalmente, si tienes una [[Resource:Editor/EDF| Definición de Editor (EDF)]] cargada, girando la rueda del ratón (con el cursor sobre el menú) puedes cargar los elementos derivados de esa definición.&lt;br /&gt;
&lt;br /&gt;
==Usando el editor==&lt;br /&gt;
Esta sección te explicará cómo crear y modificar mapas.&lt;br /&gt;
&lt;br /&gt;
===Moviéndose alrededor del mapa===&lt;br /&gt;
Al iniciarse el editor, inicias en el ''modo de cámara''. Puedes usar las teclas '''WSAD''' para mover la cámara, y el ratón para girarla. Cuando te muevas, puedes mantener la tecla '''ALT''' para moverte más lento, o la tecla '''SHIFT''' para ir más rápido.&lt;br /&gt;
&lt;br /&gt;
Para acceder a la interfaz del editor y al panel de control, necesitas cambiar al ''modo de cursor''. Puedes cambiar entre el modo de cursor y el modo de cámara con la tecla '''F'''. Cuando estés en modo de cursor, tu vista estará congelada, y solo podrás usar el cursor del ratón para manipular elementos y usar la interfaz gráfica.&lt;br /&gt;
&lt;br /&gt;
El modo de cámara puede ser reconocido por una mira en medio de la pantalla. Puedes usarla para seleccionar y mover elementos como en el modo de cursor. Esta mira luce así:&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Crosshair.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Empezando un nuevo mapa===&lt;br /&gt;
* Inicia el editor, o si ya está iniciado, apreta el boton ''Nuevo'' del menú.&lt;br /&gt;
* Apreta el botón ''Opciones de mapa''. En la pestaña ''Meta'', llena los campos de &amp;quot;Name&amp;quot; y &amp;quot;Author&amp;quot; con el nombre de tu mapa y tu nick en MTA, respectivamente. También abre la pestaña ''Gamemodes'' y agrega los modos de juego para los cuales tu mapa está hecho (éstos se van a mover a la lista de ''Added Gamemodes''). Puedes hacer esto seleccionándolos y apretando en ''Add'', o haciendo doble click sobre ellos. Apreta OK cuando estés listo.&lt;br /&gt;
[[Image:Editor_Mapsettings.png|center]]&lt;br /&gt;
* Apreta en la ventana de ''Definiciones'' y agrega los recursos en donde uses los elementos alternativos. Estos debieran consistir de los modos que tu seleccionaste en la ventana de ''Map settings'', ademas de eventuales recursos adicionales. Para mas informacion acerca de las definiciones del editor, ve [[Resource:Editor/EDF|EDF (En Inglés)]]. Apreta OK cuando estes listo.&lt;br /&gt;
&lt;br /&gt;
===Creando nuevos elementos===&lt;br /&gt;
* Si tu estas en el modo de camara, cambia al modo de cursor primero apretando '''F'''.&lt;br /&gt;
* Apreta un boton en el menu de elementos que represente lo que tu quieres. Ej: Apreta el boton con un auto en el para agregar un vehiculo.&lt;br /&gt;
* Un nuevo elemento del tipo seleccionado sera creado y pegado a tu cursor. Muevelo a la posicion que quieras y apreta el '''botón izquierdo''' para dejarlo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Addelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Para crear un elemento alternativo que es especifico a un recurso, mueve tu cursor sobre el menu de elementos y gira la rueda del ratón hasta el recurso esperado. Ten en cuenta que para este trabajo, primero necesitas haber agregado el archivo de [[Resource:Editor/EDF|Definición de editor]] del recurso en la ventana ''Definitions''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Selectedf.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Seleccionando===&lt;br /&gt;
* '''Click izquierdo''' sobre un elemento para seleccionarlo en ''modo de teclado''.&lt;br /&gt;
* '''Click derecho''' sobre este elemento para seleccionarlo en ''modo de ratón''.&lt;br /&gt;
* Apreta la '''Barra espaciadora''' o apreta sobre un area vacia para sacar la selección.&lt;br /&gt;
&lt;br /&gt;
El elemento elegido, si lo hay, es representado por un marcador de cono amarillo. Elementos (particularmente objetos) con pesima colision se peuden detectar facilmente activando el ''modo de alta sensibilidad'', apretando la tecla '''E'''. Esto incrementara la detección.&lt;br /&gt;
&lt;br /&gt;
El dialogo ''Current elements'' puede ser usado tambien para seleccionar elementos. Has doble-click sobre un item de la lista para seleccionarlo en ''modo de teclado''&lt;br /&gt;
&lt;br /&gt;
===Moviendo===&lt;br /&gt;
El movimiento de los elementos se puede hacer de muchas maneras:&lt;br /&gt;
&lt;br /&gt;
'''Con el ratón'''&lt;br /&gt;
* Simplemente selecciónalo y déjalo con el '''boton izquierdo'''&lt;br /&gt;
O bien:&lt;br /&gt;
* Selecciona el elemento en el modo de ratón ('''boton derecho'''), muévelo hacia la posición que quieras, y haz clic izquierdo para dejarlo.&lt;br /&gt;
&lt;br /&gt;
También puedes ajustar la ''distancia'' de un elemento acercándolo o alejándolo de la cámara mediante el cambio al modo de cámara. Haz ''''clic derecho''' en un elemento, y gira la '''rueda del ratón'''.&lt;br /&gt;
&lt;br /&gt;
'''Con el teclado'''&lt;br /&gt;
* Selecciona el elemento en el modo de teclado ('''clic izquierdo''').&lt;br /&gt;
* Luego, usa las '''teclas de dirección''' para mover el elemento en un plano horizontal (ejes ''X'' y ''Z''), y '''RePág'''/'''AvPág''' para moverlo verticalmente (eje Z). Mantén presionado '''ALT''' para disminuir la velocidad de movimiento, y '''SHIFT''' para incrementarla.&lt;br /&gt;
&lt;br /&gt;
Por defecto, los elementos se mueven relativamente a la cámara y no están limitadas a sus ejes. Esto se puede desactivar en el menú de '''Opciones'''.&lt;br /&gt;
&lt;br /&gt;
===Rotando===&lt;br /&gt;
&lt;br /&gt;
'''Con el ratón'''&lt;br /&gt;
Puedes rotar un elemento selecionado en el eje Z, con la rueda del ratón.&lt;br /&gt;
* Seleciona el elemento con un clic (derecho o izquierdo) y ruédala mantiendo apretado '''CTRL'''.&lt;br /&gt;
&lt;br /&gt;
'''Con el teclado'''&lt;br /&gt;
* Selecciona el elemento ('''clic izquierdo''').&lt;br /&gt;
* Mientras se presiona '''CTRL''' (la marca de selección se volverá verde), y usa las '''teclas de dirección''' o '''RePág'''/'''AvPág''' para rotar el elemento en los 3 ejes.&lt;br /&gt;
&lt;br /&gt;
En ambos métodos, puedes presionar '''ALT''' para reducir la velocidad de rotación del elemento, y '''SHIFT''' para incrementarla.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Rotateelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Cambio de modelo y otras propiedades===&lt;br /&gt;
La mayoría de los elementos tiene una variedad de opciones que pueden ser alteradas para cambiar su apariencia. Ejemplos son los modelos, color y las actualizaciones visuales de un auto.&lt;br /&gt;
&lt;br /&gt;
* Abre la ventana de propiedades de un elemento, presionando dos veces en el o seleccionándolo y apretando '''F3'''.&lt;br /&gt;
* Hace las modificaciones que tu quieras. Por ejemplo, para cambiar el modelo de un auto o objeto, presiona en el botón '''Browse''' al lado de &amp;quot;model&amp;quot; para abrir el buscador de modelos.&lt;br /&gt;
* presiona OK cuando estés listo&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Props.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Clonando===&lt;br /&gt;
Puedes clonar un elemento seleccionándolo y presionando '''C'''. &lt;br /&gt;
&lt;br /&gt;
* En el modo de cursor, este elemento clonado será &amp;quot;adjuntado&amp;quot; a tu cursor. Para posicionarlo haz click con el botón izquierdo.&lt;br /&gt;
* En el modo de teclado, el elemento será puesto en la misma posición del elemento original.&lt;br /&gt;
&lt;br /&gt;
Si presionas '''CTRL''' mientras haces click, el elemento será clonado otra vez.&lt;br /&gt;
&lt;br /&gt;
También puedes usar el botón ''Pullout'' de la esquina inferior derecha de la ventana de propiedades del elemento.&lt;br /&gt;
&lt;br /&gt;
===Borrando===&lt;br /&gt;
Simplemente selecciona el elemento y pulsa ''SUPR''' ''(Borrar o Suprimir)''.&lt;br /&gt;
&lt;br /&gt;
También puedes usar el botón ''Pullout'' de la esquina inferior derecha de la ventana de propiedades del elemento.&lt;br /&gt;
&lt;br /&gt;
==Creando mapas para modos de juego específicos==&lt;br /&gt;
Para lograr esto, tienes que hacer 2 cosas.&lt;br /&gt;
* Clickea '''Map Settings''' en la barra superior del editor, busca la sección '''Gamemodes'''. De ahí seleccionas los modos de juego en los que tu mapa se puede usar.&lt;br /&gt;
* También necesitarás usar [[Resource:Editor/EDF|Archivos de Definición del Editor]] (EDF, o sea Editor Definition Files). Estos te permiten poner elementos de un modo de juego en específico, ya sean puntos de Spawn, las banderas de CTF, etc... Los EDF se cargan desde la sección &amp;quot;Definitions&amp;quot;, en &amp;quot;Map Settings&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Controles==&lt;br /&gt;
Aquí tienes la lista de los controles por defecto. Para editarlos, debes ir a la sección &amp;quot;Binds&amp;quot;, en &amp;quot;Settings&amp;quot;, en el menú de MTA, mientras el editor está abierto.&lt;br /&gt;
&lt;br /&gt;
===Cámara===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_forwards&lt;br /&gt;
| '''w'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_backwards&lt;br /&gt;
| '''s'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_left&lt;br /&gt;
| '''a'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_right&lt;br /&gt;
| '''d'''&lt;br /&gt;
|-&lt;br /&gt;
| high_sensitivity_mode&lt;br /&gt;
| '''e'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Clonación===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| clone_selected_element&lt;br /&gt;
| '''c'''&lt;br /&gt;
|-&lt;br /&gt;
| clone_drop_modifier&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Manipulación de elementos===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| element_move_forward&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_backward&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_left&lt;br /&gt;
| '''arrow_l''' || ''(Arrow key Left)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_right&lt;br /&gt;
| '''arrow_r''' || ''(Arrow key Right)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_downwards&lt;br /&gt;
| '''pgdn''' || ''(Page Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_upwards&lt;br /&gt;
| '''pgup''' || ''(Page Up)''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_in&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_out&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_increase&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_up''' || ''(Left CTRL + Mouse wheel Up)''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_decrease&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_down''' || ''(Left CTRL + Mouse wheel Down)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_rotate&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_slow_speed&lt;br /&gt;
| '''lalt''' || ''(Left ALT)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_fast_speed&lt;br /&gt;
| '''lshift''' || ''(Left SHIFT)''&lt;br /&gt;
|-&lt;br /&gt;
| destroy_selected_element&lt;br /&gt;
| '''delete'''&lt;br /&gt;
|-&lt;br /&gt;
| drop_selected_element&lt;br /&gt;
| '''space'''&lt;br /&gt;
|-&lt;br /&gt;
| pickup_selected_element&lt;br /&gt;
| '''F2'''&lt;br /&gt;
|-&lt;br /&gt;
| reset_rotation&lt;br /&gt;
| '''mod_rotate''' + '''r''' || ''(Left CTRL + R)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===GUI (Interfaz Gráfica)===&lt;br /&gt;
{|&lt;br /&gt;
| toggle_gui_display&lt;br /&gt;
| '''F4'''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_cursor&lt;br /&gt;
| '''f'''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_keyboard&lt;br /&gt;
| '''mouse1''' || ''(Left Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_mouse&lt;br /&gt;
| '''mouse2''' || ''(Right Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| edf_next&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| edf_prev&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| undo&lt;br /&gt;
| '''Ctrl''' + '''z'''&lt;br /&gt;
|-&lt;br /&gt;
| redo&lt;br /&gt;
| '''Ctrl''' + '''y'''&lt;br /&gt;
|-&lt;br /&gt;
| properties_toggle&lt;br /&gt;
| '''F3'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_up&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_down&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_in&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_out&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_confirm&lt;br /&gt;
| '''enter'''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_up&lt;br /&gt;
| '''num_8''' || ''(Numpad key 8)''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_down&lt;br /&gt;
| '''num_2''' || ''(Numpad key 2)''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_test&lt;br /&gt;
| '''F5'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multijugador==&lt;br /&gt;
El editor de mapas está hecho para que se pueda usar por más de un jugador a la vez. Esto se hace copiando los &amp;quot;resources&amp;quot; que usa el editor, a tu servidor. Luego tienes que iniciarlo y ya puedes hacer mapas con otros jugadores.&lt;br /&gt;
&lt;br /&gt;
Nota: no hay sistema de restricciones en el editor; todos los jugadores tienen los mismos permisos para editar el mapa. &lt;br /&gt;
&lt;br /&gt;
==Plugins y Recursos externos==&lt;br /&gt;
{{Main|Resource:Editor/Plugins}}&lt;br /&gt;
&lt;br /&gt;
El editor permite una importación básica de recursos externos. Esto es útil para &amp;quot;resources&amp;quot; que manipulan o crean objetos que el editor no puede, como vehículos con modelos modificados.&lt;br /&gt;
&lt;br /&gt;
Usando el comando '''import &amp;lt;nombreDeResource&amp;gt;''' en la consola, los elementos del resource pueden ser importados al editor.&lt;br /&gt;
&lt;br /&gt;
==Preguntas Frecuentes==&lt;br /&gt;
==== No veo nada (pantalla negra) al usar el editor  ====&lt;br /&gt;
&lt;br /&gt;
Generalmente esto ocurre debido a una mala instalación del editor de mapas. Si usas una versión estable de MTA, prueba a instalarlo de nuevo, y asegúrate de que las opciones &amp;quot;Client&amp;quot; y &amp;quot;Server&amp;quot; del instalador estén marcadas.&lt;br /&gt;
&lt;br /&gt;
En cambio, si usas una versión &amp;quot;nightly&amp;quot;, debes bajar la última versión de los[http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 &amp;quot;resources&amp;quot; (paso 3)], descomprimir el archivo y colocar su contenido en:&lt;br /&gt;
''MTA San Andreas\server\mods\deathmatch\resources'', donde ''MTA San Andreas'' es la carpeta donde instalaste MTA San Andreas (por defecto es: C:\Archivos de Programa\MTA San Andreas).&lt;br /&gt;
&lt;br /&gt;
'''Poner los archivos en: MTA San Andreas\mods\deathmatch\resources es un error común''' - no funcionarán ahí. Asegúrate de que dentro de la ruta donde colocas los archivos encuentres la palabra &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Si este problema persiste aún después de haber hecho los pasos mencionados y revisada la versión actual, puede ser porque tienes una versión obsoleta del archivo ''acl.xml''. Puedes descargarlo [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/acl.xml aquí].  Una vez descargado, colócalo en la carpeta '''MTA San Andreas/server/mods/deathmatch/'''.&lt;br /&gt;
&lt;br /&gt;
==== Me sale un mensaje que dice &amp;quot;Could not start the local server. See console for details&amp;quot; al iniciar el editor ====&lt;br /&gt;
Esto pasa porque tu archivo ''mtaserver.conf'' está dañado o está mal editado. Puedes descargarlo [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/editor.conf aquí]. Debes colocarlo en '''MTA San Andreas/server/mods/deathmatch/'''.&lt;br /&gt;
&lt;br /&gt;
==== Guardé un mapa con el editor, pero no lo encuentro en la carpeta resources. Sin embargo el editor lo carga en la lista ====&lt;br /&gt;
Esto se debe a que Windows Vista/7 tiene cietos límites de escritura para procesos no administrativos del directorio Archivos de Programa. Los archivos se guardan en el directorio &amp;quot;VirtualStore&amp;quot; en vez de en Archivos de Programa. Deberías poder encontrar tu mapa en el directorio:&lt;br /&gt;
 C:\Usuarios\&amp;lt;NOMBRE&amp;gt;\AppData\Local\VirtualStore\Program Files\MTA San Andreas\server\mods\deathmatch\resources\&lt;br /&gt;
&lt;br /&gt;
Si inicias el servidor o el cliente de MTA con derechos administrativos, tu mapa debería ser guardado en el lugar correcto.&lt;br /&gt;
&lt;br /&gt;
==== Encontré un error o tengo una sugerencia ====&lt;br /&gt;
Visita el [http://bugs.mtasa.com sistema de seguimiento de errores] oficial. También puedes ingresar al [http://www.multitheftauto.com/irc.html canal de IRC].&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Gothem&lt;br /&gt;
*F4ST3R&lt;br /&gt;
*Benxamix2/The Kid&lt;br /&gt;
&lt;br /&gt;
[[ru:Resource:Editor]]&lt;br /&gt;
[[en:Resource:Editor]]&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUITabSwitched&amp;diff=25755</id>
		<title>OnClientGUITabSwitched</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUITabSwitched&amp;diff=25755"/>
		<updated>2011-05-08T22:13:20Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This event is triggered each time the user switch from GUI tab.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element theElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''theElement''':  The tab which was selected.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the tabpanel.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a window with a tabpanel with two tabs. Every time a user changes tabpage a notification will be shown.&lt;br /&gt;
&lt;br /&gt;
First we'll create the window. Then add a tabpanel and couple tabs with some labels in them. Qoute: [[GuiCreateWindow#Example]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, &amp;quot;Information&amp;quot;, true )  -- create a window which has &amp;quot;Information&amp;quot; in the title bar.&lt;br /&gt;
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )       -- create a tab panel which fills the whole window&lt;br /&gt;
local tabMap = guiCreateTab( &amp;quot;Map Information&amp;quot;, tabPanel )                -- create a tab named &amp;quot;Map Information&amp;quot; on 'tabPanel'&lt;br /&gt;
local tabHelp = guiCreateTab( &amp;quot;Help&amp;quot;, tabPanel )                          -- create another tab named &amp;quot;Help&amp;quot; on 'tabPanel'&lt;br /&gt;
 &lt;br /&gt;
-- adds a label (text) to each tab&lt;br /&gt;
guiCreateLabel( 0.02, 0.04, 0.94, 0.2, &amp;quot;This is information about the current map&amp;quot;, true, tabMap )&lt;br /&gt;
guiCreateLabel( 0.02, 0.04, 0.94, 0.92, &amp;quot;This is help text.&amp;quot;, true, tabHelp )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let's add the event handler.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function OnChange( selectedTab )&lt;br /&gt;
&lt;br /&gt;
	-- If there is a selected tab.&lt;br /&gt;
	if selectedTab ~= nil then &lt;br /&gt;
	&lt;br /&gt;
		outputChatBox( &amp;quot;You've changed your active tab.&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUITabSwitched&amp;quot;, getRootElement( ), OnChange)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUITabSwitched&amp;diff=25754</id>
		<title>OnClientGUITabSwitched</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUITabSwitched&amp;diff=25754"/>
		<updated>2011-05-08T22:11:02Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This event is triggered each time the user switch from GUI tab.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element theElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''theElement''':  The element which was selected.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the tab selected.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a window with a tabpanel with two tabs. Every time a user changes tabpage a notification will be shown.&lt;br /&gt;
&lt;br /&gt;
First we'll create the window. Then add a tabpanel and couple tabs with some labels in them. Qoute: [[GuiCreateWindow#Example]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, &amp;quot;Information&amp;quot;, true )  -- create a window which has &amp;quot;Information&amp;quot; in the title bar.&lt;br /&gt;
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )       -- create a tab panel which fills the whole window&lt;br /&gt;
local tabMap = guiCreateTab( &amp;quot;Map Information&amp;quot;, tabPanel )                -- create a tab named &amp;quot;Map Information&amp;quot; on 'tabPanel'&lt;br /&gt;
local tabHelp = guiCreateTab( &amp;quot;Help&amp;quot;, tabPanel )                          -- create another tab named &amp;quot;Help&amp;quot; on 'tabPanel'&lt;br /&gt;
 &lt;br /&gt;
-- adds a label (text) to each tab&lt;br /&gt;
guiCreateLabel( 0.02, 0.04, 0.94, 0.2, &amp;quot;This is information about the current map&amp;quot;, true, tabMap )&lt;br /&gt;
guiCreateLabel( 0.02, 0.04, 0.94, 0.92, &amp;quot;This is help text.&amp;quot;, true, tabHelp )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let's add the event handler.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function OnChange( selectedTab )&lt;br /&gt;
&lt;br /&gt;
	-- If there is a selected tab.&lt;br /&gt;
	if selectedTab ~= nil then &lt;br /&gt;
	&lt;br /&gt;
		outputChatBox( &amp;quot;You've changed your active tab.&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUITabSwitched&amp;quot;, getRootElement( ), OnChange)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Funciones_de_servidor&amp;diff=25196</id>
		<title>Funciones de servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Funciones_de_servidor&amp;diff=25196"/>
		<updated>2011-01-15T23:06:51Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Redirected page to ES/Server Scripting Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[ES/Server_Scripting_Functions]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25195</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25195"/>
		<updated>2011-01-15T23:04:08Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Referencias */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[How you can help|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crear mapas, modos de juego, ayudar con scripts y comandos, escribir un código de ejemplo, traducir páginas del wiki, escribir tutoriales, o tan sólo jugar MTA, y reportar los errores que encuentres, en el [http://forum.multitheftauto.com| Foro de MTA].&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta OpenID. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Programación====&lt;br /&gt;
* [[ES/Introducción a la Programación| Introducción a la Programación en LUA]] (en construcción) [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Cómo encontrar errores en tus scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Resources| Introducción a los Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Resource Web Access| Acceso de Web con Resources]] [[Image:flag_us.png|En Inglés]] - Cómo escribir páginas web.&lt;br /&gt;
** [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de LUA y también algunos resources importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]] - Debes aprender a manejarlos para hacer buenos scripts.&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor LUA.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki LUA Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]] (EN TRADUCCION)&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Server Scripting Functions|Funciones de Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]] - Descripción de cada uno de los &amp;quot;tipos&amp;quot; personalizados de MTA.&lt;br /&gt;
** [[ES/Elemento| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Tipos de Valores| Tipos de valores]] [[Image:flag_es.png|En Español]] - Descripción de los tipos de valores usados en LUA.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Traducción====&lt;br /&gt;
* ¿Quieres ayudar a traducir el wiki? ¡Qué esperas! Deja tu e-mail (si quieres) aquí y empieza a hacerlo.&lt;br /&gt;
Traductores:&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:benxamix2@hotmail.com benxamix2@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, así nos ayudas más.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25194</id>
		<title>ES/Funciones de Servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25194"/>
		<updated>2011-01-15T22:59:06Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una función o un evento, usa [[Requested Functions and Events|pedido de funciones y eventos]] o http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Por favor ten en cuenta que las funciones se pueden también extender cargando un modulo dinámico que entregue una nueva funcionalidad, como el MySQL database access. Estas funciones no son nativas y requieren que el modulo este cargado para funcionar.&lt;br /&gt;
&lt;br /&gt;
Vea [[Modules|Modulos]] para una lista de funciones de servidor no-nativas y módulos que están disponibles.&lt;br /&gt;
&lt;br /&gt;
Para mas funciones, vea la pagina de [[Useful_Functions|funciones útiles]].&lt;br /&gt;
&lt;br /&gt;
'''Las funciones de cliente se pueden encontrar aqui: [[Client Scripting Functions|Funciones de cliente]].'''&lt;br /&gt;
&lt;br /&gt;
'''Tenga en cuenta que casi todas las funciones presentes no presentan una traducción en su definición'''&lt;br /&gt;
 &lt;br /&gt;
==Funciones de cuenta==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ACL==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones Administrativas==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de audio==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de anuncio==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de blip==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cámara==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de colisión==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ropa y cuerpo==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cursor==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de elemento==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de evento==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones explosivas==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de archivos==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de HTTP==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de Input==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de mapa==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de marcadores==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de modulos==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de objetos==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de peds==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de pickup==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de jugadores==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de area de radar==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de recursos==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de serial==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de servidor==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de registro de propiedades==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de SQL==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de equipo==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de texto==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de utilidad==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de vehiculos==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de agua==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de arma==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones del mundo==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de XML==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25193</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25193"/>
		<updated>2011-01-15T22:58:04Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Referencias */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[How you can help|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crear mapas, modos de juego, ayudar con scripts y comandos, escribir un código de ejemplo, traducir páginas del wiki, escribir tutoriales, o tan sólo jugar MTA, y reportar los errores que encuentres, en el [http://forum.multitheftauto.com| Foro de MTA].&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta OpenID. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Programación====&lt;br /&gt;
* [[ES/Introducción a la Programación| Introducción a la Programación en LUA]] (en construcción) [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Cómo encontrar errores en tus scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Resources| Introducción a los Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Resource Web Access| Acceso de Web con Resources]] [[Image:flag_us.png|En Inglés]] - Cómo escribir páginas web.&lt;br /&gt;
** [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de LUA y también algunos resources importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]] - Debes aprender a manejarlos para hacer buenos scripts.&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor LUA.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki LUA Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]] (EN TRADUCCION)&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Server Scripting Functions|Funciones de Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]] - Descripción de cada uno de los &amp;quot;tipos&amp;quot; personalizados de MTA.&lt;br /&gt;
** [[Element| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Tipos de Valores| Tipos de valores]] [[Image:flag_es.png|En Español]] - Descripción de los tipos de valores usados en LUA.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Traducción====&lt;br /&gt;
* ¿Quieres ayudar a traducir el wiki? ¡Qué esperas! Deja tu e-mail (si quieres) aquí y empieza a hacerlo.&lt;br /&gt;
Traductores:&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:benxamix2@hotmail.com benxamix2@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, así nos ayudas más.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25192</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25192"/>
		<updated>2011-01-15T22:57:14Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Referencias */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[How you can help|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crear mapas, modos de juego, ayudar con scripts y comandos, escribir un código de ejemplo, traducir páginas del wiki, escribir tutoriales, o tan sólo jugar MTA, y reportar los errores que encuentres, en el [http://forum.multitheftauto.com| Foro de MTA].&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta OpenID. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Programación====&lt;br /&gt;
* [[ES/Introducción a la Programación| Introducción a la Programación en LUA]] (en construcción) [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Cómo encontrar errores en tus scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Resources| Introducción a los Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Resource Web Access| Acceso de Web con Resources]] [[Image:flag_us.png|En Inglés]] - Cómo escribir páginas web.&lt;br /&gt;
** [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de LUA y también algunos resources importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]] - Debes aprender a manejarlos para hacer buenos scripts.&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor LUA.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki LUA Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]] (EN TRADUCCION)&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Server Scripting Functions|Funciones de Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]] - Descripción de cada uno de los &amp;quot;tipos&amp;quot; personalizados de MTA.&lt;br /&gt;
** [[Element| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Tipos de Valores| Tipos de valores]] [[Image:flag_es.png|En Español]] - Descripción de los tipos de valores usados en LUA.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Traducción====&lt;br /&gt;
* ¿Quieres ayudar a traducir el wiki? ¡Qué esperas! Deja tu e-mail (si quieres) aquí y empieza a hacerlo.&lt;br /&gt;
Traductores:&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:benxamix2@hotmail.com benxamix2@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, así nos ayudas más.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=25191</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=25191"/>
		<updated>2011-01-15T22:56:50Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
 &lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25190</id>
		<title>ES/Funciones de Servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25190"/>
		<updated>2011-01-15T22:56:20Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una función o un evento, usa [[Requested Functions and Events|funciones y eventos pedidos]] o http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Por favor ten en cuenta que las funciones se pueden también extender cargando un modulo dinámico que entregue una nueva funcionalidad, como el MySQL database access. Estas funciones no son nativas y requieren que el modulo este cargado para funcionar.&lt;br /&gt;
&lt;br /&gt;
Vea [[Modules|Modulos]] para una lista de funciones de servidor no-nativas y módulos que están disponibles.&lt;br /&gt;
&lt;br /&gt;
Para mas funciones, vea la pagina de [[Useful_Functions|funciones útiles]].&lt;br /&gt;
&lt;br /&gt;
'''Las funciones de cliente se pueden encontrar aqui: [[Client Scripting Functions|Funciones de cliente]].'''&lt;br /&gt;
&lt;br /&gt;
'''Tenga en cuenta que casi todas las funciones presentes no presentan una traducción en su definición'''&lt;br /&gt;
 &lt;br /&gt;
==Funciones de cuenta==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ACL==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones Administrativas==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de audio==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de anuncio==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de blip==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cámara==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de colisión==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ropa y cuerpo==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cursor==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de elemento==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de evento==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones explosivas==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de archivos==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de HTTP==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de Input==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de mapa==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de marcadores==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de modulos==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de objetos==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de peds==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de pickup==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de jugadores==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de area de radar==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de recursos==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de serial==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de servidor==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de registro de propiedades==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de SQL==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de equipo==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de texto==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de utilidad==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de vehiculos==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de agua==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de arma==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones del mundo==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de XML==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25189</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25189"/>
		<updated>2011-01-15T22:43:13Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Traducción */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[How you can help|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crear mapas, modos de juego, ayudar con scripts y comandos, escribir un código de ejemplo, traducir páginas del wiki, escribir tutoriales, o tan sólo jugar MTA, y reportar los errores que encuentres, en el [http://forum.multitheftauto.com| Foro de MTA].&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta OpenID. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Programación====&lt;br /&gt;
* [[ES/Introducción a la Programación| Introducción a la Programación en LUA]] (en construcción) [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Cómo encontrar errores en tus scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Resources| Introducción a los Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Resource Web Access| Acceso de Web con Resources]] [[Image:flag_us.png|En Inglés]] - Cómo escribir páginas web.&lt;br /&gt;
** [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de LUA y también algunos resources importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]] - Debes aprender a manejarlos para hacer buenos scripts.&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor LUA.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki LUA Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]] (EN TRADUCCION)&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Server Scripting Functions|Funciones de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]] - Descripción de cada uno de los &amp;quot;tipos&amp;quot; personalizados de MTA.&lt;br /&gt;
** [[Element| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Tipos de Valores| Tipos de valores]] [[Image:flag_es.png|En Español]] - Descripción de los tipos de valores usados en LUA.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Traducción====&lt;br /&gt;
* ¿Quieres ayudar a traducir el wiki? ¡Qué esperas! Deja tu e-mail (si quieres) aquí y empieza a hacerlo.&lt;br /&gt;
Traductores:&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:benxamix2@hotmail.com benxamix2@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, así nos ayudas más.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Tipos_de_Valores&amp;diff=25188</id>
		<title>ES/Tipos de Valores</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Tipos_de_Valores&amp;diff=25188"/>
		<updated>2011-01-15T22:41:23Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Los valores que una función regresa deben ser conocidos por el programador, para que éste comprenda mejor cómo funciona LUA y entienda las diferencias. Si no aprende los tipos de valores es posible que se pierda dentro de una confusión acerca de porqué no puede realizar una función determinada debido al tipo de valor entrado.&lt;br /&gt;
&lt;br /&gt;
Así como los elementos diferentes en la vida real, dos tipos de valores distintos no pueden compararse entre sí. Un valor &amp;quot;boolean&amp;quot; no puede compararse con un número porque no tiene un valor numérico que le permita hacer tal cosa, en vez de eso tiene un valor &amp;quot;verdadero&amp;quot; o &amp;quot;falso&amp;quot;. Las tablas no pueden ser usadas para una operación matemática, pero sus valores interiores sí pueden, si es que son números.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Los Valores ==&lt;br /&gt;
&lt;br /&gt;
* '''Boolean / Lógico''' - Sólo tiene 2 valores posibles: &amp;quot;true&amp;quot; y &amp;quot;false&amp;quot; (&amp;quot;verdadero&amp;quot; y &amp;quot;falso&amp;quot;).&lt;br /&gt;
* '''Integer: Int / Número Entero''' - Varía desde el infinito negativo hasta el infinito positivo. No puede contener decimales.&lt;br /&gt;
* '''Floating Point Number: Float / Número de Punto Flotante''' - Es igual al número entero con la diferencia de que éste sí puede contener decimales.&lt;br /&gt;
* '''Table / Tabla''' - Es un conjunto organizado de datos, generalmente usado para procesarlos más fácilmente y en forma común.&lt;br /&gt;
* '''Nil''' - Nada.&lt;br /&gt;
* '''String / Arreglo''' - Es un texto contenido entre comillas o dos pares de parentesis cuadrados.&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=25187</id>
		<title>ES/Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=25187"/>
		<updated>2011-01-15T22:38:42Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
El editor de mapas de MTA:SA te permite crear mapas para los modos de juegos.&lt;br /&gt;
&lt;br /&gt;
==Empezando==&lt;br /&gt;
Para empezar el editor, simplemente presiona &amp;quot;Map editor&amp;quot; en el menú principal de MTA&lt;br /&gt;
&lt;br /&gt;
==Menus==&lt;br /&gt;
Una vez que el editor haya comenzado, se te mostrarán dos menús de barras: La principal arriba, y la de elementos a la esquina inferior izquierda.&lt;br /&gt;
&lt;br /&gt;
===Menú principal===&lt;br /&gt;
Estos son los botones en el menú principal:&lt;br /&gt;
* [[Image:Editor_New.png]] Crear un nuevo mapa.&lt;br /&gt;
* [[Image:Editor_Open.png]] Abrir un mapa existente.&lt;br /&gt;
* [[Image:Editor_Save.png]] Grabar el mapa en que estás trabajando.&lt;br /&gt;
* [[Image:Editor_Save_as.png]] Grabar el mapa bajo un nombre diferente.&lt;br /&gt;
* [[Image:Editor_Options.png]] Modificar las opciones generales del editor.&lt;br /&gt;
* [[Image:Editor_Undo.png]] Deshacer la ultima acción.&lt;br /&gt;
* [[Image:Editor_Redo.png]] Restaurar la ultima acción deshecha.&lt;br /&gt;
* [[Image:Editor_Locations.png]] Lista de lugares &amp;quot;favoritos&amp;quot; de GTA.&lt;br /&gt;
* [[Image:Editor_Current_elements.png]] Lista de todos los elementos contenidos en el mapa (Autos, Objetos, Marcadores, Pickups, etc).&lt;br /&gt;
* [[Image:Editor_Map_settings.png]] Propiedades del mapa, como el tiempo, la gravedad, etc. Aquí también puedes especificar los modos de juego que son compatibles con tu mapa.&lt;br /&gt;
* [[Image:Editor_Definitions.png]] Cargar [[Resource:Editor/EDF| definiciones del editor (EDF)]] que tú quieras usar&lt;br /&gt;
* [[Image:Editor_Test.png]] Ir al modo play para probar el mapa, O puede cargar el modo al que el mapa esta hecho.  &lt;br /&gt;
&lt;br /&gt;
===Menú de elementos===&lt;br /&gt;
El menú de elementos es usado para agregar nuevos elementos al mapa.&lt;br /&gt;
* [[Image:Editor_Vehicle.png]] Crear un nuevo vehículo&lt;br /&gt;
* [[Image:Editor_Object.png]] Crear un nuevo objeto (edificios, caminos, basura, árboles, rocas, decoración exterior, etc).&lt;br /&gt;
* [[Image:Editor_Pickup.png]] Crear un nuevo pickup (sólo se puede crear de vida, armadura o armas).&lt;br /&gt;
* [[Image:Editor_Marker.png]] Crear un nuevo marcador.&lt;br /&gt;
&lt;br /&gt;
Adicionalmente, si tu tienes una [[Resource:Editor/EDF| definición de editor]] cargada, girando la rueda del ratón (con el cursor sobre el menú) puedes cargar esos elementos propios.&lt;br /&gt;
&lt;br /&gt;
==Usando el editor==&lt;br /&gt;
Esta sección te explicará cómo crear y modificar mapas.&lt;br /&gt;
&lt;br /&gt;
===Moviéndose alrededor del mapa===&lt;br /&gt;
Cuando inicias el editor, inicias en el ''modo de cámara''. Puedes usar las teclas '''W, S, A y D''' para mover la cámara y el ratón para girar la cámara. Cuando te muevas, puedes mantener la tecla '''ALT''' para moverte más lento, o la tecla '''SHIFT''' para ir más rápido.&lt;br /&gt;
&lt;br /&gt;
Para acceder a la interfaz del editor y al panel de control necesitas cambiar al ''modo de cursor''. Puedes cambiar entre el modo de cursor y el modo de cámara con la tecla '''F'''. Cuando estés en modo de cursor, tu vista estará congelada, y solo podrás usar el cursor del ratón para manipular elementos y usar la interfaz gráfica.&lt;br /&gt;
&lt;br /&gt;
El modo de cámara puede ser reconocido por una mira en medio de la pantalla. Puedes usarla para seleccionar y mover elementos como en el modo de cursor. Esta mira tiene el diseño siguiente:&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Crosshair.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Empezando un nuevo mapa===&lt;br /&gt;
* Inicia el editor, o si ya está iniciado, apreta el boton ''Nuevo'' del menú.&lt;br /&gt;
* Apreta el botón ''Opciones de mapa''. En la pestaña ''Meta'', llena los campos de &amp;quot;Name&amp;quot; y &amp;quot;Author&amp;quot; con el nombre de tu mapa y tu nick en MTA, respectivamente. También abre la pestaña ''Gamemodes'' y agrega los modos de juego para los cuales tu mapa está hecho (éstos se van a mover a la lista de ''Added Gamemodes''). Puedes hacer esto seleccionándolos y apretando en ''Add'', o haciendo doble click sobre ellos. Apreta OK cuando estés listo.&lt;br /&gt;
[[Image:Editor_Mapsettings.png|center]]&lt;br /&gt;
* Apreta en la ventana de ''Definiciones'' y agrega los recursos en donde uses los elementos alternativos. Estos debieran consistir de los modos que tu seleccionaste en la ventana de ''Map settings'', ademas de eventuales recursos adicionales. Para mas informacion acerca de las definiciones del editor, ve [[Resource:Editor/EDF|EDF (En Inglés)]]. Apreta OK cuando estes listo.&lt;br /&gt;
&lt;br /&gt;
===Creando nuevos elementos===&lt;br /&gt;
* Si tu estas en el modo de camara, cambia al modo de cursor primero apretando '''F'''.&lt;br /&gt;
* Apreta un boton en el menu de elementos que represente lo que tu quieres. Ej: Apreta el boton con un auto en el para agregar un vehiculo.&lt;br /&gt;
* Un nuevo elemento del tipo seleccionado sera creado y pegado a tu cursor. Muevelo a la posicion que quieras y apreta el '''botón izquierdo''' para dejarlo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Addelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Para crear un elemento alternativo que es especifico a un recurso, mueve tu cursor sobre el menu de elementos y gira la rueda del ratón hasta el recurso esperado. Ten en cuenta que para este trabajo, primero necesitas haber agregado el archivo de [[Resource:Editor/EDF|Definición de editor]] del recurso en la ventana ''Definitions''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Selectedf.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Seleccionando===&lt;br /&gt;
* '''Click izquierdo''' sobre un elemento para seleccionarlo en ''modo de teclado''.&lt;br /&gt;
* '''Click derecho''' sobre este elemento para seleccionarlo en ''modo de ratón''.&lt;br /&gt;
* Apreta la '''Barra espaciadora''' o apreta sobre un area vacia para sacar la selección.&lt;br /&gt;
&lt;br /&gt;
El elemento elegido, si lo hay, es representado por un marcador de cono amarillo. Elementos (particularmente objetos) con pesima colision se peuden detectar facilmente activando el ''modo de alta sensibilidad'', apretando la tecla '''E'''. Esto incrementara la detección.&lt;br /&gt;
&lt;br /&gt;
El dialogo ''Current elements'' puede ser usado tambien para seleccionar elementos. Has doble-click sobre un item de la lista para seleccionarlo en ''modo de teclado''&lt;br /&gt;
&lt;br /&gt;
===Moviendo===&lt;br /&gt;
Mover elementos se puede hacer de muchas formas.&lt;br /&gt;
&lt;br /&gt;
'''Con el ratón'''&lt;br /&gt;
* Simplemente pesca y deja con el '''boton izquierdo'''&lt;br /&gt;
O:&lt;br /&gt;
* Selecciona el elemento en el modo de ratón ('''boton derecho'''), muevelo hacia la posición que quieras, y apreta para dejarlo.&lt;br /&gt;
&lt;br /&gt;
Tu tambien puedes ajustar la ''distancia'' de un elemento acercandolo o alejandolo de la camara mediante el cambio al modo de camara, ''''click derecho''' en un elemento girando la '''rueda del ratón'''.&lt;br /&gt;
&lt;br /&gt;
'''Con el teclado'''&lt;br /&gt;
* Selecciona el elemento en el modo de teclado ('''boton izquierdo'''),&lt;br /&gt;
* Usa las '''flechas del teclado''' para mover el elemento en un plano horizontal, y '''repág'''/'''avpág''' para moverlo verticalmente. Mantén '''ALT''' para disminuir la velocidad de movimiento, o '''SHIFT''' para incrementarla.&lt;br /&gt;
&lt;br /&gt;
Por defecto, los elementos se mueven relativamente a la cámara y no están limitadas a sus ejes. Esto se puede desactivar en el menu de '''Opciones'''&lt;br /&gt;
&lt;br /&gt;
===Rotating===&lt;br /&gt;
'''With the mouse'''&lt;br /&gt;
&lt;br /&gt;
You can rotate selected elements around the Z axis with the mouse wheel.&lt;br /&gt;
* Select the element in keyboard mode ('''left click''') and roll the mouse wheel while holding '''Left CTRL'''.&lt;br /&gt;
Or:&lt;br /&gt;
* Select the element in mouse mode ('''right click'''), hold '''CTRL''', and roll the mouse wheel.&lt;br /&gt;
&lt;br /&gt;
'''With the keyboard'''&lt;br /&gt;
* Select the element in keyboard mode ('''left click''').&lt;br /&gt;
* While holding '''CTRL''' (the selection marker will turn green), use the '''arrow keys''' and '''PgUp'''/'''PgDn''' to rotate the element around the different axes.&lt;br /&gt;
&lt;br /&gt;
With both methods you can additionally hold '''ALT''' to decrease the rotation speed or '''SHIFT''' to increase it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Rotateelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Cambio de modelo y otras propiedades===&lt;br /&gt;
La mayoría de los elementos tiene una variedad de opciones que pueden ser alteradas para cambiar su apariencia. Ejemplos son los modelos, color y las actualizaciones visuales de un auto.&lt;br /&gt;
&lt;br /&gt;
* Abre la ventana de propiedades de un elemento, presionando dos veces en el o seleccionándolo y apretando '''F3'''.&lt;br /&gt;
* Hace las modificaciones que tu quieras. Por ejemplo, para cambiar el modelo de un auto o objeto, presiona en el botón '''Browse''' al lado de &amp;quot;model&amp;quot; para abrir el buscador de modelos.&lt;br /&gt;
* presiona OK cuando estés listo&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Props.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
You can clone an element by selecting it and pressing '''C'''. &lt;br /&gt;
&lt;br /&gt;
* In mouse mode the cloned element will be attached to your cursor. '''Left click''' to place it in the map.&lt;br /&gt;
* In keyboard mode the cloned element will be cloned in the identical position.&lt;br /&gt;
&lt;br /&gt;
If you hold '''CTRL''' while clicking, the element will be cloned again and will again be attached to the cursor. This way you can easily place large quantities of something.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to clone an element.&lt;br /&gt;
&lt;br /&gt;
===Deleting===&lt;br /&gt;
Simply select the element and press '''DEL''' ''(Delete)''.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to delete an element.&lt;br /&gt;
&lt;br /&gt;
==Creating maps for specific gamemodes==&lt;br /&gt;
To make a map for a specific gamemode, you have to do two things:&lt;br /&gt;
* Click the '''Map Settings''' button in the top menu, go to the '''Gamemodes''' tab and add any gamemodes that your map is to be used with.&lt;br /&gt;
* You will likely also need to add one or more [[Resource:Editor/EDF|Editor Definition Files]]. These will allow you to place gamemode specific elements in the map, like spawnpoints, race checkpoints, or CTF flags. You can add EDF's by clicking the '''Definitions''' menu button and adding the relevant gamemodes.&lt;br /&gt;
&lt;br /&gt;
==Controls==&lt;br /&gt;
Here is a list of all default controls. To change them please go to the MTA Settings menu while the Editor is started.&lt;br /&gt;
&lt;br /&gt;
===Camera===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_forwards&lt;br /&gt;
| '''w'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_backwards&lt;br /&gt;
| '''s'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_left&lt;br /&gt;
| '''a'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_right&lt;br /&gt;
| '''d'''&lt;br /&gt;
|-&lt;br /&gt;
| high_sensitivity_mode&lt;br /&gt;
| '''e'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| clone_selected_element&lt;br /&gt;
| '''c'''&lt;br /&gt;
|-&lt;br /&gt;
| clone_drop_modifier&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Element manipulation===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| element_move_forward&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_backward&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_left&lt;br /&gt;
| '''arrow_l''' || ''(Arrow key Left)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_right&lt;br /&gt;
| '''arrow_r''' || ''(Arrow key Right)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_downwards&lt;br /&gt;
| '''pgdn''' || ''(Page Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_upwards&lt;br /&gt;
| '''pgup''' || ''(Page Up)''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_in&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_out&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_increase&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_up''' || ''(Left CTRL + Mouse wheel Up)''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_decrease&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_down''' || ''(Left CTRL + Mouse wheel Down)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_rotate&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_slow_speed&lt;br /&gt;
| '''lalt''' || ''(Left ALT)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_fast_speed&lt;br /&gt;
| '''lshift''' || ''(Left SHIFT)''&lt;br /&gt;
|-&lt;br /&gt;
| destroy_selected_element&lt;br /&gt;
| '''delete'''&lt;br /&gt;
|-&lt;br /&gt;
| drop_selected_element&lt;br /&gt;
| '''space'''&lt;br /&gt;
|-&lt;br /&gt;
| pickup_selected_element&lt;br /&gt;
| '''F2'''&lt;br /&gt;
|-&lt;br /&gt;
| reset_rotation&lt;br /&gt;
| '''mod_rotate''' + '''r''' || ''(Left CTRL + R)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===GUI===&lt;br /&gt;
{|&lt;br /&gt;
| toggle_gui_display&lt;br /&gt;
| '''F4'''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_cursor&lt;br /&gt;
| '''f'''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_keyboard&lt;br /&gt;
| '''mouse1''' || ''(Left Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_mouse&lt;br /&gt;
| '''mouse2''' || ''(Right Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| edf_next&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| edf_prev&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| undo&lt;br /&gt;
| '''Ctrl''' + '''z'''&lt;br /&gt;
|-&lt;br /&gt;
| redo&lt;br /&gt;
| '''Ctrl''' + '''y'''&lt;br /&gt;
|-&lt;br /&gt;
| properties_toggle&lt;br /&gt;
| '''F3'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_up&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_down&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_in&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_out&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_confirm&lt;br /&gt;
| '''enter'''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_up&lt;br /&gt;
| '''num_8''' || ''(Numpad key 8)''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_down&lt;br /&gt;
| '''num_2''' || ''(Numpad key 2)''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_test&lt;br /&gt;
| '''F5'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multiplayer==&lt;br /&gt;
The editor is built with both serverside and clientside components, and therefore supports multiplayer out of the box.  To use the editor in multiplayer with other players, simply copy all of the editor's resources into your server, start the '''editor''' resource and allow other players to join.&lt;br /&gt;
&lt;br /&gt;
Please note that currently the editor lacks any permissions system, ao all users have access to every function.&lt;br /&gt;
&lt;br /&gt;
==Plugins &amp;amp; External resources==&lt;br /&gt;
{{Main|Resource:Editor/Plugins}}&lt;br /&gt;
&lt;br /&gt;
The editor allows basic importing of elements from external resources.  This is useful for resources that may have to manipulate an element in a specific way that cannot be performed by the editor.  For example, a map resource which uses custom models (and has a script to import these models) cannot be manipulated by default within the editor.  &lt;br /&gt;
&lt;br /&gt;
By using the '''import &amp;lt;resourceName&amp;gt;''' command in console the resource's elements can be imported within the editor.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
==== I get a black screen when launching the Map Editor  ====&lt;br /&gt;
&lt;br /&gt;
Usually this is caused due to incorrect installation of Map Editor resources. If you are using a stable MTASA client, please install it again and make sure that you use Client and Server install option.&lt;br /&gt;
&lt;br /&gt;
If you are using a nightly build, to get it working right you need to download latest [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 resources (step 3)], unpack the archive and put its contents in:&lt;br /&gt;
''MTA San Andreas\server\mods\deathmatch\resources'' , where ''MTA San Andreas'' is a folder where you've installed MTA San Andreas (default location: C:\Program Files\MTA San Andreas).&lt;br /&gt;
&lt;br /&gt;
Putting them in this path: MTA San Andreas\mods\deathmatch\resources '''is a common mistake''' - it won't work if you put them there. So make sure to put them in the ''italic'' path above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If this issue still occurs, even when you've checked the note above and verified that you've installed it correctly, it might be because you've got an outdated '''acl.xml''' file.   You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/acl.xml here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I get an &amp;quot;Could not start the local server. See console for details&amp;quot; when using the  &amp;quot;Map Editor&amp;quot; button ====&lt;br /&gt;
This is because you do not have a valid editor.conf installed.  You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/editor.conf here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I have saved a map but cannot find it in my server's resources directory, despite the Editor itself being able to see it ====&lt;br /&gt;
This is due to the fact that Vista/7 limits write-access for non-admin processes in Program Files directory. Files get written in the &amp;quot;VirtualStore&amp;quot; directory instead of real Program Files folder.  You should be able to locate your map resource in a similar directory to:&lt;br /&gt;
 C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Local\VirtualStore\Program Files\MTA San Andreas\server\mods\deathmatch\resources\&lt;br /&gt;
&lt;br /&gt;
Running the Server/MTA San Andreas with Administrative rights will allow the map to be saved to the proper location.&lt;br /&gt;
&lt;br /&gt;
==== I have found a bug or have a suggestion/feedback for the map editor ====&lt;br /&gt;
Please use the official [http://bugs.mtasa.com bugtracker] for reporting bugs.  Feel free to also join us on [http://www.multitheftauto.com/irc.html IRC].&lt;br /&gt;
&lt;br /&gt;
[[ru:Resource:Editor]]&lt;br /&gt;
[[en:Resource:Editor]]&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25096</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=25096"/>
		<updated>2011-01-14T16:06:22Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Editor de Mapas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;[[Image:Scripting.jpg]]&amp;lt;/div&amp;gt;Bienvenido al wiki de Multi Theft Auto: San Andreas en Español. En este wiki encontrarás una gran cantidad de información sobre el desarrollo de mapas y modos de juego para Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Hay muchas [[How you can help|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crear mapas, modos de juego, ayudar con scripts y comandos, escribir un código de ejemplo, traducir páginas del wiki, escribir tutoriales, o tan sólo jugar MTA, y reportar los errores que encuentres, en el [http://forum.multitheftauto.com| Foro de MTA].&lt;br /&gt;
&lt;br /&gt;
Si tienes preguntas, dudas o consultas acerca de alguna función, o script, no dudes en consultarnos por el [[IRC Channel|Canal de IRC ]][[Image:flag_us.png|En Inglés]] o en la [http://forum.mtasa.com/viewforum.php?f=122 Sección en Español del Foro MTA].&lt;br /&gt;
&lt;br /&gt;
'''Para aportar en el wiki nececitas tener una cuenta OpenID. Si borras contenido que no es propio o haces SPAM, serás penalizado con el banneo de la cuenta en el wiki.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 2px dotted navy; padding: 4px; margin: 10px&amp;quot;&amp;gt;La última versión estable de '''Multi Theft Auto: San Andreas''' es '''{{Current Version|full}}'''. Visita la [http://mtasa.com/ página oficial] para obtenerla. También puedes elegir una versión &amp;quot;nightly&amp;quot; (sólo para desarrolladores o gente que quiera ayudar reportando bugs) en la sección de [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 versiones &amp;quot;nightly&amp;quot;], recuerda que estas versión se actualizan casi a diario, y son poco estables en lo que a errores se refiere (además son incompatibles con la mayoría de los servidores).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Cómo empezar====&lt;br /&gt;
&lt;br /&gt;
* [[ES/Manual_Cliente_Deathmatch| Manual del Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Manual Servidor Deathmatch| Manual del Servidor]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ| Problemas Conocidos]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Programación====&lt;br /&gt;
* [[ES/Introducción a la Programación| Introducción a la Programación en LUA]] (en construcción) [[Image:flag_es.png|En Español]]&lt;br /&gt;
* [[Introduction to Scripting the GUI| Introducción a la Programación del GUI]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Debugging| Tutorial de Depuración]] [[Image:flag_us.png|En Inglés]] - Cómo encontrar errores en tus scripts.&lt;br /&gt;
&lt;br /&gt;
* [[Resources| Introducción a los Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Resource Web Access| Acceso de Web con Resources]] [[Image:flag_us.png|En Inglés]] - Cómo escribir páginas web.&lt;br /&gt;
** [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
** [[Meta.xml| Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Map_manager| El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Writing_Gamemodes| Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Useful_Functions| Funciones útiles]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
====Base de Datos====&lt;br /&gt;
Esta sección provee de todas las capacidades de LUA y también algunos resources importantes.&lt;br /&gt;
* [[:Category:Resource| Catálogo de Resources]] [[Image:flag_us.png|En Inglés]] - Debes aprender a manejarlos para hacer buenos scripts.&lt;br /&gt;
* [[ES/Scripts de Cliente| Scripts de Cliente]] [[Image:flag_es.png|En Español]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ayuda General de LUA====&lt;br /&gt;
Éstas páginas te pueden ayudar a manejar mejor LUA.&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html &amp;quot;Manual de Referencia de LUA 5.1&amp;quot;]  [[Image:flag_es.png|En Español]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual &amp;quot;Programando en LUA&amp;quot;]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki LUA Wiki]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de LUA de Nixstaller]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor| Manual]]  [[Image:flag_es.png|En Traducción]] (EN TRADUCCION)&lt;br /&gt;
*[[Resource:Editor/EDF| EDF: Formato de Definiciones del Editor]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
*[[Resource:Editor/Plugins| Plugins]]  [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px; background:#CCCCFF;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Referencias====&lt;br /&gt;
* [[Client Scripting Functions|Funciones de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Server Scripting Functions|Funciones de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español]] - Descripción de cada uno de los &amp;quot;tipos&amp;quot; personalizados de MTA.&lt;br /&gt;
** [[Element| Definición de Elemento]] [[Image:flag_es.png|En Español]] &lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés]]&lt;br /&gt;
* [[ES/Tipos de Valores| Tipos de valores]] [[Image:flag_es.png|En Español]] - Descripción de los tipos de valores usados en LUA.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====[[Id|Lista de IDs]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[Weather|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Traducción====&lt;br /&gt;
* ¿Quieres ayudar a traducir el wiki? ¡Qué esperas! Deja tu e-mail aquí y empieza a hacerlo.&lt;br /&gt;
Traductores:&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:benxamix2@hotmail.com benxamix2@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano, y trata de que al traducir todo quede tan claro como puedas, así nos ayudas más.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[ru:Main Page]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=25095</id>
		<title>Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=25095"/>
		<updated>2011-01-14T16:03:09Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
The MTA:SA map editor allows you to create maps for gamemodes.&lt;br /&gt;
&lt;br /&gt;
==Starting==&lt;br /&gt;
To start the editor, simply click the &amp;quot;Map editor&amp;quot; menu item in the main MTA menu.&lt;br /&gt;
&lt;br /&gt;
==Menus==&lt;br /&gt;
Once the editor has started, you are presented with two menu bars: the main menu at the top, and the element menu in the lower left.&lt;br /&gt;
&lt;br /&gt;
===Main menu===&lt;br /&gt;
These are the buttons in the main menu:&lt;br /&gt;
* [[Image:Editor_New.png]] Create a new map.&lt;br /&gt;
* [[Image:Editor_Open.png]] Open an existing map.&lt;br /&gt;
* [[Image:Editor_Save.png]] Save the map you're working on.&lt;br /&gt;
* [[Image:Editor_Save_as.png]] Save your map under a different name.&lt;br /&gt;
* [[Image:Editor_Options.png]] Alter general map editor settings.&lt;br /&gt;
* [[Image:Editor_Undo.png]] Undo the last action.&lt;br /&gt;
* [[Image:Editor_Redo.png]] Restore the last undone action.&lt;br /&gt;
* [[Image:Editor_Locations.png]] Stored game world locations. The editor comes with a great list of San Andreas Interior locations but you can also add your own interior and non-interior locations to the list.&lt;br /&gt;
* [[Image:Editor_Current_elements.png]] List all the elements the map contains (objects, vehicles, markers, pickups etc.)&lt;br /&gt;
* [[Image:Editor_Map_settings.png]] Map specific settings, like time of day, gravity etc. Here you can also specify what gamemodes the map is compatible with.&lt;br /&gt;
* [[Image:Editor_Definitions.png]] Load [[Resource:Editor/EDF|editor definition files (EDF)]] that you want to use. &lt;br /&gt;
* [[Image:Editor_Test.png]] Go into play mode to try out the map. This will load up the gamemode the map is made for.&lt;br /&gt;
&lt;br /&gt;
===Element menu===&lt;br /&gt;
The element menu is used to add new elements to the map.&lt;br /&gt;
* [[Image:Editor_Vehicle.png]] Create a new vehicle.&lt;br /&gt;
* [[Image:Editor_Object.png]] TCreate a new object (buildings, roads and other scenery).&lt;br /&gt;
* [[Image:Editor_Pickup.png]] Create a new pickup (health, armor, weapons).&lt;br /&gt;
* [[Image:Editor_Marker.png]] Create a new marker.&lt;br /&gt;
&lt;br /&gt;
Additionally, if you have [[Resource:Editor/EDF|editor definitions loaded]], you can roll the mousewheel in this menu to bring up custom elements.&lt;br /&gt;
&lt;br /&gt;
==Using the editor==&lt;br /&gt;
This section explains how to create and modify maps.&lt;br /&gt;
&lt;br /&gt;
===Moving around the map===&lt;br /&gt;
When you initially start the editor, you are in ''camera mode''.  You are able to use the '''WSAD''' keys to move the camera and the mouse to pan the camera.  While moving around, you can hold '''ALT''' to move more slowly or '''SHIFT''' to go faster.&lt;br /&gt;
&lt;br /&gt;
To access the editor's interface and control panel you need to switch to ''cursor mode''.  You can toggle between cursor mode and camera mode with the '''F''' key.  When in cursor mode,  your view is fixed, and you can use the mouse cursor to manipulate elements and use the graphical interface.&lt;br /&gt;
&lt;br /&gt;
Camera mode can be recognized by a crosshair in the center of the screen. You can use it to select and move elements just like in cursor mode.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Crosshair.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Starting a new map===&lt;br /&gt;
* Start the editor, or if it is already started, click the ''New'' menu button.&lt;br /&gt;
* Click the ''Map settings'' button. In the ''Meta'' tab, fill in the Name and Author fields with the name of the map and your name respectively. Also open the ''Gamemodes'' tab and add the gamemodes your map is meant for (they will be moved to the ''Added gamemodes'' list). You can do this by selecting them and clicking ''Add'', or by double clicking them. Click OK when you're done.&lt;br /&gt;
[[Image:Editor_Mapsettings.png|center]]&lt;br /&gt;
* Click the ''Definitions'' window and add the resources of which you want to use the custom elements. These will consist of the gamemodes you selected in the ''Map settings'' window, plus eventual additional resources. For more information about editor definitions, see [[Resource:Editor/EDF|EDF]]. Click OK when you're done.&lt;br /&gt;
&lt;br /&gt;
===Creating new elements===&lt;br /&gt;
Adding elements to your map, such as vehicles and objects, is very straightforward.&lt;br /&gt;
* If you are in camera mode, switch to cursor mode first by pressing '''F'''.&lt;br /&gt;
* Click the button in the element menu that represents what you want. E.g., click the button with a car on it to add a vehicle.&lt;br /&gt;
* A new element of the selected type will be created and attached to your cursor. Move it to the location where you want it and '''left click''' to drop it off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Addelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create custom elements that are specific to a resource, hover the cursor over the element menu and turn the scroll wheel until the desired resource comes up. Note that for this to work, you first have to add the [[Resource:Editor/EDF|EDF]] file of the resource in the ''Definitions'' window.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Selectedf.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Selecting===&lt;br /&gt;
* '''Left click''' an element to select it in ''keyboard mode''.&lt;br /&gt;
* '''Right click''' it to select it in ''mouse mode''.&lt;br /&gt;
* Press the '''Spacebar''' or click in an empty area to deselect.&lt;br /&gt;
&lt;br /&gt;
The selected element, if any, is denoted by a yellow cone marker.  Elements (particularly objects) with poor collisions can be detected easier by enabling ''High sensitivity mode'', by pressing the '''E''' key.  This increases detection at the expense of accuracy.&lt;br /&gt;
&lt;br /&gt;
The ''Current elements'' dialog can also be used to select elements.  Double-clicking an item within the list will select it in ''Keyboard mode''.&lt;br /&gt;
&lt;br /&gt;
===Moving===&lt;br /&gt;
Moving elements can be done in several ways.&lt;br /&gt;
&lt;br /&gt;
'''With the mouse'''&lt;br /&gt;
* Simply drag and drop with the '''left mouse button'''.&lt;br /&gt;
Or:&lt;br /&gt;
* Select the element in mouse mode ('''right click'''), move it to where you want it, and click to drop it off.&lt;br /&gt;
&lt;br /&gt;
You can also adjust the ''Hold distance'' of an element toward and away from the camera by switching to camera mode, '''right clicking''' the element, and rolling the '''mouse wheel'''.&lt;br /&gt;
&lt;br /&gt;
'''With the keyboard'''&lt;br /&gt;
* Select the element in keyboard mode ('''left click''').&lt;br /&gt;
* Use the '''arrow keys''' to move the element in the horizontal plane, and '''PgUp'''/'''PgDn''' to move it vertically. Hold '''ALT''' to decrease the movement speed, or '''SHIFT''' to increase it.&lt;br /&gt;
&lt;br /&gt;
By default, elements move relative to the camera and are not locked to any axes.  This can be disabled in the ''Options'' menu.&lt;br /&gt;
&lt;br /&gt;
===Rotating===&lt;br /&gt;
'''With the mouse'''&lt;br /&gt;
&lt;br /&gt;
You can rotate selected elements around the Z axis with the mouse wheel.&lt;br /&gt;
* Select the element in keyboard mode ('''left click''') and roll the mouse wheel while holding '''Left CTRL'''.&lt;br /&gt;
Or:&lt;br /&gt;
* Select the element in mouse mode ('''right click'''), hold '''CTRL''', and roll the mouse wheel.&lt;br /&gt;
&lt;br /&gt;
'''With the keyboard'''&lt;br /&gt;
* Select the element in keyboard mode ('''left click''').&lt;br /&gt;
* While holding '''CTRL''' (the selection marker will turn green), use the '''arrow keys''' and '''PgUp'''/'''PgDn''' to rotate the element around the different axes.&lt;br /&gt;
&lt;br /&gt;
With both methods you can additionally hold '''ALT''' to decrease the rotation speed or '''SHIFT''' to increase it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Rotateelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Changing model and other properties===&lt;br /&gt;
Most elements have a variety of options that can be altered to change their appearance and behaviour. Examples are the model, color and visual upgrades of a car.&lt;br /&gt;
&lt;br /&gt;
* Open the properties window of an element by either double clicking it or by selecting it and pressing '''F3'''.&lt;br /&gt;
* Make any alterations that you want. For example, to change the model of a car or object, click the '''Browse''' button next to &amp;quot;model&amp;quot; to open the model browser.&lt;br /&gt;
* Click OK when you're done.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Props.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
You can clone an element by selecting it and pressing '''C'''. &lt;br /&gt;
&lt;br /&gt;
* In mouse mode the cloned element will be attached to your cursor. '''Left click''' to place it in the map.&lt;br /&gt;
* In keyboard mode the cloned element will be cloned in the identical position.&lt;br /&gt;
&lt;br /&gt;
If you hold '''CTRL''' while clicking, the element will be cloned again and will again be attached to the cursor. This way you can easily place large quantities of something.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to clone an element.&lt;br /&gt;
&lt;br /&gt;
===Deleting===&lt;br /&gt;
Simply select the element and press '''DEL''' ''(Delete)''.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to delete an element.&lt;br /&gt;
&lt;br /&gt;
==Creating maps for specific gamemodes==&lt;br /&gt;
To make a map for a specific gamemode, you have to do two things:&lt;br /&gt;
* Click the '''Map Settings''' button in the top menu, go to the '''Gamemodes''' tab and add any gamemodes that your map is to be used with.&lt;br /&gt;
* You will likely also need to add one or more [[Resource:Editor/EDF|Editor Definition Files]]. These will allow you to place gamemode specific elements in the map, like spawnpoints, race checkpoints, or CTF flags. You can add EDF's by clicking the '''Definitions''' menu button and adding the relevant gamemodes.&lt;br /&gt;
&lt;br /&gt;
==Controls==&lt;br /&gt;
Here is a list of all default controls. To change them please go to the MTA Settings menu while the Editor is started.&lt;br /&gt;
&lt;br /&gt;
===Camera===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_forwards&lt;br /&gt;
| '''w'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_backwards&lt;br /&gt;
| '''s'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_left&lt;br /&gt;
| '''a'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_right&lt;br /&gt;
| '''d'''&lt;br /&gt;
|-&lt;br /&gt;
| high_sensitivity_mode&lt;br /&gt;
| '''e'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| clone_selected_element&lt;br /&gt;
| '''c'''&lt;br /&gt;
|-&lt;br /&gt;
| clone_drop_modifier&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Element manipulation===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| element_move_forward&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_backward&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_left&lt;br /&gt;
| '''arrow_l''' || ''(Arrow key Left)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_right&lt;br /&gt;
| '''arrow_r''' || ''(Arrow key Right)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_downwards&lt;br /&gt;
| '''pgdn''' || ''(Page Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_upwards&lt;br /&gt;
| '''pgup''' || ''(Page Up)''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_in&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_out&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_increase&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_up''' || ''(Left CTRL + Mouse wheel Up)''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_decrease&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_down''' || ''(Left CTRL + Mouse wheel Down)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_rotate&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_slow_speed&lt;br /&gt;
| '''lalt''' || ''(Left ALT)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_fast_speed&lt;br /&gt;
| '''lshift''' || ''(Left SHIFT)''&lt;br /&gt;
|-&lt;br /&gt;
| destroy_selected_element&lt;br /&gt;
| '''delete'''&lt;br /&gt;
|-&lt;br /&gt;
| drop_selected_element&lt;br /&gt;
| '''space'''&lt;br /&gt;
|-&lt;br /&gt;
| pickup_selected_element&lt;br /&gt;
| '''F2'''&lt;br /&gt;
|-&lt;br /&gt;
| reset_rotation&lt;br /&gt;
| '''mod_rotate''' + '''r''' || ''(Left CTRL + R)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===GUI===&lt;br /&gt;
{|&lt;br /&gt;
| toggle_gui_display&lt;br /&gt;
| '''F4'''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_cursor&lt;br /&gt;
| '''f'''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_keyboard&lt;br /&gt;
| '''mouse1''' || ''(Left Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_mouse&lt;br /&gt;
| '''mouse2''' || ''(Right Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| edf_next&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| edf_prev&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| undo&lt;br /&gt;
| '''Ctrl''' + '''z'''&lt;br /&gt;
|-&lt;br /&gt;
| redo&lt;br /&gt;
| '''Ctrl''' + '''y'''&lt;br /&gt;
|-&lt;br /&gt;
| properties_toggle&lt;br /&gt;
| '''F3'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_up&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_down&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_in&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_out&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_confirm&lt;br /&gt;
| '''enter'''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_up&lt;br /&gt;
| '''num_8''' || ''(Numpad key 8)''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_down&lt;br /&gt;
| '''num_2''' || ''(Numpad key 2)''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_test&lt;br /&gt;
| '''F5'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multiplayer==&lt;br /&gt;
The editor is built with both serverside and clientside components, and therefore supports multiplayer out of the box.  To use the editor in multiplayer with other players, simply copy all of the editor's resources into your server, start the '''editor''' resource and allow other players to join.&lt;br /&gt;
&lt;br /&gt;
Please note that currently the editor lacks any permissions system, ao all users have access to every function.&lt;br /&gt;
&lt;br /&gt;
==Plugins &amp;amp; External resources==&lt;br /&gt;
{{Main|Resource:Editor/Plugins}}&lt;br /&gt;
&lt;br /&gt;
The editor allows basic importing of elements from external resources.  This is useful for resources that may have to manipulate an element in a specific way that cannot be performed by the editor.  For example, a map resource which uses custom models (and has a script to import these models) cannot be manipulated by default within the editor.  &lt;br /&gt;
&lt;br /&gt;
By using the '''import &amp;lt;resourceName&amp;gt;''' command in console the resource's elements can be imported within the editor.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
==== I get a black screen when launching the Map Editor  ====&lt;br /&gt;
&lt;br /&gt;
Usually this is caused due to incorrect installation of Map Editor resources. If you are using a stable MTASA client, please install it again and make sure that you use Client and Server install option.&lt;br /&gt;
&lt;br /&gt;
If you are using a nightly build, to get it working right you need to download latest [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 resources (step 3)], unpack the archive and put its contents in:&lt;br /&gt;
''MTA San Andreas\server\mods\deathmatch\resources'' , where ''MTA San Andreas'' is a folder where you've installed MTA San Andreas (default location: C:\Program Files\MTA San Andreas).&lt;br /&gt;
&lt;br /&gt;
Putting them in this path: MTA San Andreas\mods\deathmatch\resources '''is a common mistake''' - it won't work if you put them there. So make sure to put them in the ''italic'' path above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If this issue still occurs, even when you've checked the note above and verified that you've installed it correctly, it might be because you've got an outdated '''acl.xml''' file.   You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/acl.xml here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I get an &amp;quot;Could not start the local server. See console for details&amp;quot; when using the  &amp;quot;Map Editor&amp;quot; button ====&lt;br /&gt;
This is because you do not have a valid editor.conf installed.  You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/editor.conf here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I have saved a map but cannot find it in my server's resources directory, despite the Editor itself being able to see it ====&lt;br /&gt;
This is due to the fact that Vista/7 limits write-access for non-admin processes in Program Files directory. Files get written in the &amp;quot;VirtualStore&amp;quot; directory instead of real Program Files folder.  You should be able to locate your map resource in a similar directory to:&lt;br /&gt;
 C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Local\VirtualStore\Program Files\MTA San Andreas\server\mods\deathmatch\resources\&lt;br /&gt;
&lt;br /&gt;
Running the Server/MTA San Andreas with Administrative rights will allow the map to be saved to the proper location.&lt;br /&gt;
&lt;br /&gt;
==== I have found a bug or have a suggestion/feedback for the map editor ====&lt;br /&gt;
Please use the official [http://bugs.mtasa.com bugtracker] for reporting bugs.  Feel free to also join us on [http://www.multitheftauto.com/irc.html IRC].&lt;br /&gt;
&lt;br /&gt;
[[ru:Resource:Editor]]&lt;br /&gt;
[[es:Resource:Editor]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=25094</id>
		<title>ES/Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resource:Editor&amp;diff=25094"/>
		<updated>2011-01-14T16:02:04Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: Created page with &amp;quot;{{Resource page}} El editor de mapas de MTA:SA te permite crear mapas para los modos de juegos.  ==Empezando== Para empezar el editor, simplemente has presiona &amp;quot;Map editor&amp;quot; en el...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
El editor de mapas de MTA:SA te permite crear mapas para los modos de juegos.&lt;br /&gt;
&lt;br /&gt;
==Empezando==&lt;br /&gt;
Para empezar el editor, simplemente has presiona &amp;quot;Map editor&amp;quot; en el menu principal de MTA&lt;br /&gt;
&lt;br /&gt;
==Menus==&lt;br /&gt;
Una vez que el editor haya comenzado, se te mostraran dos menus de barras: La principal arriba, y la de elementos a la esquina inferior izquierda.&lt;br /&gt;
&lt;br /&gt;
===Menu principal===&lt;br /&gt;
Estos son los botones en el menu principal:&lt;br /&gt;
* [[Image:Editor_New.png]] Crear un nuevo mapa.&lt;br /&gt;
* [[Image:Editor_Open.png]] Abrir un mapa existente.&lt;br /&gt;
* [[Image:Editor_Save.png]] Grabar el mapa en que estas trabajando.&lt;br /&gt;
* [[Image:Editor_Save_as.png]] Grabar el mapa bajo un nombre diferente.&lt;br /&gt;
* [[Image:Editor_Options.png]] Modificar las opciones generales del editor.&lt;br /&gt;
* [[Image:Editor_Undo.png]] Deshacer la ultima acción.&lt;br /&gt;
* [[Image:Editor_Redo.png]] Restaurar la ultima acción deshecha.&lt;br /&gt;
* [[Image:Editor_Locations.png]] Lista de lugares del GTA.&lt;br /&gt;
* [[Image:Editor_Current_elements.png]] Lista de todos los elementos contenidos en el mapa (Autos,Objetos,Marcadores,Peds,etc.)&lt;br /&gt;
* [[Image:Editor_Map_settings.png]] Propiedades del mapa, como el tiempo, la gravedad, etc. Aqui tambien puedes especificar los modos que son compatibles con tu mapa.&lt;br /&gt;
* [[Image:Editor_Definitions.png]] Cargar [[Resource:Editor/EDF|definiciones del editor (EDF)]] que tu quieras usar&lt;br /&gt;
* [[Image:Editor_Test.png]] Ir al modo play para probar el mapa. O puede cargar el modo al que el mapa esta hecho. &lt;br /&gt;
&lt;br /&gt;
===Menu de elementos===&lt;br /&gt;
El menu de elementos es usado para agregar nuevos elementos al mapa.&lt;br /&gt;
* [[Image:Editor_Vehicle.png]] Crear un nuevo vehiculo&lt;br /&gt;
* [[Image:Editor_Object.png]] Crear un nuevo objeto (Edificios, Caminos y otros objetos).&lt;br /&gt;
* [[Image:Editor_Pickup.png]] Crear un nuevo pickup (vida, armadura, armas).&lt;br /&gt;
* [[Image:Editor_Marker.png]] Crear un nuevo marcador.&lt;br /&gt;
&lt;br /&gt;
Adicionalmente, si tu tienes una [[Resource:Editor/EDF|definición de editor]] cargada, tu puedes girar la rueda del ratón en el menu para traer los elementos cargados por el archivo de definición&lt;br /&gt;
&lt;br /&gt;
==Usando el editor==&lt;br /&gt;
Esta sección te explicara como crear y modificar mapas.&lt;br /&gt;
&lt;br /&gt;
===Moviendose alrededor del mapa===&lt;br /&gt;
Cuando tu inicias el editor, tu estas en el ''modo de camara''. Tu puedes usar las teclas '''WSAD''' para mover la camara y el ratón para girar la camara. Cuando te muevas, puedes mantener la tecla '''ALT''' para moverte mas lento o la tecla '''SHIFT''' para ir mas rapido.&lt;br /&gt;
&lt;br /&gt;
Para accender a la interfaz del editor y al panel de control necesitas cambiar al ''modo de cursor''. Tu puedes cambiar entre el modo de cursor y el modo de camara con la tecla '''F'''. Cuando estes en modo de cursor, tu vista estara congelada, y solo podras usar el cursor del ratón para manipular elementos y usar la interfaz grafica.&lt;br /&gt;
&lt;br /&gt;
El modo de camara puede ser reconocido por una mira en medio de la pantalla. Tu puedes usarla para seleccionar y mover elementos como en el modo de cursor.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Crosshair.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Empezando un nuevo mapa===&lt;br /&gt;
* Inicia el editor, o si ya esta iniciado, apreta en el boton ''Nuevo'' del menu.&lt;br /&gt;
* Apreta en el boton ''Opciones de mapa''. En la pestaña ''Meta'', llena los campos de Name y Author con el nombre de tu mapa y tu nombre respectivamente. Tambien abre la pestaña ''Gamemodes'' y agrega los modos para los cuales tu mapa esta hecho (Estos se van a mover a la lista de ''Added Gamemodes''). Tu puedes hacer esto seleccionandolos y apretando en ''Add'', o haciendole doble click. Apreta OK cuando estes listo.&lt;br /&gt;
[[Image:Editor_Mapsettings.png|center]]&lt;br /&gt;
* Apreta en la ventana de ''Definiciones'' y agrega los recursos en donde uses los elementos alternativos. Estos debieran consistir de los modos que tu seleccionaste en la ventana de ''Map settings'', ademas de eventuales recursos adicionales. Para mas informacion acerca de las definiciones del editor, ve [[Resource:Editor/EDF|EDF (En Inglés)]]. Apreta OK cuando estes listo.&lt;br /&gt;
&lt;br /&gt;
===Creando nuevos elementos===&lt;br /&gt;
* Si tu estas en el modo de camara, cambia al modo de cursor primero apretando '''F'''.&lt;br /&gt;
* Apreta un boton en el menu de elementos que represente lo que tu quieres. Ej: Apreta el boton con un auto en el para agregar un vehiculo.&lt;br /&gt;
* Un nuevo elemento del tipo seleccionado sera creado y pegado a tu cursor. Muevelo a la posicion que quieras y apreta el '''botón izquierdo''' para dejarlo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Addelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Para crear un elemento alternativo que es especifico a un recurso, mueve tu cursor sobre el menu de elementos y gira la rueda del ratón hasta el recurso esperado. Ten en cuenta que para este trabajo, primero necesitas haber agregado el archivo de [[Resource:Editor/EDF|Definición de editor]] del recurso en la ventana ''Definitions''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Selectedf.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Seleccionando===&lt;br /&gt;
* '''Click izquierdo''' sobre un elemento para seleccionarlo en ''modo de teclado''.&lt;br /&gt;
* '''Click derecho''' sobre este elemento para seleccionarlo en ''modo de ratón''.&lt;br /&gt;
* Apreta la '''Barra espaciadora''' o apreta sobre un area vacia para sacar la selección.&lt;br /&gt;
&lt;br /&gt;
El elemento elegido, si lo hay, es representado por un marcador de cono amarillo. Elementos (particularmente objetos) con pesima colision se peuden detectar facilmente activando el ''modo de alta sensibilidad'', apretando la tecla '''E'''. Esto incrementara la detección.&lt;br /&gt;
&lt;br /&gt;
El dialogo ''Current elements'' puede ser usado tambien para seleccionar elementos. Has doble-click sobre un item de la lista para seleccionarlo en ''modo de teclado''&lt;br /&gt;
&lt;br /&gt;
===Moviendo===&lt;br /&gt;
Mover elementos se puede hacer de muchas formas.&lt;br /&gt;
&lt;br /&gt;
'''Con el ratón'''&lt;br /&gt;
* Simplemente pesca y deja con el '''boton izquierdo'''&lt;br /&gt;
O:&lt;br /&gt;
* Selecciona el elemento en el modo de ratón ('''boton derecho'''), muevelo hacia la posición que quieras, y apreta para dejarlo.&lt;br /&gt;
&lt;br /&gt;
Tu tambien puedes ajustar la ''distancia'' de un elemento acercandolo o alejandolo de la camara mediante el cambio al modo de camara, ''''click derecho''' en un elemento girando la '''rueda del ratón'''.&lt;br /&gt;
&lt;br /&gt;
'''Con el teclado'''&lt;br /&gt;
* Select the element in keyboard mode ('''left click''').&lt;br /&gt;
* Use the '''arrow keys''' to move the element in the horizontal plane, and '''PgUp'''/'''PgDn''' to move it vertically. Hold '''ALT''' to decrease the movement speed, or '''SHIFT''' to increase it.&lt;br /&gt;
&lt;br /&gt;
By default, elements move relative to the camera and are not locked to any axes.  This can be disabled in the ''Options'' menu.&lt;br /&gt;
&lt;br /&gt;
===Rotating===&lt;br /&gt;
'''With the mouse'''&lt;br /&gt;
&lt;br /&gt;
You can rotate selected elements around the Z axis with the mouse wheel.&lt;br /&gt;
* Select the element in keyboard mode ('''left click''') and roll the mouse wheel while holding '''Left CTRL'''.&lt;br /&gt;
Or:&lt;br /&gt;
* Select the element in mouse mode ('''right click'''), hold '''CTRL''', and roll the mouse wheel.&lt;br /&gt;
&lt;br /&gt;
'''With the keyboard'''&lt;br /&gt;
* Select the element in keyboard mode ('''left click''').&lt;br /&gt;
* While holding '''CTRL''' (the selection marker will turn green), use the '''arrow keys''' and '''PgUp'''/'''PgDn''' to rotate the element around the different axes.&lt;br /&gt;
&lt;br /&gt;
With both methods you can additionally hold '''ALT''' to decrease the rotation speed or '''SHIFT''' to increase it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Rotateelem.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Changing model and other properties===&lt;br /&gt;
Most elements have a variety of options that can be altered to change their appearance and behaviour. Examples are the model, color and visual upgrades of a car.&lt;br /&gt;
&lt;br /&gt;
* Open the properties window of an element by either double clicking it or by selecting it and pressing '''F3'''.&lt;br /&gt;
* Make any alterations that you want. For example, to change the model of a car or object, click the '''Browse''' button next to &amp;quot;model&amp;quot; to open the model browser.&lt;br /&gt;
* Click OK when you're done.&lt;br /&gt;
&lt;br /&gt;
[[Image:Editor_Props.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
You can clone an element by selecting it and pressing '''C'''. &lt;br /&gt;
&lt;br /&gt;
* In mouse mode the cloned element will be attached to your cursor. '''Left click''' to place it in the map.&lt;br /&gt;
* In keyboard mode the cloned element will be cloned in the identical position.&lt;br /&gt;
&lt;br /&gt;
If you hold '''CTRL''' while clicking, the element will be cloned again and will again be attached to the cursor. This way you can easily place large quantities of something.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to clone an element.&lt;br /&gt;
&lt;br /&gt;
===Deleting===&lt;br /&gt;
Simply select the element and press '''DEL''' ''(Delete)''.&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use the ''Pullout'' button located in the bottom-right corner of the properties box to delete an element.&lt;br /&gt;
&lt;br /&gt;
==Creating maps for specific gamemodes==&lt;br /&gt;
To make a map for a specific gamemode, you have to do two things:&lt;br /&gt;
* Click the '''Map Settings''' button in the top menu, go to the '''Gamemodes''' tab and add any gamemodes that your map is to be used with.&lt;br /&gt;
* You will likely also need to add one or more [[Resource:Editor/EDF|Editor Definition Files]]. These will allow you to place gamemode specific elements in the map, like spawnpoints, race checkpoints, or CTF flags. You can add EDF's by clicking the '''Definitions''' menu button and adding the relevant gamemodes.&lt;br /&gt;
&lt;br /&gt;
==Controls==&lt;br /&gt;
Here is a list of all default controls. To change them please go to the MTA Settings menu while the Editor is started.&lt;br /&gt;
&lt;br /&gt;
===Camera===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_forwards&lt;br /&gt;
| '''w'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_backwards&lt;br /&gt;
| '''s'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_left&lt;br /&gt;
| '''a'''&lt;br /&gt;
|-&lt;br /&gt;
| camera_move_right&lt;br /&gt;
| '''d'''&lt;br /&gt;
|-&lt;br /&gt;
| high_sensitivity_mode&lt;br /&gt;
| '''e'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Cloning===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| clone_selected_element&lt;br /&gt;
| '''c'''&lt;br /&gt;
|-&lt;br /&gt;
| clone_drop_modifier&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Element manipulation===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| element_move_forward&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_backward&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_left&lt;br /&gt;
| '''arrow_l''' || ''(Arrow key Left)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_right&lt;br /&gt;
| '''arrow_r''' || ''(Arrow key Right)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_downwards&lt;br /&gt;
| '''pgdn''' || ''(Page Down)''&lt;br /&gt;
|-&lt;br /&gt;
| element_move_upwards&lt;br /&gt;
| '''pgup''' || ''(Page Up)''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_in&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| zoom_out&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_increase&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_up''' || ''(Left CTRL + Mouse wheel Up)''&lt;br /&gt;
|-&lt;br /&gt;
| quick_rotate_decrease&lt;br /&gt;
| '''mod_rotate''' + '''mouse_wheel_down''' || ''(Left CTRL + Mouse wheel Down)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_rotate&lt;br /&gt;
| '''lctrl''' || ''(Left CTRL)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_slow_speed&lt;br /&gt;
| '''lalt''' || ''(Left ALT)''&lt;br /&gt;
|-&lt;br /&gt;
| mod_fast_speed&lt;br /&gt;
| '''lshift''' || ''(Left SHIFT)''&lt;br /&gt;
|-&lt;br /&gt;
| destroy_selected_element&lt;br /&gt;
| '''delete'''&lt;br /&gt;
|-&lt;br /&gt;
| drop_selected_element&lt;br /&gt;
| '''space'''&lt;br /&gt;
|-&lt;br /&gt;
| pickup_selected_element&lt;br /&gt;
| '''F2'''&lt;br /&gt;
|-&lt;br /&gt;
| reset_rotation&lt;br /&gt;
| '''mod_rotate''' + '''r''' || ''(Left CTRL + R)''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===GUI===&lt;br /&gt;
{|&lt;br /&gt;
| toggle_gui_display&lt;br /&gt;
| '''F4'''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_cursor&lt;br /&gt;
| '''f'''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_keyboard&lt;br /&gt;
| '''mouse1''' || ''(Left Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| select_target_mouse&lt;br /&gt;
| '''mouse2''' || ''(Right Mouse button)''&lt;br /&gt;
|-&lt;br /&gt;
| edf_next&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| edf_prev&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| undo&lt;br /&gt;
| '''Ctrl''' + '''z'''&lt;br /&gt;
|-&lt;br /&gt;
| redo&lt;br /&gt;
| '''Ctrl''' + '''y'''&lt;br /&gt;
|-&lt;br /&gt;
| properties_toggle&lt;br /&gt;
| '''F3'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_up&lt;br /&gt;
| '''arrow_u''' || ''(Arrow key Up)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_down&lt;br /&gt;
| '''arrow_d''' || ''(Arrow key Down)''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_in&lt;br /&gt;
| '''mouse_wheel_up'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_zoom_out&lt;br /&gt;
| '''mouse_wheel_down'''&lt;br /&gt;
|-&lt;br /&gt;
| browser_confirm&lt;br /&gt;
| '''enter'''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_up&lt;br /&gt;
| '''num_8''' || ''(Numpad key 8)''&lt;br /&gt;
|-&lt;br /&gt;
| currentelements_down&lt;br /&gt;
| '''num_2''' || ''(Numpad key 2)''&lt;br /&gt;
|-&lt;br /&gt;
| toggle_test&lt;br /&gt;
| '''F5'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multiplayer==&lt;br /&gt;
The editor is built with both serverside and clientside components, and therefore supports multiplayer out of the box.  To use the editor in multiplayer with other players, simply copy all of the editor's resources into your server, start the '''editor''' resource and allow other players to join.&lt;br /&gt;
&lt;br /&gt;
Please note that currently the editor lacks any permissions system, ao all users have access to every function.&lt;br /&gt;
&lt;br /&gt;
==Plugins &amp;amp; External resources==&lt;br /&gt;
{{Main|Resource:Editor/Plugins}}&lt;br /&gt;
&lt;br /&gt;
The editor allows basic importing of elements from external resources.  This is useful for resources that may have to manipulate an element in a specific way that cannot be performed by the editor.  For example, a map resource which uses custom models (and has a script to import these models) cannot be manipulated by default within the editor.  &lt;br /&gt;
&lt;br /&gt;
By using the '''import &amp;lt;resourceName&amp;gt;''' command in console the resource's elements can be imported within the editor.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
==== I get a black screen when launching the Map Editor  ====&lt;br /&gt;
&lt;br /&gt;
Usually this is caused due to incorrect installation of Map Editor resources. If you are using a stable MTASA client, please install it again and make sure that you use Client and Server install option.&lt;br /&gt;
&lt;br /&gt;
If you are using a nightly build, to get it working right you need to download latest [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 resources (step 3)], unpack the archive and put its contents in:&lt;br /&gt;
''MTA San Andreas\server\mods\deathmatch\resources'' , where ''MTA San Andreas'' is a folder where you've installed MTA San Andreas (default location: C:\Program Files\MTA San Andreas).&lt;br /&gt;
&lt;br /&gt;
Putting them in this path: MTA San Andreas\mods\deathmatch\resources '''is a common mistake''' - it won't work if you put them there. So make sure to put them in the ''italic'' path above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If this issue still occurs, even when you've checked the note above and verified that you've installed it correctly, it might be because you've got an outdated '''acl.xml''' file.   You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/acl.xml here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I get an &amp;quot;Could not start the local server. See console for details&amp;quot; when using the  &amp;quot;Map Editor&amp;quot; button ====&lt;br /&gt;
This is because you do not have a valid editor.conf installed.  You can download the default one [http://multitheftauto.googlecode.com/svn/trunk/MTA10_Server/mods/deathmatch/editor.conf here].  It should be placed in '''server/mods/deathmatch/''' in your MTA: San Andreas installation directory.&lt;br /&gt;
&lt;br /&gt;
==== I have saved a map but cannot find it in my server's resources directory, despite the Editor itself being able to see it ====&lt;br /&gt;
This is due to the fact that Vista/7 limits write-access for non-admin processes in Program Files directory. Files get written in the &amp;quot;VirtualStore&amp;quot; directory instead of real Program Files folder.  You should be able to locate your map resource in a similar directory to:&lt;br /&gt;
 C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Local\VirtualStore\Program Files\MTA San Andreas\server\mods\deathmatch\resources\&lt;br /&gt;
&lt;br /&gt;
Running the Server/MTA San Andreas with Administrative rights will allow the map to be saved to the proper location.&lt;br /&gt;
&lt;br /&gt;
==== I have found a bug or have a suggestion/feedback for the map editor ====&lt;br /&gt;
Please use the official [http://bugs.mtasa.com bugtracker] for reporting bugs.  Feel free to also join us on [http://www.multitheftauto.com/irc.html IRC].&lt;br /&gt;
&lt;br /&gt;
[[ru:Resource:Editor]]&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RemoveElementData&amp;diff=25093</id>
		<title>RemoveElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RemoveElementData&amp;diff=25093"/>
		<updated>2011-01-14T15:13:13Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function removes the [[element data]] with the given key for that element. The element data removal is synced with all the clients.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you wish to remove the data from.&lt;br /&gt;
*'''key:''' The key string you wish to remove.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the data was removed succesfully, ''false'' if the given key does not exist in the element or the element is invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Example&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This will create an element data for know if a player has spawned.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetTextWidth&amp;diff=25092</id>
		<title>DxGetTextWidth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetTextWidth&amp;diff=25092"/>
		<updated>2011-01-14T15:07:55Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
This function retrieves the theoretical width of a certain piece of text, if it were to be drawn using [[dxDrawText]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float dxGetTextWidth ( string text, [float scale=1, string font=&amp;quot;default&amp;quot;] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''text:''' A string representing the text for which you wish to retrieve with width for.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''scale:''' The size of the text.&lt;br /&gt;
* '''font:''' The dx font for the text.&lt;br /&gt;
{{DxFonts}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the float of the width of the text. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This will show you the width of a message in a normal chatbox sent by a player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dxwidth(msg)&lt;br /&gt;
    chatbox = getChatboxLayout()&lt;br /&gt;
    local length = dxGetTextWidth(msg,chatbox[&amp;quot;chat_scale&amp;quot;][1])&lt;br /&gt;
    outputChatBox(tostring(length))&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChat&amp;quot;,getRootElement(),dxwidth)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetTextWidth&amp;diff=25091</id>
		<title>DxGetTextWidth</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetTextWidth&amp;diff=25091"/>
		<updated>2011-01-14T15:07:23Z</updated>

		<summary type="html">&lt;p&gt;Gothemsh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
This function retrieves the theoretical width of a certain piece of text, if it were to be drawn using [[dxDrawText]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float dxGetTextWidth ( string text, [float scale=1, string font=&amp;quot;default&amp;quot;] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''text:''' A string representing the text for which you wish to retrieve with width for.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''scale:''' The size of the text.&lt;br /&gt;
* '''font:''' The dx font for the text.&lt;br /&gt;
{{DxFonts}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the float of the width of the text. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This will show you the width of a message in a normal chatbox sent by a player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dxwidth(msg)&lt;br /&gt;
    chatbox = getChatboxLayout()&lt;br /&gt;
    local length = dxGetTextWidth(msg,chatbox[&amp;quot;chat_scale&amp;quot;][1])&lt;br /&gt;
    outputChatBox(tostring(length))&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChat&amp;quot;,getRootElement(),dxwidth)&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;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Gothemsh</name></author>
	</entry>
</feed>