<?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=Divine</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=Divine"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Divine"/>
	<updated>2026-05-04T23:07:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Marker&amp;diff=22459</id>
		<title>Element/Marker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Marker&amp;diff=22459"/>
		<updated>2010-02-22T12:59:48Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
The marker class represents colored, 3D shapes in the GTA world. There are serveral types of markers, including cylinders and checkpoints. In scripts, markers are often used to mark spots and trigger some sort of action when a player goes into them.&lt;br /&gt;
&lt;br /&gt;
The element type of this class is '''&amp;quot;marker&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
The size of the marker cannot be specified from XML and defaults to 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Attributes===&lt;br /&gt;
* '''posX''': A float representing the X position of the pickup.&lt;br /&gt;
* '''posY''': A float representing the Y position of the pickup.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the pickup.&lt;br /&gt;
&lt;br /&gt;
===Optional Attributes===&lt;br /&gt;
* '''type:''' The visual type of the marker to be created. Possible values:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
* '''color:''' The color of the marker in HTML style format #RRGGBB, defaults to red if not specified.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[it:Elemento/Marker]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21923</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21923"/>
		<updated>2009-11-12T19:28:54Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[Element/Marker|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Форма]]&lt;br /&gt;
* [[Element/Blip|Метка]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Команда]]&lt;br /&gt;
* [[Element/Console|Консоль сервера]]&lt;br /&gt;
* [[Element/Admin|Удаленный админ]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Deathmatch_Client_Manual&amp;diff=21653</id>
		<title>RU/Deathmatch Client Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Deathmatch_Client_Manual&amp;diff=21653"/>
		<updated>2009-10-03T11:48:53Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Deathmatch Client Manual to RU/Client Manual&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[RU/Client Manual]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Client_Manual&amp;diff=21652</id>
		<title>RU/Client Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Client_Manual&amp;diff=21652"/>
		<updated>2009-10-03T11:48:53Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Deathmatch Client Manual to RU/Client Manual&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
==Введение==&lt;br /&gt;
Multi Theft Auto: San Andreas является самым последним мультиплеером из всех мультиплееров, созданных поклонниками игр Grand Theft Auto (только PC версий). Для получения информации о мультиплеерах для игр GTA3 и Vice City, посетите [http://www.multitheftauto.com/ http://www.multitheftauto.com]. Эта модификация не является официально поддерживаемой Rockstar Games и Take 2 Interactive.&lt;br /&gt;
&lt;br /&gt;
Обратите внимание на то, что клиентское приложение MTA:SA Deathmatch находится на стадии бета-тестирования, что означает приложение может аварийно завершать работу или являться причиной возникновения неожиданных результатов.&lt;br /&gt;
&lt;br /&gt;
==Перед началом установки==&lt;br /&gt;
&lt;br /&gt;
Перед тем, как установить Multi Theft Auto: San Andreas, сначала убедитесь в том, что для игры GTA:SA не установлены какие-либо модификации. Они могут явиться причиной неправильной работе MTA. Если вы желаете оставить в игре режим одного игрока, вы можете повторно установить San Andreas в другую директорию на жестком диске.&lt;br /&gt;
&lt;br /&gt;
Также убедитесь, в том что у вас установлена одна из следующих операционных систем '''Windows XP''', '''Windows 2000''', '''Windows Vista''' или '''Windows Server 2003''' и что системные требования вашего компьютера соответствуют требованиям работы игры в одиночном режиме. обратите внимание на то, что если запускаете одиночный режим игры на компьютере обладающем минимальными системными требованиями, вы будете испытывать некоторые замедления в работе MTA, вызванные высокой загрузкой процессора.&lt;br /&gt;
&lt;br /&gt;
'''Обратите внимание: MTA:SA работает только с GTA:SA EXE v1.0.''' Если вы приобрели игру недавно, то возможно у вас более поздняя версия игры.&lt;br /&gt;
&lt;br /&gt;
Если у вас возникли ошибки в работе мультиплеера, убедитесь в том, что они описаны на странице [[Known_Issues_-_FAQ|Известные ошибки]], или свяжитесь с нами по IRC каналу по адресу irc://irc.multitheftauto.com/mta&lt;br /&gt;
&lt;br /&gt;
===Системные требования===&lt;br /&gt;
Минимальные системные требования компьютера для Multi Theft Auto: San Andreas незначительно отличаются от системных требований игры Grand Theft Auto: San Andreas.&lt;br /&gt;
* процессор класса Intel Pentium 4 или AMD Athlon XP&lt;br /&gt;
* 512МБ ОЗУ&lt;br /&gt;
* Установленная без модификаций игра Grand Theft Auto: San Andreas версии 1.0 или 1.1 (американская или европейская)&lt;br /&gt;
* 3.7ГБ свободного места на жестком диске (3.6ГБ для установки Grand Theft Auto)&lt;br /&gt;
* видеокарта семейства nVidia GeForce 4 или ATI Radeon 8xxx с 64MB ОЗУ и поддержкой DirectX 9.0&lt;br /&gt;
* звуковая карта или кодек с поддержкой DirectX 9.0&lt;br /&gt;
* клавиатура и мышь&lt;br /&gt;
* широкополосный доступ в интернет для стабильной игры через сеть&lt;br /&gt;
&lt;br /&gt;
Для дополнительных возможностей игры рекомендуется использовать видеокарту, имеющую поддержку пиксельных шейдеров версии 2.0 (видеокарта семейства nVidia GeForce FX или выше, ATI Radeon 9xxx или выше).&lt;br /&gt;
&lt;br /&gt;
Для быстрой загрузки игры рекомендуется использовать больший объем оперативной памяти.&lt;br /&gt;
&lt;br /&gt;
==Установка игры==&lt;br /&gt;
&lt;br /&gt;
'''Этот раздел имеет смысл читать после того, как у вас будет установочный файл мультиплеера'''&lt;br /&gt;
&lt;br /&gt;
# Если у вас его нет, то перейдите на сайт http://www.mtabeta.com, зарегистрируйтесь и скачайте установщик клиентского приложения MTA:SA.&lt;br /&gt;
# Запустите установочный файл. Вы увидите диалоговое окно приветствия, затем прочитайте Лицензионное соглашение с конечным пользователем (EULA). Вы должны быть согласны с условиями лицензионного соглашения для продолжения установки.&lt;br /&gt;
# Далее вам будет необходимо выбрать один из трех вариантов: создать учетную запись, использовать уже имеющуюся учетную запись или не использовать учетную запись. После этого возможны два варианта продолжения установки.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Выбран первый вариант: создать учетную запись'''&amp;lt;br&amp;gt;&lt;br /&gt;
Выполните создание новой учетной записи на MTABeta.com, после чего введите ваш логин и пароль в окно программы установки&amp;lt;br&amp;gt;&lt;br /&gt;
'''Выбран второй вариант: использовать уже имеющуюся учетную запись'''&amp;lt;br&amp;gt;&lt;br /&gt;
Введите данные учетной записи в программу установки&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
# Затем вам будет необходимо выбрать компоненты для установки.&lt;br /&gt;
#* '''Client''' интерфейсы игры, является обязательным компонентом.&lt;br /&gt;
#* '''MTA Server''' позволяет вам использовать ваш собственный компьютер в качестве сервера.&lt;br /&gt;
#* '''MTA Server &amp;gt; Editor''' используется для создания новых карт, является необязательным компонентом.&lt;br /&gt;
# Затем вам необходимо выбрать директорию, в которую будет произведена установка. Вы качестве этой директории вы должны указать директорию, в которой установлена San Andreas. По умолчанию это: '''C:\Program Files\Rockstar Games\GTA San Andreas\'''. Нажмите кнопку '''Install''' для выполнения установки.&lt;br /&gt;
# После завершения установки, вам будет предложено запустить MTA: San Andreas. Выберите эту опцию по своему усмотрению и нажмите кнопку '''Finish'''.&lt;br /&gt;
# Вы можете также запускать MTA:DM из меню Пуск, когда пожелаете.&lt;br /&gt;
&lt;br /&gt;
==Запуск игры==&lt;br /&gt;
# Запустите Multi Theft Auto щелкнув левой кнопкой мыши по иконке расположенной на вашем рабочем столе или выбрав в меню Пуск пункт '''MTA:San Andreas'''.&lt;br /&gt;
# Запуститься GTA: San Andreas и после загрузки игры вы увидите главное меню MTA:SA. Ниже показаны варианты меню:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
[[Image:MENU_QuickConnect.jpg]]&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''Quick connect''' – этот пункт позволяет вам соединиться с сервером, IP или URL адрес и порт которого вам уже известен. Этот вариант полезен, когда вы точно знаете, на каком сервере вы хотите играть и поэтому вам не нужно искать его в списке всех серверов.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
[[Image:MENU_ServerBrowser.jpg|280px]]&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''Browse servers''' – при выборе этого пункта отображается список доступных для игры серверов. &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
[[Image:Settings.jpg|280px]]&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''Settings '''– это пункт позволяет вам сменить ваш nickname в игре, настроить управление и свойства дисплея.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
[[Image:MENU_About.jpg|280px]]&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''About '''– этот пункт позволяет вам посмотреть список участников проекта.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''Map editor '''– этот пункт позволяет вам создавать собственные карты, контрольные точки, рампы, препятствия и другие объекты. Эти карты вы можете затем загрузить на сервер, чтобы вы могли играть на них с другими игроками.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;188&amp;quot; |&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
| width=&amp;quot;380&amp;quot; |&lt;br /&gt;
&amp;lt;font size=&amp;quot;-1&amp;quot; face=&amp;quot;tahoma,helvetica,arial,sans-serif&amp;quot;&amp;gt;'''Quit '''– этот пункт позволяет вам выйти из игры на рабочий стол Windows.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Простейшим способом начать игру - выбрать в меню пункт '''Browse Servers'''. Появится новое окно:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[Image:MENU_ServerBrowser.jpg]]&amp;lt;br /&amp;gt;'''Server Browser'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Если сервера не отображаются, нажмите кнопку '''Refresh''' и MTA просканирует сервера и отобразит их список.&lt;br /&gt;
&lt;br /&gt;
* В столбце '''Name''' отображается название каждого сервера.&lt;br /&gt;
* В столбце '''Players''' отображается число игроков и максимально возможное число игроков на сервере, в формате [Имеющееся число игроков] / [Максимальное число игроков].&lt;br /&gt;
* В столбце '''Ping''' отображается время задержки в миллисекундах между вашим компьютером и сервером. Время задержки - это время между моментом отправки вашим компьютером пакетов данных серверу и моментом получения ответного сообщения от сервера, поэтому чем больше время задержки, тем больше вы будете испытывать задержек в работе клиентского приложения с конкретным сервером. Обычно, сервера расположенные недалеко от вас по географическому местоположению должны иметь более низкое время задержки.&lt;br /&gt;
* В столбце '''Host''' отображается IP адрес сервера. Вы можете использовать этот адрес для будущих соединений с этим же сервером посредством выбора пункта меню Quick Connect в главном меню.&lt;br /&gt;
&lt;br /&gt;
По каждому столбцу можно щелкать указателем мыши для упорядочивания значений столбца по возрастанию или убыванию.&lt;br /&gt;
&lt;br /&gt;
Для оптимальной работы приложения и процесса игры, выбирайте сервера с наилучшим балансом между числом игроков и временем задержки.&lt;br /&gt;
&lt;br /&gt;
После того как вы выбрали нужный вам сервер, выберите его строку списка и щелкните левой кнопкой мыши кнопку '''Connect''' в верхнем правом углу диалогового окна. Если процесс соединения будет выполнен успешно, вы соединиться с сервером и автоматически включиться в процесс игры.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--===Запуск игры из ASE (The All-Seeing Eye)===&lt;br /&gt;
&lt;br /&gt;
Если вам не нравится встроенный в игру просмотр серверов MTA:San Andreas, вы можете захотеть использовать '''The All-Seeing Eye''', который позволит вам просмотреть список игровых серверов, и применить настраиваемые фильтры поиска. Этот учебник поможет вам установить ASE, и покажет как легко с ним работать.&lt;br /&gt;
# Скачайте ASE по адресу http://videogames.yahoo.com/multiplayer и установите.&lt;br /&gt;
# '''Следующее применимо к MTA:SA вплоть до версии 1.0 dp2, и будет скорее всего зафиксировано в дальнейшей версии''' &amp;lt;br /&amp;gt; Скачайте [http://www.xup.in/dl,19686489/ASELauncher.zip/ ASELauncher] и извлеките ASELauncher.exe в директорию, где установлен MTA (по умолчанию, это  C:\Program Files\MTA San Andreas). Эта небольшая программа конвертирует командную строку ASE в формат понятный MTA. &lt;br /&gt;
# Теперь добавьте MTA:SA в ваш список игр в ASE:&lt;br /&gt;
#* В ASE щелкните левой кнопкой мыши ''Tools'' -&amp;gt; ''Options'', и выберите вкладку ''Games''&lt;br /&gt;
#* Откройте категорию ''Not installed'' и выберите в списке ''Multi Theft Auto'' &lt;br /&gt;
#* Выберите ''Visible in filter list'', щелкните ''Browse'' и выберите в '''ASELauncher.exe''' вашу директорию MTA San Andreas&lt;br /&gt;
#* Оставьте поле ''Player name'' пустым, и нажмите кнопку ''OK''&lt;br /&gt;
# Запуститься '''Multi Theft Auto'''. После того, как вы нажмете кнопку ''Refresh'' на панели инструментов, вы увидите список сервером для всех версий MTA. Теперь добавьте модификатор для того, чтобы отображалась текущая версия '''1.0 dp2'''&lt;br /&gt;
#* Щелкните правой кнопкой мыши по ''Multi Theft Auto'' и выберите пункт ''New...''&lt;br /&gt;
#* В нижнем левом углу выберите ''Modifier'' и замените MYMOD на '''MTADP2'''&lt;br /&gt;
#* Введите название модификатора в поле ''Name'', например '''MTA:SA 1.0 dp2'''&lt;br /&gt;
#* Вставьте следующий код фильтра (со строкой номера):&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;1    if version != &amp;quot;1.0dp2&amp;quot; remove&amp;lt;/tt&amp;gt;&lt;br /&gt;
#* Щелкните ''OK''&lt;br /&gt;
#* Ваш новый модификатор отображается в ''My filters''&lt;br /&gt;
# Все готово! Теперь активируйте ваш модификатор для того, чтобы отображать только вашу версию игры, выберите игру ''Multi Theft Auto'', и дважды щелкните по строке, содержащей сервер, чтобы начать игру.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
==Как играть==&lt;br /&gt;
&lt;br /&gt;
MTA:SA предоставляет полную систему написания сценариев, которая позволяет создателем игровых карт настраивать многие элементы игры различным образом, вплоть до создания своих собственных новых игровых режимов. Игра объединяет множество игроков, с некоторыми исключениями, отличающими многопользовательский режим от однопользовательского.&lt;br /&gt;
&lt;br /&gt;
В многопользовательской игре нет пешеходов и на дорогах нет машин, &amp;quot;искусственно&amp;quot; управляемых алгоритмами самой игры. Вашими оппонентами на игровой карте являются только другие игроки, или союзники если это карта командной игры. Вы можете общаться с ними используя окно чата, расположенное в левом верхнем углу экрана, нажав клавишу '''T'''. Чтобы переписываться только с игроками вашей команды, нажмите клавишу '''Y'''.&lt;br /&gt;
&lt;br /&gt;
Редактор карт MTA позволяет создателям карт добавлять различные объекты GTA в свои карты включая дороги, взрывающиеся баки, рампы, строения, возвышенности и так далее. Не только для этих, но и для других объектов могут быть написаны сценарии движения, модели изменения и исчезновения. Это позволит сделать игровой процесс более интересным и разнообразным. &lt;br /&gt;
&lt;br /&gt;
Окно просмотра игроков будет отображать очки, заработанные игроком. По умолчанию, отображаются только имена и время задержки, но сценарии могут добавить дополнительные столбцы, которые являются специфичными определенному режиму игры. Например, режим игры &amp;quot;deathmatch&amp;quot; может иметь столбец перечисляющий общее число убийств, но создатель карт может выбирать сам и добавить дополнительные колонки для числа смертей вашего персонажа, длительности вашей игры, а также поместить очки, заработанные вами.&lt;br /&gt;
&lt;br /&gt;
==Управление==&lt;br /&gt;
&lt;br /&gt;
===Клавиши управления в игре===&lt;br /&gt;
&lt;br /&gt;
* F8 (или клавиша &amp;quot;тильда&amp;quot;) - Консоль&lt;br /&gt;
* F9 - Помощь игрового сервера&lt;br /&gt;
* F11 - Показать карту SA ''(следующий список клавиш используется при отображении карты)''&lt;br /&gt;
**numpad +/- - Увеличить/уменьшить масштаб карты&lt;br /&gt;
**numpad 4, 8, 6, 2 - переместиться влево, вверх, вправо, вниз по карте&lt;br /&gt;
**numpad 0 - переключиться между режимами карты: закрепить карту за локальным игроком (карта следует за меткой игрока) и свободное передвижение (карта остается неподвижной)  &lt;br /&gt;
* F12 - Сделать снимок изображения экрана&lt;br /&gt;
* T - Чат&lt;br /&gt;
* Y - Командный чат&lt;br /&gt;
* TAB - Список игроков (если ресурс [[Scoreboard]] запущен на сервере)&lt;br /&gt;
&lt;br /&gt;
==Команды консоли==&lt;br /&gt;
&lt;br /&gt;
'''bind defaults''' Сбросить настроийки управления на настройки по умолчанию&lt;br /&gt;
&lt;br /&gt;
Нажатие '''~ (тильда)''' или '''F8''' доступ к консоли, затем вводится команда, за которой при необходимости следуют параметры (если нужно) затем нажимается Enter.&lt;br /&gt;
&lt;br /&gt;
;'''maps''' :Отобразить список всех карт доступных на сервере. &lt;br /&gt;
&lt;br /&gt;
;'''nick [nickname]''' :Изменить nickname, отображаемый в игре на тот, который служит параметром в данной команде.&lt;br /&gt;
&lt;br /&gt;
;'''msg [nickname] [message]''' или '''pm [nickname] [message]''' :Отправить личное сообщение игроку, который определяется параметром [nickname]. Только игрок, определенный вами может увидеть это сообщение. И '''msg''' и '''pm''' выполняют одну и ту же функцию.&lt;br /&gt;
&lt;br /&gt;
;'''quit''' или '''exit''' :Выполнить разрыв связи с сервером и выйти из игры на рабочий стол Windows. Выполняет ту же функцию, что и кнопка Quit в главном меню.&lt;br /&gt;
&lt;br /&gt;
;'''ver''' :Отобразить номер версии и информацию об авторских правах программного обеспечения.&lt;br /&gt;
&lt;br /&gt;
;'''time''' :Отобразить текущее время.&lt;br /&gt;
&lt;br /&gt;
;'''disconnect''' :Разорвать соединение с игровым сервером и вернуться в главное меню.&lt;br /&gt;
&lt;br /&gt;
;'''say [text]''' :Позволяет вам продолжить общение с игроками через окно чата из консоли.&lt;br /&gt;
&lt;br /&gt;
;'''ignore [nickname]''' :Не отображать любой текст, введенный игроком, которого вы игнорируете. Чтобы отменить игнорирование сообщений игрока введите команду '''ignore [nickname]''' снова.&lt;br /&gt;
&lt;br /&gt;
'''Совет:''' Вы можете использовать эти команды непосредственно в окне чата, поместив перед ними / (слеш).&lt;br /&gt;
&lt;br /&gt;
Список команд консоли можно увидеть, введя в консоли команду '''help''' и нажав клавишу Enter. Любая карта может также иметь дополнительные команды, к которым вы можете получить доступ введя в консоли команду '''commands'''.&lt;br /&gt;
&lt;br /&gt;
==Коды ошибок и их описание==&lt;br /&gt;
'''Ошибки загрузки'''&amp;lt;br&amp;gt;&lt;br /&gt;
0: UNKNOWN_ERROR&amp;lt;br&amp;gt;&lt;br /&gt;
1: INVALID_FILE_DESCRIPTORS&amp;lt;br&amp;gt;&lt;br /&gt;
2: INVALID_MAX_FILE_DESCRIPTOR&amp;lt;br&amp;gt;&lt;br /&gt;
3: INVALID_SELECT_RETURN&amp;lt;br&amp;gt;&lt;br /&gt;
4: INVALID_INITIAL_MULTI_PERFORM&amp;lt;br&amp;gt;&lt;br /&gt;
5: INVALID_MULTI_PERFORM_CODE&amp;lt;br&amp;gt;&lt;br /&gt;
6: INVALID_MULTI_PERFORM_CODE_NEW_DOWNLOADS&amp;lt;br&amp;gt;&lt;br /&gt;
7: UNEXPECTED_CURL_MESSAGE&amp;lt;br&amp;gt;&lt;br /&gt;
8: UNABLE_TO_CONNECT&amp;lt;br&amp;gt;&lt;br /&gt;
9: UNABLE_TO_DOWNLOAD_FILE&amp;lt;br&amp;gt;&lt;br /&gt;
10: FAILED_TO_INITIALIZE_DOWNLOAD&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Неустранимые ошибки'''&amp;lt;br&amp;gt;&lt;br /&gt;
1: no local player model on ingame event&amp;lt;br&amp;gt;&lt;br /&gt;
2: no local player on ingame event&amp;lt;br&amp;gt;&lt;br /&gt;
3: server downloads disabled&amp;lt;br&amp;gt;&lt;br /&gt;
4: no local player model on player-list packet&amp;lt;br&amp;gt;&lt;br /&gt;
5: no local player on player-list packet&amp;lt;br&amp;gt;&lt;br /&gt;
6: invalid custom data length on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
7: invalid bitstream data on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
8: system entity on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
9: failed to create object on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
10: failed to create pickup on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
11: failed to create vehicle on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
12: invalid team-name length on entity-add packet&amp;lt;br&amp;gt;&lt;br /&gt;
13: invalid lua-event name length in lua-event packet&amp;lt;br&amp;gt;&lt;br /&gt;
14: invalid resource name length in resource-start packet&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ошибки типа 'Unable to enter vehicle''''&amp;lt;br&amp;gt;&lt;br /&gt;
1: script cancelled&amp;lt;br&amp;gt;&lt;br /&gt;
2: script cancelled (jack)&amp;lt;br&amp;gt;&lt;br /&gt;
3: current occupier is entering/exiting&amp;lt;br&amp;gt;&lt;br /&gt;
4: invalid seat&amp;lt;br&amp;gt;&lt;br /&gt;
5: not close enough&amp;lt;br&amp;gt;&lt;br /&gt;
6: already in a vehicle&amp;lt;br&amp;gt;&lt;br /&gt;
7: already entering/exiting&amp;lt;br&amp;gt;&lt;br /&gt;
8: invalid vehicle (trailer)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[de:MTA DM Client Anleitung]]&lt;br /&gt;
[[es:Manual Cliente Deathmatch]]&lt;br /&gt;
[[en:Deathmatch Client Manual]]&lt;br /&gt;
[[it:Manuale del Client]]&lt;br /&gt;
[[nl:Deathmatch Client Manual]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21651</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21651"/>
		<updated>2009-10-03T10:51:01Z</updated>

		<summary type="html">&lt;p&gt;Divine: /* Скриптинг */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
&lt;br /&gt;
====Введение====&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиенту]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверу]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы]]&lt;br /&gt;
* [[Resource:mapmanager|Менеджер карт]]&lt;br /&gt;
&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;
====Скриптинг====&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
* [[Useful Functions|Полезные функции]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Разработка MTA====&lt;br /&gt;
*[[Roadmap]]&lt;br /&gt;
*[[Git Coding Guidelines]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21650</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21650"/>
		<updated>2009-10-03T10:48:30Z</updated>

		<summary type="html">&lt;p&gt;Divine: /* Введение */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
&lt;br /&gt;
====Введение====&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиенту]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверу]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы]]&lt;br /&gt;
* [[Resource:mapmanager|Менеджер карт]]&lt;br /&gt;
&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;
====Скриптинг====&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Разработка MTA====&lt;br /&gt;
*[[Roadmap]]&lt;br /&gt;
*[[Git Coding Guidelines]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21649</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21649"/>
		<updated>2009-10-03T10:47:55Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
&lt;br /&gt;
====Введение====&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиенту]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверу]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы]]&lt;br /&gt;
* [[Resource:Editor|Редактор карт]]&lt;br /&gt;
&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;
====Скриптинг====&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Разработка MTA====&lt;br /&gt;
*[[Roadmap]]&lt;br /&gt;
*[[Git Coding Guidelines]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Deathmatch_Server_Manual&amp;diff=21648</id>
		<title>RU/Deathmatch Server Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Deathmatch_Server_Manual&amp;diff=21648"/>
		<updated>2009-10-03T10:44:46Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Deathmatch Server Manual to RU/Server Manual&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[RU/Server Manual]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Server_Manual&amp;diff=21647</id>
		<title>RU/Server Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Server_Manual&amp;diff=21647"/>
		<updated>2009-10-03T10:44:46Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Deathmatch Server Manual to RU/Server Manual&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
==Начало==&lt;br /&gt;
Установить и запустить ваш собственный сервер для сети интернет или локальной сети намного проще, чем вам могло показаться на первый взгляд. Следуйте указаниям, описанным в этой статье чтоб создать свой собственный MTA:SA DM сервер.&lt;br /&gt;
&lt;br /&gt;
==Установка сервера==&lt;br /&gt;
В зависимости от платформы сервера имеется несколько вариантов серверного приложения MTA:SA DM.&lt;br /&gt;
&lt;br /&gt;
===Установка серверного приложения в операционной системе Linux===&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
Ниже описывается установка серверного приложения в операционной системе(далее ОС) Ubuntu 6.05 LTS. Позже будут добавлены инструкции по установке серверного приложения на другие версии ОС Linux.&lt;br /&gt;
Описываемая установка выполнялась в недавно установленной ОС, поэтому некоторые вещи будут устанавливаться впервые.&lt;br /&gt;
Первоначально все ssh на вашем сервере используют любой клиент, который вы пожелаете.&lt;br /&gt;
Некоторые предпочитают изменить это.&lt;br /&gt;
Начните с ввода '''sudo apt-get upgrade'''. Вам потребуется ваш пароль снова. После выполнения обновления выполните&lt;br /&gt;
'''sudo apt-get install pico'''. Это позволит вам легко выполнить установку, используя pico text editor, который вы будете использовать для редактирования файлов настройки.&lt;br /&gt;
После выполнения установки, вам необходимо получить копию libcurl3 для сервера. Чтобы запустить установку введите '''sudo apt-get install libcurl3'''.&lt;br /&gt;
Вам снова придется ввести ваш пароль. После этого необходимо получить серверное приложение для вашего сервера Linux. Имеется несколько способов сделать это. Вы можете получить установочный дистрибутив с ftp сервера. Вы можете использовать передачу файлов. Если вы знаете какой-либо веб-сайт, вы можете скачать файл с этого веб-сайта, используя команду '''wget http://wwww.websitename.com/file.tar''' Где в качестве адреса веб-сайта используйте адрес известного вам сайта. После получения необходимого tar файла, вам необходимо распаковать его, используя команду '''tar -zxvf filename.tar'''&lt;br /&gt;
&lt;br /&gt;
====Gentoo====&lt;br /&gt;
Далее предполагается, что вы используете Gentoo и знаете как получить файлы с веб-сайтов для своего сервера... (в противном случае, читайте предыдущий пункт, посвященный Ubuntu)&lt;br /&gt;
&lt;br /&gt;
Ниже описаны действия для DP2:&lt;br /&gt;
&lt;br /&gt;
Обновите вашу версию gcc до 4.2.2:&lt;br /&gt;
* уберите маску gcc в /etc/portage/package.unmask)&lt;br /&gt;
* выйдите из gcc&lt;br /&gt;
* перейдите к gcc 4.2.2: gcc-config i686-pc-linux-gnu-4.2.2&lt;br /&gt;
Обновите вашу версию libstdc++ до 3.3 (если у вас еще не установлено это обновление)&lt;br /&gt;
* выйдите из libstdc++&lt;br /&gt;
Установите libcurl:&lt;br /&gt;
* выйдите из libcurl&lt;br /&gt;
Распакуйте mtasa, и запустите его...&lt;br /&gt;
&lt;br /&gt;
===Установка серверного приложения в операционной системе Windows===&lt;br /&gt;
Установку серверного приложения MTA:SA DM в операционной системе Windows выполнить гораздо легче.&lt;br /&gt;
*Перейдите на [http://mtasa.com/dp.html страницу загрузки] и найдите на странице раздел &amp;quot;Dedicated servers&amp;quot;.&lt;br /&gt;
*Нажмите на ссылку, предназначенную для ОС Windows.&lt;br /&gt;
*После загрузки программы установки запустите её.&lt;br /&gt;
*Выберете директорию, в которую вы хотите установить серверное приложение.&lt;br /&gt;
*Нажмите кнопку Install.&lt;br /&gt;
*На этом установка завершена!&lt;br /&gt;
&lt;br /&gt;
==Настройка сервера==&lt;br /&gt;
Откройте в текстовом редакторе(например, Windows Notepad) файл ''''mtaserver.conf'''', расположенный в директории &amp;lt;SERVER&amp;gt;/mods/deathmatch.&lt;br /&gt;
&lt;br /&gt;
Этот файл удобно редактировать: каждая переменная имеет описание того, что с помощью нее можно изменить и какие значения она может принимать.&lt;br /&gt;
&lt;br /&gt;
===Добавление администраторов===&lt;br /&gt;
''Для получения подробной информации об acl.xml (access control list) читайте: [[Access_Control_List|Access Control List]]''&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
Чтобы добавить администраторов ваших игровых серверов выполните следующие шаги:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Посмотрите ваши игровые сервера в директории 'deathmatch', открыв файл Accounts.xml&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Добавьте новую учетную запись в файл, используя синтаксис описанный ниже&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
''''Синтаксис, используемый в файле Accounts.xml''''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;account name=&amp;quot;Username&amp;quot; password=&amp;quot;UserPassword&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Сохраните и закройте файл&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Откройте файл acl.xml&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Выберите один из следующих наборов прав администратора: Moderator, SuperModerator или Admin&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;В выбранную группу добавьте учетную запись, которую вы создали ранее, используя синтаксис описанный ниже&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;object name=&amp;quot;user.Username&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
У вас должно получиться, что-то похожее на:&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;group name=&amp;quot;Admin&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;object name=&amp;quot;user.Username&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Добавление администратора завершено! Этим способом вы можете добавить необходимое вам количество администраторов, только остерегайтесь создания одинаковых учетных записей и одинаковых ACL прав.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
'''Обратите внимание: 1)''' Изменение этих файлов вступят в силу только после перезапуска игрового сервера&amp;lt;br /&amp;gt;&lt;br /&gt;
'''2)''' Существует также другой способ добавления учетных записей и редактирования прав во время работы игрового сервера. Команда '''addaccount &amp;lt;user&amp;gt; &amp;lt;password&amp;gt;''' является встроенной командой для добавления учетных записей, позволяющей вам посредством веб интерфейса управлять ACL правами во время работы игрового сервера. (Этот способ может быть наилучшим для вас, если первый способ не работает)&lt;br /&gt;
&lt;br /&gt;
=== Настройка внешнего веб-сервера ===&lt;br /&gt;
Из соображений производительности и стабильности работы лучше использовать внешний веб-сервер, вместо встроенного веб-сервера. Внешний веб-сервер должен быть доступен всем, чтобы любой пользователь мог скачать необходимые файлы ресурсов для клиентского приложения, а затем подключиться и играть на вашем игровом сервере.&lt;br /&gt;
&lt;br /&gt;
Чтобы разрешить скачивание ресурсов с внешнего веб-сервера, вы должны настроить теги ''httpdownload'' и ''httpdownloadurl'' в настройках вашего сервера:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;httpdownload&amp;gt;1&amp;lt;/httpdownload&amp;gt;	&lt;br /&gt;
&amp;lt;httpdownloadurl&amp;gt;http://www.myserver.tld/directory/here&amp;lt;/httpdownloadurl&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
После того, как все сжатые файлы ресурсов будут загружены со специализированного сервера, они обычно автоматически распаковываются встроенным веб-сервером, теперь вы можете обеспечить способ для закачки клиентскими приложениями на компьютер несжатых файлов. Несжатые файлы обычно доступны в директории '''&amp;lt;SERVER&amp;gt;/mods/deathmatch/resourcecache'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Запустите специализированный сервер и выйдите. После этого сжатые zip файлы распакуются в директорию '''&amp;lt;SERVER&amp;gt;/mods/deathmatch/resourcecache'''.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Перейдите в эту директорию и скопируйте ресурсы в доступную для других пользователей директорию вашего внешнего веб сервера. Это можно сделать следующими способами:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Если вы не позаботитесь о том, чтобы '''файлы, размещенные на вашем сервере были доступны''': создайте символьную ссылку(Linux), соединение(Windows) или явную копию содержимого директории '''resourcecache''' в общедоступной директории вашего веб-сервера.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Если вы не хотите, чтобы файлы сервера были доступны остальным пользователям с вашего веб-сервера: перейдите в директорию '''resourcecache''' и вручную скопируйте директорию в директорию вашего сервера, доступную для других пользователей, удалите все файлы, предназначенные для сервера (они '''не''' нужны для скачивания клиентским приложениям) которые вы не хотите, чтобы были доступны с вашего веб-сервера.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Более быстрый способ защиты ваших файлов, предназначенных для сервера в настоящее время недоступен. Инструментальное средство, автоматически копирующее только необходимые для клиентского приложения файлы всех ресурсов с вашего сервера, находится в разработке.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Обратите внимание: 1)''' Пожалуйста избегайте использования любых специальных символов (например ~, !) в ваших адресах URL для скачивания файлов.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''2)''' Пожалуйста не используйте слеш в конце ваших URL для скачивания(например, используйте ''hxxp://www.myserver.tld/directory'' вместо ''hxxp://www.myserver.tld/directory/'')&lt;br /&gt;
&lt;br /&gt;
==Запуск сервера==&lt;br /&gt;
Перед запуском сервера убедитесь в том, что вы завершили все настройки сервера!&lt;br /&gt;
&lt;br /&gt;
Чтоб запустить серверное приложение MTA:SA DM, дважды щелкните указателем мыши по MTA Server.exe. Убедитесь в том, что брандмауэр или антивирус не ограничивают нормальный доступ  MTA:SA DM к сети. Если все прошло удачно, то сервер нормально запущен и функционирует!&lt;br /&gt;
&lt;br /&gt;
==Установка/обновление файлов ресурсов на вашем сервере==&lt;br /&gt;
Файлы ресурсов могут быть в двух форматах, либо в формате ZIP или в обычной директории, содержащей файлы сценариев. Серверное приложение MTA:SA DM поддерживает оба формата.&lt;br /&gt;
&lt;br /&gt;
# Переместите или скопируйте новые ресурсы в директорию &amp;lt;SERVER&amp;gt;\mods\deathmatch\resources.&lt;br /&gt;
# В окне серверного приложения введите команду &amp;quot;refresh&amp;quot; (без выхода из приложения). Это позволит приложению повторно просмотреть директорию с ресурсами и обновить их список при необходимости.&lt;br /&gt;
&lt;br /&gt;
==Удаление ресурсов==&lt;br /&gt;
Ресурсы могут быть легко удалены с вашего сервера, если они вам больше не нужны.&lt;br /&gt;
&lt;br /&gt;
# Удалите ZIP файл или директорию с ресурсами, которые вы хотите удалить&lt;br /&gt;
# В окне серверного приложения введите команду &amp;quot;refresh&amp;quot; (без выхода из приложения). Это позволит приложению повторно просмотреть директорию с ресурсами и обновить их список при необходимости.&lt;br /&gt;
&lt;br /&gt;
==Администрирование сервера==&lt;br /&gt;
Вы можете запустить ресурсы, введя команду &amp;quot;start resourcename&amp;quot; в консоли серверного приложения, или остановить их выполнение введя &amp;quot;stop resourcename&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Также возможно выполнять эти и другие команды администратора в игровой консоле (которую вы можете открыть нажав клавишу ` или F8). Чтобы все это работало, вам сначала необходимо выполнить вход с помощью команды &amp;quot;login username password&amp;quot;. Кроме того, вы можете нажать клавишу p для отображения панели администратора - это графический интерфейс, позволяющий вам легко наказать провинившихся игроков.&lt;br /&gt;
&lt;br /&gt;
Для получения информации о других командах, введите команду &amp;quot;help&amp;quot; в окне консоли.&lt;br /&gt;
&lt;br /&gt;
==Запуск игровой карты/режима игры==&lt;br /&gt;
Смотрите раздел документации [[Resource:Map manager|mapmanager]] для получения более подробной информации.&lt;br /&gt;
&lt;br /&gt;
==Удаленное администрирование сервера==&lt;br /&gt;
В этом разделе предполагается, что вы настроили работу учетной записи с правами пользователя 'Admin', и у вас имеются следующие ресурсы:&lt;br /&gt;
# ResourceBrowser&lt;br /&gt;
# ResourceManager&lt;br /&gt;
# WebAdmin&lt;br /&gt;
# WebMap&lt;br /&gt;
&lt;br /&gt;
Вы можете получить доступ к этим инструментам удаленного администрирования, посетив веб-ресурс &amp;lt;nowiki&amp;gt;http://&amp;lt;yourserverip&amp;gt;:&amp;lt;httpport&amp;gt;/resourcebrowser&amp;lt;/nowiki&amp;gt; в вашем Firefox. &lt;br /&gt;
'''Обратите внимание: Internet Explorer не работает, он не отображает браузер ресурсов, другие веб-браузеры (а именно Opera) будут смешивать результаты'''. Если вы хотите работать в Internet Explorer, то почуствуете неудобство при перекодировании ресурсов:)&lt;br /&gt;
&lt;br /&gt;
==Полезные заметки==&lt;br /&gt;
&lt;br /&gt;
# Вы также можете обновить ресурсы во время игры, введя команду &amp;quot;refresh&amp;quot; в окне консоли клиентского приложения или команду &amp;quot;/refresh&amp;quot; в окне чата. Это может привести к временным неудобствам, если имеется большое число ресурсов.&lt;br /&gt;
# Во всех указаниях, описанных выше под &amp;lt;SERVER&amp;gt; понимался путь к главной директории вашего серверного приложения. В большинстве случаев это C:\Program Files\MTA San Andreas\server&lt;br /&gt;
&lt;br /&gt;
====Нужна дополнительная помощь?====&lt;br /&gt;
Вы можете связаться с командой разработчиков на их [http://forum.mtasa.com/ форумах] или на  [irc://irc.multitheftauto.com/mta IRC] каналах (irc.multitheftauto.com #mta - [http://www.mirc.com MIRC])&lt;br /&gt;
&lt;br /&gt;
[[de:MTA DM Server Anleitung]]&lt;br /&gt;
[[en:Deathmatch Server Manual]]&lt;br /&gt;
[[it:Manuale del Server]]&lt;br /&gt;
[[nl:Deathmatch Server Manual]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21646</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21646"/>
		<updated>2009-10-03T10:41:49Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
&lt;br /&gt;
====Введение====&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиенту]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверу]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы]]&lt;br /&gt;
* [[Resource:Editor|Редактор карт]]&lt;br /&gt;
&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;
====Скриптинг====&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21645</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21645"/>
		<updated>2009-10-03T10:39:12Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
&lt;br /&gt;
====Начало====&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиентской части MTA]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверной части MTA]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы MTA:SA DM]]&lt;br /&gt;
&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;
==Скриптинг==&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21643</id>
		<title>RU/Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21643"/>
		<updated>2009-10-03T10:32:24Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Здесь приведены все [[event|события]], выполняемые на '''клиентской стороне''', уже втроенные в мод. Для запроса функций или событий смотри [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''События серверной стороны можно найти здесь: [[RU/Server Scripting Events|События генерируемые на стороне сервера]]&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Client_colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Client_element_events}}&lt;br /&gt;
&lt;br /&gt;
==GUI events==&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Client_marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Client_ped_events}}&lt;br /&gt;
&lt;br /&gt;
==Player events==&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
&lt;br /&gt;
==Projectile events==&lt;br /&gt;
{{Client_projectile_events}}&lt;br /&gt;
&lt;br /&gt;
==Resource events==&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle events==&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
==Other events==&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
&lt;br /&gt;
[[en:Client Scripting Events]]&lt;br /&gt;
[[pl:Zdarzenia_po_stronie_klienta]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=21642</id>
		<title>Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=21642"/>
		<updated>2009-10-03T10:30:37Z</updated>

		<summary type="html">&lt;p&gt;Divine: We've no need &amp;quot;new feature&amp;quot; template anymore&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
This page lists all '''client-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''Server-side scripting events can be found here: [[Server Scripting Events]]&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Client_colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Client_element_events}}&lt;br /&gt;
&lt;br /&gt;
==GUI events==&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Client_marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Client_ped_events}}&lt;br /&gt;
&lt;br /&gt;
==Player events==&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
&lt;br /&gt;
==Projectile events==&lt;br /&gt;
{{Client_projectile_events}}&lt;br /&gt;
&lt;br /&gt;
==Resource events==&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle events==&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
==Other events==&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
&lt;br /&gt;
[[pl:Zdarzenia_po_stronie_klienta]]&lt;br /&gt;
[[ru:Client Scripting Events]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21641</id>
		<title>RU/Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21641"/>
		<updated>2009-10-03T10:26:23Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Здесь приведены все [[event|события]], выполняемые на '''клиентской стороне''', уже втроенные в мод. Для запроса функций или событий смотри [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''События серверной стороны можно найти здесь: [[RU/Server Scripting Events|События генерируемые на стороне сервера]]&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Client_colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Client_element_events}}&lt;br /&gt;
&lt;br /&gt;
==GUI events==&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
{{Client_marker_events}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Client_ped_events}}&lt;br /&gt;
&lt;br /&gt;
==Player events==&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
&lt;br /&gt;
==Projectile events==&lt;br /&gt;
{{Client_projectile_events}}&lt;br /&gt;
&lt;br /&gt;
==Resource events==&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle events==&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
==Other events==&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
&lt;br /&gt;
[[en:Client Scripting Events]]&lt;br /&gt;
[[pl:Zdarzenia_po_stronie_klienta]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21640</id>
		<title>RU/Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Client_Scripting_Events&amp;diff=21640"/>
		<updated>2009-10-03T10:25:35Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
&amp;lt;pageclass class=&amp;quot;client&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Здесь приведены все [[event|события]], выполняемые на '''клиентской стороне''', уже втроенные в мод. Для запроса функций или событий смотри [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''События серверной стороны можно найти здесь: [[RU/Server Scripting Events|События генерируемые на стороне сервера]]&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Client_colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Client_element_events}}&lt;br /&gt;
&lt;br /&gt;
==GUI events==&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
{{Client_marker_events}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Client_ped_events}}&lt;br /&gt;
&lt;br /&gt;
==Player events==&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
&lt;br /&gt;
==Projectile events==&lt;br /&gt;
{{Client_projectile_events}}&lt;br /&gt;
&lt;br /&gt;
==Resource events==&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle events==&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
==Other events==&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
&lt;br /&gt;
[[pl:Zdarzenia_po_stronie_klienta]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:EAi&amp;diff=21639</id>
		<title>User talk:EAi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:EAi&amp;diff=21639"/>
		<updated>2009-10-03T10:16:36Z</updated>

		<summary type="html">&lt;p&gt;Divine: /* New version */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I just should remember you to add this green border for the useful functions pages.&lt;br /&gt;
It's a class for the pageclass-tag. (CSS)&lt;br /&gt;
Hope you don't forget reading this. :P&lt;br /&gt;
[[User:NeonBlack|NeonBlack]] 23:12, 13 May 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
== New version ==&lt;br /&gt;
&lt;br /&gt;
Hey, add the new version record to [[Template:Current_Version]] [[User:Divine|Divine]] 10:16, 3 October 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21638</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21638"/>
		<updated>2009-10-03T10:14:28Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
====Начало====&lt;br /&gt;
&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиентской части MTA]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверной части MTA]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы MTA:SA DM]]&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Template:Elements&amp;diff=21527</id>
		<title>RU/Template:Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Template:Elements&amp;diff=21527"/>
		<updated>2009-09-13T10:51:27Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Template:Elements to Template:RU/Elements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Template:RU/Elements]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21526</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21526"/>
		<updated>2009-09-13T10:51:27Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Template:Elements to Template:RU/Elements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[Element/Marker|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Collision shape]]&lt;br /&gt;
* [[Element/Blip|Blip]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Team]]&lt;br /&gt;
* [[Element/Console|Server console]]&lt;br /&gt;
* [[Element/Admin|Remote admin]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21525</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21525"/>
		<updated>2009-09-13T10:50:12Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[Element/Marker|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Collision shape]]&lt;br /&gt;
* [[Element/Blip|Blip]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Team]]&lt;br /&gt;
* [[Element/Console|Server console]]&lt;br /&gt;
* [[Element/Admin|Remote admin]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21524</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=21524"/>
		<updated>2009-09-13T10:49:12Z</updated>

		<summary type="html">&lt;p&gt;Divine: Created page with '* Player * Ped * Vehicle * Object * Pickup * Marker * [[Element/Co…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Player]]&lt;br /&gt;
* [[Element/Ped|Ped]]&lt;br /&gt;
* [[Element/Vehicle|Vehicle]]&lt;br /&gt;
* [[Element/Object|Object]]&lt;br /&gt;
* [[Element/Pickup|Pickup]]&lt;br /&gt;
* [[Element/Marker|Marker]]&lt;br /&gt;
* [[Element/Collision shape|Collision shape]]&lt;br /&gt;
* [[Element/Blip|Blip]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Team]]&lt;br /&gt;
* [[Element/Console|Server console]]&lt;br /&gt;
* [[Element/Admin|Remote admin]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[ru:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Elements&amp;diff=21523</id>
		<title>Template:Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Elements&amp;diff=21523"/>
		<updated>2009-09-13T10:45:29Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Player]]&lt;br /&gt;
* [[Element/Ped|Ped]]&lt;br /&gt;
* [[Element/Vehicle|Vehicle]]&lt;br /&gt;
* [[Element/Object|Object]]&lt;br /&gt;
* [[Element/Pickup|Pickup]]&lt;br /&gt;
* [[Element/Marker|Marker]]&lt;br /&gt;
* [[Element/Collision shape|Collision shape]]&lt;br /&gt;
* [[Element/Blip|Blip]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Team]]&lt;br /&gt;
* [[Element/Console|Server console]]&lt;br /&gt;
* [[Element/Admin|Remote admin]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[ru:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82&amp;diff=21522</id>
		<title>Category:Элемент</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82&amp;diff=21522"/>
		<updated>2009-09-13T10:43:49Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Element|Элемент]] - общий класс, отражающий почти все внитриигровые [[entity|объекты]]. Встроенными типами элементов являются:&lt;br /&gt;
&lt;br /&gt;
{{RU/Elements}}&lt;br /&gt;
&lt;br /&gt;
Можно создавать любые другие элементы, которые будут абстрактны и не будут относиться к каким-либо конкретным игровым [[entity|объектам]]. Например, элементы '''ресурс''' и '''карта''' создаются когда ресурсы и карты загружают группу объектов, создаваемых ими как дочерние элементы.&lt;br /&gt;
&lt;br /&gt;
Элементы объединяют общие функции, такие как тип и список параметров, операция уничтожения убирает как элемент, так и его игровое представление, с которым он связан (за исключение некоторых элементов, которые не могут быть уничтожены, например, элементы клиентов), хранение и представление [[element data|данных элемента]], и другие общие операции.&lt;br /&gt;
&lt;br /&gt;
Все элементы хранятся в [[Element tree|древовидной структуре]], поэтому все элементы, кроме '''root''' имеют родительский элемент, которым может быть '''root''', '''resource''', '''map''' или другой элемент. Он определяет сферу действия вызываемой функции.&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
===Клиент===&lt;br /&gt;
{{Client element functions}}&lt;br /&gt;
===Сервер===&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
&lt;br /&gt;
[[it:Elemento]]&lt;br /&gt;
[[en:Element]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element&amp;diff=21521</id>
		<title>Element</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element&amp;diff=21521"/>
		<updated>2009-09-13T10:24:27Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An '''element''' is a generic class that can represent almost all in-game [[entity|entities]]. The built-in element types are:&lt;br /&gt;
&lt;br /&gt;
{{Elements}}&lt;br /&gt;
&lt;br /&gt;
Any other element type can be created as an abstract element, not referring to any game [[entity]]. For example, '''resource''' and '''map''' elements are created when resources and maps are loaded to group entities they create as their children.&lt;br /&gt;
&lt;br /&gt;
Elements share common functions such as type and list retrieval, a destroy operation to remove both the element and the game entity it is linked to (except for some elements which can't be destroyed, for example client elements), [[element data]] storing and retrieval, and many more common operations.&lt;br /&gt;
&lt;br /&gt;
All elements are stored internally in a [[Element tree|tree structure]], and as such every element except the '''root''' element has a parent element, that can be the '''root''' element, a '''resource''', '''map''' or another element. This is purely for declaring the scope of function calls.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
===Client===&lt;br /&gt;
{{Client element functions}}&lt;br /&gt;
===Server===&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
&lt;br /&gt;
[[it:Elemento]]&lt;br /&gt;
[[ru:Element]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82&amp;diff=21520</id>
		<title>Category:Элемент</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82&amp;diff=21520"/>
		<updated>2009-09-13T10:23:33Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Element|Элемент]] - общий класс, отражающий почти все внитриигровые [[entity|объекты]]. Встроенными типами элементов являются:&lt;br /&gt;
&lt;br /&gt;
{{Elements}}&lt;br /&gt;
&lt;br /&gt;
{{translate}}&lt;br /&gt;
Any other element type can be created as an abstract element, not referring to any game [[entity]]. For example, '''resource''' and '''map''' elements are created when resources and maps are loaded to group entities they create as their children.&lt;br /&gt;
&lt;br /&gt;
Elements share common functions such as type and list retrieval, a destroy operation to remove both the element and the game entity it is linked to (except for some elements which can't be destroyed, for example client elements), [[element data]] storing and retrieval, and many more common operations.&lt;br /&gt;
&lt;br /&gt;
All elements are stored internally in a [[Element tree|tree structure]], and as such every element except the '''root''' element has a parent element, that can be the '''root''' element, a '''resource''', '''map''' or another element. This is purely for declaring the scope of function calls.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
===Client===&lt;br /&gt;
{{Client element functions}}&lt;br /&gt;
===Server===&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
&lt;br /&gt;
[[it:Elemento]]&lt;br /&gt;
[[en:Element]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Editor/EDF&amp;diff=21420</id>
		<title>RU/Resource:Editor/EDF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Editor/EDF&amp;diff=21420"/>
		<updated>2009-09-05T18:06:55Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RU/Resource page}}&lt;br /&gt;
{{translate}}&lt;br /&gt;
EDF stands for ''Editor Definition File''. EDF's are XML files with an .edf extension that describe the custom elements used by a resource: new element types that have no meaning to MTA itself. Examples are &amp;amp;lt;spawnpoint&amp;amp;gt;, &amp;amp;lt;flag&amp;amp;gt;, &amp;amp;lt;checkpoint&amp;amp;gt; etc.  They also are used to define settings that are used by gamemodes, which are placed under the &amp;amp;lt;settings&amp;amp;gt; tag within a resource's ''meta.xml''.&lt;br /&gt;
&lt;br /&gt;
==Введение==&lt;br /&gt;
Some resources use custom map elements. A capture the flag gamemode, for example, will likely use &amp;amp;lt;flag&amp;amp;gt; elements that contain flag positions and teams. When a map is loaded, the gamemode looks for any &amp;amp;lt;flag&amp;amp;gt; elements and installs flags accordingly - for example by creating a flag object and a collision shape.&lt;br /&gt;
&lt;br /&gt;
The problem with these custom elements is that, unlike built-in MTA elements, the map editor has no idea of their meaning. How should a &amp;amp;lt;flag&amp;amp;gt; element be visually represented? What properties does it have? Without telling the editor this information, you could not use it to create these custom elements and would instead have to resort to manually editing the .map file with a text editor. Fortunately this isn't necessary: any resource can contain an editor definition file that describes the custom map elements used by that resource.&lt;br /&gt;
&lt;br /&gt;
==Использование определенных файлов в редакторе==&lt;br /&gt;
As described in the [[Resource:Editor|main editor manual]], to be able to create the custom elements of a resource in your map you need to add it in the ''Definitions'' window. Click the ''Definitions'' button in the main menu and double click the resource in the left list. Then close the window and roll the mousewheel in the element panel until the resource comes up. At that point you can create and manipulate custom elements of that resource like any other element.&lt;br /&gt;
&lt;br /&gt;
==EDF файлы==&lt;br /&gt;
EDF files are simply XML files with an .edf extension. We'll start with an example: the EDF of the Capture the Orb gamemode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;def name=&amp;quot;Capture the Orb&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;element name=&amp;quot;orb&amp;quot; friendlyname=&amp;quot;Orb spawnpoint&amp;quot; instructions=&amp;quot;Place your orb in a position that can be collected.&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;data name=&amp;quot;position&amp;quot; type=&amp;quot;coord3d&amp;quot; default=&amp;quot;0,0,0&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;marker size=&amp;quot;0.5&amp;quot; type=&amp;quot;corona&amp;quot; color=&amp;quot;#ffff00ff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/element&amp;gt;&lt;br /&gt;
    &amp;lt;element name=&amp;quot;objective&amp;quot; friendlyname=&amp;quot;Objective point&amp;quot; instructions=&amp;quot;Place your objective point in a position that can be reached.&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;data name=&amp;quot;position&amp;quot; type=&amp;quot;coord3d&amp;quot; default=&amp;quot;0,0,0&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;marker size=&amp;quot;3&amp;quot; type=&amp;quot;cylinder&amp;quot; color=&amp;quot;#9370dbaa&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/element&amp;gt;&lt;br /&gt;
    &amp;lt;element name=&amp;quot;spawnpoint&amp;quot; friendlyname=&amp;quot;Spawnpoint&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;object editorOnly=&amp;quot;true&amp;quot; model=&amp;quot;3092&amp;quot; posZ=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;data name=&amp;quot;position&amp;quot; type=&amp;quot;coord3d&amp;quot; default=&amp;quot;0,0,0&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;data name=&amp;quot;rotation&amp;quot; type=&amp;quot;coord3d&amp;quot; default=&amp;quot;0,0,0&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;data name=&amp;quot;skin&amp;quot; type=&amp;quot;skinID&amp;quot; default=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/element&amp;gt;&lt;br /&gt;
&amp;lt;/def&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you can see, the syntax is fairly straightforward. The root element, &amp;amp;lt;def&amp;amp;gt;, contains a number of &amp;amp;lt;element&amp;amp;gt;s. Each of these &amp;amp;lt;element&amp;amp;gt;s describes a custom element and specifies its name, visual representation and available properties.&lt;br /&gt;
&lt;br /&gt;
===Визуальное представление===&lt;br /&gt;
&lt;br /&gt;
Any child node of an &amp;amp;lt;element&amp;amp;gt; that is not a &amp;amp;lt;data&amp;amp;gt; node is part of the visual representation. There can be one or more objects, markers, pickups etc. For each representation element you can optionally specify a position (posX, posY, posZ) and rotation (rotX, rotY, rotZ): these are ''relative'' to the position and rotation of the represented custom element. Using the above Capture the Orb example, if you were to create a spawnpoint at (30, 14, 3), the editor would display an object of model 3092 at (30, 14, 4) to represent it, because the object's posZ of 1 is added to the spawnpoint's z position of 3.&lt;br /&gt;
&lt;br /&gt;
===Настройки===&lt;br /&gt;
&lt;br /&gt;
Properties of a custom element are described by &amp;amp;lt;data&amp;amp;gt; nodes. Some property names have a special meaning, like ''position'' and ''rotation'': these can be changed by moving and rotating the element in the editor. The other properties can be changed in the Properties window.&lt;br /&gt;
&lt;br /&gt;
===Настройки визуального редактора===&lt;br /&gt;
&lt;br /&gt;
It is possible to make the representation of a custom element depend on one or more of the element's properties. Take as example a &amp;amp;lt;checkpoint&amp;amp;gt; element of a race gamemode that contains a &amp;amp;lt;marker&amp;amp;gt; for representation: the checkpoint has several attributes like color and size that should be reflected in the marker. To accomplish this, specify something of the form ''!propertyname!'' in one or more of the representing element's attributes. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;def name=&amp;quot;Race&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;element name=&amp;quot;checkpoint&amp;quot; friendlyname=&amp;quot;Race checkpoint&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;data name=&amp;quot;position&amp;quot; type=&amp;quot;coord3d&amp;quot; required=&amp;quot;true&amp;quot; default=&amp;quot;0,0,0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;data name=&amp;quot;type&amp;quot; type=&amp;quot;selection:checkpoint,ring&amp;quot; required=&amp;quot;true&amp;quot; default=&amp;quot;checkpoint&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;data name=&amp;quot;size&amp;quot; type=&amp;quot;number&amp;quot; required=&amp;quot;true&amp;quot; default=&amp;quot;2.25&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;data name=&amp;quot;color&amp;quot; type=&amp;quot;color&amp;quot; required=&amp;quot;false&amp;quot; default=&amp;quot;#ff0000ff&amp;quot; /&amp;gt;&lt;br /&gt;
		...&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;marker type=&amp;quot;!type!&amp;quot; size=&amp;quot;!size!&amp;quot; color=&amp;quot;!color!&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;/element&amp;gt;&lt;br /&gt;
&amp;lt;/def&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now whenever the &amp;quot;type&amp;quot;, &amp;quot;size&amp;quot; or &amp;quot;color&amp;quot; property of a checkpoint is changed, the new value will be copied to its marker, and the marker's visual appearance changes accordingly.&lt;br /&gt;
&lt;br /&gt;
===Интеграция в ресурсах===&lt;br /&gt;
&lt;br /&gt;
Once you've written your EDF, save it as an .edf file in your resource's folder and add an &amp;quot;edf:definition&amp;quot; attribute to your meta.xml's &amp;amp;lt;info&amp;amp;gt; tag, like so:&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;info author=&amp;quot;erorr404&amp;quot; type=&amp;quot;gamemode&amp;quot; ... edf:definition=&amp;quot;cto.edf&amp;quot; /&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EDF reference==&lt;br /&gt;
&lt;br /&gt;
===Built-in elements===&lt;br /&gt;
These are the elements you can use for representing your custom elements, along with their properties.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;blip&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|icon&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|blipID&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|size&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;marker&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|type&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|markerType&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|size&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|interior&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;object&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|model&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|objectID&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|rotation&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|interior&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;ped&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|model&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|skinID&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|rotZ&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|interior&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;pickup&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|type&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|pickupType&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|amount&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|respawn&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|interior&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;vehicle&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|model&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|vehicleID&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|rotation&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|vehiclecolors&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|upgrades&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|vehicleupgrades&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|plate&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|plate&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|interior&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;amp;lt;radararea&amp;amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Property&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|posX&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|posY&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|sizeX&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|sizeY&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|dimension&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Built-in property names===&lt;br /&gt;
Properties with these names have a special meaning to the editor and can be modified by other means than the Properties window.&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Type&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|position&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|rotation&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Property types===&lt;br /&gt;
These are the types you can choose from for the properties (&amp;amp;lt;data&amp;amp;gt;) of your custom elements.&lt;br /&gt;
&lt;br /&gt;
====Primitives====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|boolean&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Simple boolean value.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|natural&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Natural number (whole and positive).&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|integer&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Whole number.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|number&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Rational number.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|string&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Simple string of text.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|color&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|color, with or without alpha.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|#RRGGBB or #RRGGBBAA&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Coordinates====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|camera&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Position and lookat coordinates for the camera.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|posX,posY,posZ,lookatX,lookatY,lookatZ&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|coord3d&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|3-component vector, typically used for positions and rotations.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|x,y,z&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Vehicles====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|plate&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Number plate text for a vehicle.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|vehiclecolors&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|colors of a vehicle&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|colorID1,colorID2,colorID3,colorID4&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|vehicleupgrades&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Upgrades of a vehicle&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|upgradeID1,upgradeID2,...&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Model ID's====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|blipID&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Picture ID for blips&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|objectID&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Model ID for objects&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|pickupType&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Armor, health or weapon&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;quot;armor&amp;quot;, &amp;quot;health&amp;quot; or numeric weapon ID&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|skinID&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Skin ID for peds&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|vehicleID&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Model ID for vehicles&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|weaponID&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Weapon, e.g. M4&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Numeric weapon ID, e.g. 31&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Colshapes and markers====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|colshapeType&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|collision circle, cube, rectangle, sphere or tube&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|One of: &amp;quot;colcircle&amp;quot;, &amp;quot;colcube&amp;quot;, &amp;quot;colrectangle&amp;quot;, &amp;quot;colsphere&amp;quot;, &amp;quot;coltube&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|markerType&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Arrow, checkpoint, corona, cylinder or ring marker.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|One of: &amp;quot;arrow&amp;quot;, &amp;quot;checkpoint&amp;quot;, &amp;quot;corona&amp;quot;, &amp;quot;cylinder&amp;quot;, &amp;quot;ring&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Specials====&lt;br /&gt;
{| cellspacing=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Name&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Description&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|element:type&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Element of a certain type, for example: element:flag&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|The element's ID&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #EEE&amp;quot;|selection:val1,val2,...&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|Shows a dropdown box from which to pick one value.&lt;br /&gt;
| style=&amp;quot;background-color: #EEE&amp;quot;|The selected value&lt;br /&gt;
|}&lt;br /&gt;
[[en:Resource:Editor/EDF]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21398</id>
		<title>Template:Translate</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21398"/>
		<updated>2009-09-01T22:43:23Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border:solid green 1px; margin: 1px; width: 560px; background: #e0e0e0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 45px; height: 45px; background: white;&amp;quot;| [[Image:Warning.png]]&lt;br /&gt;
| style=&amp;quot;font-size: 10pt; padding: 4pt; line-height: 1.25em; color: black;&amp;quot;|&lt;br /&gt;
{{#if: {{{1|}}}|&lt;br /&gt;
{{#ifeq:{{{1|}}}|ru|Статью необходимо [http://wiki.multitheftauto.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&amp;amp;action=edit перевести] на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
}}&lt;br /&gt;
{{#ifeq:{{{1|}}}|en|This page require english translation. Discuss page can contain more information.}}&lt;br /&gt;
&amp;lt;!-- Add more langs here. --&amp;gt;&lt;br /&gt;
|Статью необходимо [http://wiki.multitheftauto.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&amp;amp;action=edit перевести] на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Pages to translate]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21397</id>
		<title>Template:Translate</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21397"/>
		<updated>2009-09-01T22:40:05Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border:solid green 1px; margin: 1px; width: 560px; background: #e0e0e0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 45px; height: 45px; background: white;&amp;quot;| [[Image:Warning.png]]&lt;br /&gt;
| style=&amp;quot;font-size: 10pt; padding: 4pt; line-height: 1.25em; color: black;&amp;quot;|&lt;br /&gt;
{{#if: {{{1|}}}|&lt;br /&gt;
{{#ifeq:{{{1|}}}|ru|Статью необходимо [http://wiki.multitheftauto.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&amp;amp;action=edit перевести] на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
}}&lt;br /&gt;
{{#ifeq:{{{1|}}}|en|This page require english translation. Discuss page can contain more information.}}&lt;br /&gt;
|Статью необходимо [http://wiki.multitheftauto.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&amp;amp;action=edit перевести] на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Pages to translate]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21393</id>
		<title>Template:Translate</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21393"/>
		<updated>2009-09-01T20:46:00Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border:solid green 1px; margin: 1px; width: 560px; background: #e0e0e0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 45px; height: 45px; background: white;&amp;quot;| [[Image:Warning.png]]&lt;br /&gt;
| style=&amp;quot;font-size: 10pt; padding: 4pt; line-height: 1.25em; color: black;&amp;quot;| Статью необходимо [http://wiki.multitheftauto.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&amp;amp;action=edit перевести] на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Pages to translate]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Interiors&amp;diff=21387</id>
		<title>Resource:Interiors</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Interiors&amp;diff=21387"/>
		<updated>2009-08-31T14:23:11Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Resource page}}&lt;br /&gt;
The interiors resource provides a generic system for use of the single player's interiors system, which is included in the MTASA 1.0 server package onwards.  This means placing warp points where when players hit the marker, they are set into the appropriate interior.&lt;br /&gt;
&lt;br /&gt;
=Loading interiors from the resource=&lt;br /&gt;
By default, the interiors resource offers over 200 of single player's own interior locations.  Coupled with [[dimension|dimensions]], each and every warp point offers a unique location - with a total of over 450 locations.&lt;br /&gt;
&lt;br /&gt;
Loading these interiors is easy.  Starting the ''interiors'' resource will auto load all these preset warp points and will be ready to use out of the box.&lt;br /&gt;
&lt;br /&gt;
=Adding your own interiors=&lt;br /&gt;
The interiors resource supports a flexible .map based element system to add your own interiors. The syntax follows an ''entry'' and ''return'' system.  An ''interiorEntry'' element must have a unique id, and the ''interiorReturn'' element uses the &amp;quot;refid&amp;quot; attribute to link them together.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;interiorEntry	id=&amp;quot;&amp;quot;  posX=&amp;quot;&amp;quot;  posY=&amp;quot;&amp;quot;  posZ=&amp;quot;&amp;quot;  rotation=&amp;quot;&amp;quot;  dimension=&amp;quot;&amp;quot;  interior=&amp;quot;&amp;quot; oneway=&amp;quot;&amp;quot;  /&amp;gt;&lt;br /&gt;
&amp;lt;interiorReturn	 refid=&amp;quot;&amp;quot;  posX=&amp;quot;&amp;quot;  posY=&amp;quot;&amp;quot;  posZ=&amp;quot;&amp;quot;  rotation=&amp;quot;&amp;quot;  dimension=&amp;quot;&amp;quot;  interior=&amp;quot;&amp;quot;  /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
* '''posX''': A float representing the X position of the interior warp.&lt;br /&gt;
* '''posY''': A float representing the Y position of the interior warp.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the interior warp.&lt;br /&gt;
* '''rotation''': A float representing the rotation of the player when he '''reaches''' the marker in the specified element.&lt;br /&gt;
* '''dimension''': An integer representing the dimension of the player when he '''reaches''' the interior warp in the specified element.  In other words, which dimension the warp point exists.&lt;br /&gt;
* '''interior''': An integer representing the interior world of the player when he '''reaches''' the interior warp in the specified element.  In other words, which interior the warp point exists.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
* '''oneway''': If set to ''true'', a interiorReturn marker will not be created, and the warp point will be one-way - from the interiorEntry to the interiorReturn with no way back.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;interiorEntry	id=&amp;quot;AMMUN1&amp;quot;	posX=&amp;quot;1368.35&amp;quot;	posY=&amp;quot;-1279.06&amp;quot;	posZ=&amp;quot;12.55&amp;quot;	rotation=&amp;quot;-0.100006&amp;quot;	dimension=&amp;quot;0&amp;quot;	interior=&amp;quot;0&amp;quot;	/&amp;gt;&lt;br /&gt;
&amp;lt;interiorReturn	refid=&amp;quot;AMMUN1&amp;quot;	posX=&amp;quot;286.15&amp;quot;	posY=&amp;quot;-41.54&amp;quot;	posZ=&amp;quot;1000.57&amp;quot;	rotation=&amp;quot;90&amp;quot;	interior=&amp;quot;1&amp;quot;	dimension=&amp;quot;0&amp;quot;	/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The interiorEntry element here is located at 1368.35,-1279.06,12.55.  When the player reaches this location, he will be warped to the attributes specified in the linked interiorReturn element - 286.15,-41.54,1000.57 with a rotation of 90 degrees, into the new interior world 1.  When the player hits this marker again, the transverse will happen.&lt;br /&gt;
&lt;br /&gt;
=Interfacing your script with the interiors resource=&lt;br /&gt;
The interiors resource offers a few events and functions which should allow customisability of&lt;br /&gt;
interiors.&lt;br /&gt;
&lt;br /&gt;
==Exported functions==&lt;br /&gt;
Please remember that [[call]] must be used to call functions of another resource.&lt;br /&gt;
----&lt;br /&gt;
===getInteriorName===&lt;br /&gt;
This function retrieves the overall name of an interior.  This means it is the id or the overall refid.&lt;br /&gt;
====Syntax====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getInteriorName ( element interiorEntry/InteriorReturn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments====&lt;br /&gt;
*'''interior:''' The interior you wish to get the name of.  Can be of type ''interiorEntry'' or ''interiorReturn''.&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns a string of the interior name, or false if it could not be retrieved.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getInteriorMarker===&lt;br /&gt;
This function retrieves the [[marker]] element associated to the interior.  This will allow you to modify the visibility of interior markers using the [[setElementVisibleTo]] function.&lt;br /&gt;
====Syntax====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
marker getInteriorName ( element interiorEntry/InteriorReturn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments====&lt;br /&gt;
*'''interior:''' The interior you wish to retrieve the associated marker of.  Can be of type ''interiorEntry'' or ''interiorReturn''.&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns a marker element associated to the specified interior, or false if it could not be retrieved.&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
===onInteriorHit===&lt;br /&gt;
This event is triggered when an interior warp point is hit, prior to when a player is warped to his/her destination.&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitPlayer''': The player that hit the interior warp point.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the interior element which was hit.&lt;br /&gt;
&lt;br /&gt;
====Cancel effect====&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the player will not be warped to his destination point.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onInteriorWarped===&lt;br /&gt;
This event is triggered when an interior destination has successfully been warped to.&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player warpedPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''warpedPlayer''': The player that has warped to the destination interior.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the interior element which was warped '''to'''.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onPlayerInteriorHit===&lt;br /&gt;
This event is triggered when a player hits an interior warp point, prior to him reaching his destination&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitInterior&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitInterior''': The interior element that was hit.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player who hit the interior element.&lt;br /&gt;
&lt;br /&gt;
====Cancel effect====&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the player will not be warped to his destination point.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onPlayerInteriorWarped===&lt;br /&gt;
This event is triggered when a player successfully warps to his destination interior.&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player warpedInterior&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''warpedInterior''': The interior that has been warped '''to'''.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player who was warped to his destination point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Examples===&lt;br /&gt;
'''Coming soon'''&lt;br /&gt;
[[ru:Resource:Interiors]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Resource:Interiors&amp;diff=21386</id>
		<title>RU/Resource:Interiors</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Resource:Interiors&amp;diff=21386"/>
		<updated>2009-08-31T14:22:14Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{RU/Resource page}}&lt;br /&gt;
{{translate}}&lt;br /&gt;
The interiors resource provides a generic system for use of the single player's interiors system, which is included in the MTASA:DM DP2 server package onwards.  This means placing warp points where when players hit the marker, they are set into the appropriate interior.&lt;br /&gt;
&lt;br /&gt;
=Loading interiors from the resource=&lt;br /&gt;
By default, the interiors resource offers over 200 of single player's own interior locations.  Coupled with [[dimension|dimensions]], each and every warp point offers a unique location - with a total of over 450 locations.&lt;br /&gt;
&lt;br /&gt;
Loading these interiors is easy.  Starting the ''interiors'' resource will auto load all these preset warp points and will be ready to use out of the box.&lt;br /&gt;
&lt;br /&gt;
=Adding your own interiors=&lt;br /&gt;
The interiors resource supports a flexible .map based element system to add your own interiors. The syntax follows an ''entry'' and ''return'' system.  An ''interiorEntry'' element must have a unique id, and the ''interiorReturn'' element uses the &amp;quot;refid&amp;quot; attribute to link them together.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;interiorEntry	id=&amp;quot;&amp;quot;  posX=&amp;quot;&amp;quot;  posY=&amp;quot;&amp;quot;  posZ=&amp;quot;&amp;quot;  rotation=&amp;quot;&amp;quot;  dimension=&amp;quot;&amp;quot;  interior=&amp;quot;&amp;quot; oneway=&amp;quot;&amp;quot;  /&amp;gt;&lt;br /&gt;
&amp;lt;interiorReturn	 refid=&amp;quot;&amp;quot;  posX=&amp;quot;&amp;quot;  posY=&amp;quot;&amp;quot;  posZ=&amp;quot;&amp;quot;  rotation=&amp;quot;&amp;quot;  dimension=&amp;quot;&amp;quot;  interior=&amp;quot;&amp;quot;  /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
* '''posX''': A float representing the X position of the interior warp.&lt;br /&gt;
* '''posY''': A float representing the Y position of the interior warp.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the interior warp.&lt;br /&gt;
* '''rotation''': A float representing the rotation of the player when he '''reaches''' the marker in the specified element.&lt;br /&gt;
* '''dimension''': An integer representing the dimension of the player when he '''reaches''' the interior warp in the specified element.  In other words, which dimension the warp point exists.&lt;br /&gt;
* '''interior''': An integer representing the interior world of the player when he '''reaches''' the interior warp in the specified element.  In other words, which interior the warp point exists.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
* '''oneway''': If set to ''true'', a interiorReturn marker will not be created, and the warp point will be one-way - from the interiorEntry to the interiorReturn with no way back.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;interiorEntry	id=&amp;quot;AMMUN1&amp;quot;	posX=&amp;quot;1368.35&amp;quot;	posY=&amp;quot;-1279.06&amp;quot;	posZ=&amp;quot;12.55&amp;quot;	rotation=&amp;quot;-0.100006&amp;quot;	dimension=&amp;quot;0&amp;quot;	interior=&amp;quot;0&amp;quot;	/&amp;gt;&lt;br /&gt;
&amp;lt;interiorReturn	refid=&amp;quot;AMMUN1&amp;quot;	posX=&amp;quot;286.15&amp;quot;	posY=&amp;quot;-41.54&amp;quot;	posZ=&amp;quot;1000.57&amp;quot;	rotation=&amp;quot;90&amp;quot;	interior=&amp;quot;1&amp;quot;	dimension=&amp;quot;0&amp;quot;	/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The interiorEntry element here is located at 1368.35,-1279.06,12.55.  When the player reaches this location, he will be warped to the attributes specified in the linked interiorReturn element - 286.15,-41.54,1000.57 with a rotation of 90 degrees, into the new interior world 1.  When the player hits this marker again, the transverse will happen.&lt;br /&gt;
&lt;br /&gt;
=Interfacing your script with the interiors resource=&lt;br /&gt;
The interiors resource offers a few events and functions which should allow customisability of&lt;br /&gt;
interiors.&lt;br /&gt;
&lt;br /&gt;
==Exported functions==&lt;br /&gt;
Please remember that [[call]] must be used to call functions of another resource.&lt;br /&gt;
----&lt;br /&gt;
===getInteriorName===&lt;br /&gt;
This function retrieves the overall name of an interior.  This means it is the id or the overall refid.&lt;br /&gt;
====Syntax====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getInteriorName ( element interiorEntry/InteriorReturn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments====&lt;br /&gt;
*'''interior:''' The interior you wish to get the name of.  Can be of type ''interiorEntry'' or ''interiorReturn''.&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns a string of the interior name, or false if it could not be retrieved.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getInteriorMarker===&lt;br /&gt;
This function retrieves the [[marker]] element associated to the interior.  This will allow you to modify the visibility of interior markers using the [[setElementVisibleTo]] function.&lt;br /&gt;
====Syntax====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
marker getInteriorName ( element interiorEntry/InteriorReturn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments====&lt;br /&gt;
*'''interior:''' The interior you wish to retrieve the associated marker of.  Can be of type ''interiorEntry'' or ''interiorReturn''.&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns a marker element associated to the specified interior, or false if it could not be retrieved.&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
===onInteriorHit===&lt;br /&gt;
This event is triggered when an interior warp point is hit, prior to when a player is warped to his/her destination.&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitPlayer''': The player that hit the interior warp point.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the interior element which was hit.&lt;br /&gt;
&lt;br /&gt;
====Cancel effect====&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the player will not be warped to his destination point.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onInteriorWarped===&lt;br /&gt;
This event is triggered when an interior destination has successfully been warped to.&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player warpedPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''warpedPlayer''': The player that has warped to the destination interior.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the interior element which was warped '''to'''.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onPlayerInteriorHit===&lt;br /&gt;
This event is triggered when a player hits an interior warp point, prior to him reaching his destination&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitInterior&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitInterior''': The interior element that was hit.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player who hit the interior element.&lt;br /&gt;
&lt;br /&gt;
====Cancel effect====&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the player will not be warped to his destination point.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===onPlayerInteriorWarped===&lt;br /&gt;
This event is triggered when a player successfully warps to his destination interior.&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player warpedInterior&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''warpedInterior''': The interior that has been warped '''to'''.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The [[event system#Event source|source]] of this event is the player who was warped to his destination point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Examples===&lt;br /&gt;
'''Coming soon'''&lt;br /&gt;
[[en:Resource:Interiors]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EDF&amp;diff=21366</id>
		<title>EDF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EDF&amp;diff=21366"/>
		<updated>2009-08-29T20:44:57Z</updated>

		<summary type="html">&lt;p&gt;Divine: Redirected page to Resource:Editor/EDF&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Editor/EDF]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EDF&amp;diff=21365</id>
		<title>EDF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EDF&amp;diff=21365"/>
		<updated>2009-08-29T20:44:23Z</updated>

		<summary type="html">&lt;p&gt;Divine: Redirected page to Editor/EDF&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[editor/EDF]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21349</id>
		<title>RU/Meta.xml</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21349"/>
		<updated>2009-08-28T10:47:04Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
Этот файл имеет очень важное содержание, которое позволяет загрузить ресурс/режим/карту. Вам нужно указать имена файлов, которые ваш скрипт/режим e (resource) будет использовать в файле '''meta.xml'''. Если вы хотите отображать изображение на экране клиента, клиент должен сначала загрузить его. Чтобы сервер знал, что вы хотите использовать изображение, нужно прописать имя файла в meta.xml. Если вам нужно использовать какие-то настройки для скрипта в качестве переменных, вы можете прописать их в тэге &amp;lt;settings&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Примечание: Вы можете опробывать простой генератор meta.xml, созданный 50p: http://forum.mtasa.com/viewtopic.php?f=91&amp;amp;t=22247&lt;br /&gt;
&lt;br /&gt;
== Возможные тэги ==&lt;br /&gt;
Тэги в .xml такие же, как в . html. Файл meta.xml имеет множество тэгов, необходимых и опциональных. У них есть свои атрибуты.&lt;br /&gt;
Язык XML не умеет формировать тэги, он служит как простой способ хранения данных. Интерпретацией тэгов занимаются скрипты, то есть '''вы можете определять новые тэги в XML'''. Однако, MTA определяет несколько тэгов самостоятельно, они приведены ниже:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Information about this resource, possible parameters include (any arbitrary parameters can be used and read using [[getResourceInfo]]):&lt;br /&gt;
** '''author:''' The author of this resource&lt;br /&gt;
** '''version:''' The version of this resource&lt;br /&gt;
** '''name:''' The name of this resource&lt;br /&gt;
** '''description:''' A brief description of this resource&lt;br /&gt;
** '''type:''' The type of this resource, that can be &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; or &amp;quot;misc&amp;quot;.&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Source code for this resource, possible parameters are:&lt;br /&gt;
** '''src:''' The file name of the source code&lt;br /&gt;
** '''type:''' The type of source code: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' The map for a gamemode, possible parameters are:&lt;br /&gt;
**'''src:''' .map file name (can be path too eg. &amp;quot;maps/filename.map&amp;quot;)&lt;br /&gt;
**'''dimension:''' Dimension in which the map will be loaded (optional)&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' A client-side file. Generally these are images, .txd, .col, .dff or .xml files. They'll be downloaded by clients when the resources is started (or on join)&lt;br /&gt;
**'''src:''' client-side file name (can be path too eg. &amp;quot;images/image.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Include resources that this resource will use&lt;br /&gt;
**'''resource:''' Resource name that you want to start with this resource&lt;br /&gt;
**'''minversion:''' Minimum version that '''resource''' needs to be (optional)&lt;br /&gt;
**'''maxversion:''' Maximum version that '''resource''' needs to be (optional)&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Config file (.xml) can be accessed by resource, possible parameters are:&lt;br /&gt;
**'''src:''' The file name of the config file&lt;br /&gt;
**'''type:''' The type of the config file: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' This exports functions from this resource, so other resources can use them with [[call]]&lt;br /&gt;
**'''function:''' The function name&lt;br /&gt;
**'''type''' Whether function is exported server-side or client-side (valid values are: &amp;quot;server&amp;quot; and &amp;quot;client&amp;quot;)&lt;br /&gt;
**'''http:''' Can the function be called via HTTP (true/false)&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' The filename for the HTTP file (can be a path)&lt;br /&gt;
**'''default:''' The html file is one that is shown by default when visiting /resourceName/ on the server. Only one html can be default, the rest are ignored. (true/false)&lt;br /&gt;
**'''raw:''' The html file is not parsed by the LUA interpreter and is treated as binary data. Must be used for binary files (images mainly) (true/false)&lt;br /&gt;
*'''&amp;lt;settings&amp;gt; &amp;lt;setting name=&amp;quot;&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt; &amp;lt;/settings&amp;gt;:''' Most gamemodes use [[settings system]] to let server admins to configure it how they like. For instance you could set round time and then use [[get]] and [[set]] to get the value or change it, respectively.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Heres an example of a meta file using some of the tags mentioned:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;meta&amp;gt;&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Slothman&amp;quot; type=&amp;quot;gamemode&amp;quot; name=&amp;quot;Stealth&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noiseblip.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;mission_timer.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noisebar.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;spycam.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.txd&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.col&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;armor.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;camera.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;cloak.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;goggles.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;mine.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;radar.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;shield.png&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;scoreboard&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;killmessages&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;maplimits&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;settings&amp;gt;&lt;br /&gt;
         &amp;lt;setting name=&amp;quot;roundlimit&amp;quot; value=&amp;quot;[6]&amp;quot; /&amp;gt; &amp;lt;!-- round length in minutes --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teamdamage&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!-- 0 for team protection off, 1 for team protection on --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teambalance&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!--  difference limit of amount of players between teams --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;spazammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt; &amp;lt;!-- ammo amounts --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;m4ammo&amp;quot; value=&amp;quot;[100]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;shotgunammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;sniperammo&amp;quot; value=&amp;quot;[20]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;ak47ammo&amp;quot; value=&amp;quot;[120]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;rifleammo&amp;quot; value=&amp;quot;[40]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;deserteagleammo&amp;quot; value=&amp;quot;[45]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;pistolammo&amp;quot; value=&amp;quot;[132]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;uziammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;tec9ammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;silencedammo&amp;quot; value=&amp;quot;[65]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;grenadeammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;satchelammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teargasammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;molatovammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
     &amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:Incomplete]]&lt;br /&gt;
[[en:Meta.xml]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21348</id>
		<title>RU/Meta.xml</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21348"/>
		<updated>2009-08-28T10:40:54Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
Этот файл имеет очень важное содержание, которое позволяет загрузить ресурс/режим/карту. Вам нужно указать имена файлов, которые ваш скрипт/режим e (resource) будет использовать в файле '''meta.xml'''. Если вы хотите отображать изображение на экране клиента, клиент должен сначала загрузить его. Чтобы сервер знал, что вы хотите использовать изображение, нужно прописать имя файла в meta.xml. Если вам нужно использовать какие-то настройки для скрипта в качестве переменных, вы можете прописать их в тэге &amp;lt;settings&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Примечание: Вы можете опробывать простой генератор meta.xml, созданный 50p: http://forum.mtasa.com/viewtopic.php?f=91&amp;amp;t=22247&lt;br /&gt;
&lt;br /&gt;
== Возможные тэги ==&lt;br /&gt;
Тэги в .xml такие же, как в . html. Файл meta.xml имеет множество тэгов, необходимых ит опциональных. У них есть свои атрибуты.&lt;br /&gt;
&lt;br /&gt;
Possible tags:&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Information about this resource, possible parameters include (any arbitrary parameters can be used and read using [[getResourceInfo]]):&lt;br /&gt;
** '''author:''' The author of this resource&lt;br /&gt;
** '''version:''' The version of this resource&lt;br /&gt;
** '''name:''' The name of this resource&lt;br /&gt;
** '''description:''' A brief description of this resource&lt;br /&gt;
** '''type:''' The type of this resource, that can be &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot; or &amp;quot;map&amp;quot;.&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Source code for this resource, possible parameters are:&lt;br /&gt;
** '''src:''' The file name of the source code&lt;br /&gt;
** '''type:''' The type of source code: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' The map for a gamemode, possible parameters are:&lt;br /&gt;
**'''src:''' .map file name (can be path too eg. &amp;quot;maps/filename.map&amp;quot;)&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' A client-side file. Generally these are images, .txd, .col, .dff or .xml files. They'll be downloaded by clients when the resources is started (or on join)&lt;br /&gt;
**'''src:''' client-side file name (can be path too eg. &amp;quot;images/image.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Include resources that this resource will use&lt;br /&gt;
**'''resource:''' Resource name that you want to start with this resource&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Config file (.xml) can be accessed by resource, possible parameters are:&lt;br /&gt;
**'''src:''' The file name of the config file&lt;br /&gt;
**'''type:''' The type of the config file: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' This exports functions from this resource, so other resources can use them with [[call]]&lt;br /&gt;
**'''function:''' The function name&lt;br /&gt;
**'''http:''' Can the function be called via HTTP (true/false)&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' The filename for the HTTP file (can be a path)&lt;br /&gt;
**'''default:''' The html file is one that is shown by default when visiting /resourceName/ on the server. Only one html can be default, the rest are ignored. (true/false)&lt;br /&gt;
**'''raw:''' The html file is not parsed by the LUA interpreter and is treated as binary data. Must be used for binary files (images mainly) (true/false)&lt;br /&gt;
*'''&amp;lt;settings&amp;gt; &amp;lt;/settings&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Heres an example of a meta file using some of the tags mentioned:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;meta&amp;gt;&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Slothman&amp;quot; type=&amp;quot;gamemode&amp;quot; name=&amp;quot;Stealth&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noiseblip.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;mission_timer.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noisebar.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;spycam.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.txd&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.col&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;armor.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;camera.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;cloak.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;goggles.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;mine.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;radar.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;shield.png&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;scoreboard&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;killmessages&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;maplimits&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;settings&amp;gt;&lt;br /&gt;
         &amp;lt;setting name=&amp;quot;roundlimit&amp;quot; value=&amp;quot;[6]&amp;quot; /&amp;gt; &amp;lt;!-- round length in minutes --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teamdamage&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!-- 0 for team protection off, 1 for team protection on --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teambalance&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!--  difference limit of amount of players between teams --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;spazammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt; &amp;lt;!-- ammo amounts --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;m4ammo&amp;quot; value=&amp;quot;[100]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;shotgunammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;sniperammo&amp;quot; value=&amp;quot;[20]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;ak47ammo&amp;quot; value=&amp;quot;[120]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;rifleammo&amp;quot; value=&amp;quot;[40]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;deserteagleammo&amp;quot; value=&amp;quot;[45]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;pistolammo&amp;quot; value=&amp;quot;[132]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;uziammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;tec9ammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;silencedammo&amp;quot; value=&amp;quot;[65]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;grenadeammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;satchelammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teargasammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;molatovammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
     &amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:Incomplete]]&lt;br /&gt;
[[en:Meta.xml]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21347</id>
		<title>RU/Meta.xml</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21347"/>
		<updated>2009-08-28T10:40:40Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
Этот файл имеет очень важное содержание, которое позволяет загрузить ресурс/режим/карту. Вам нужно указать имена файлов, которые ваш скрипт/режим e (resource) будет использовать в файле '''meta.xml'''. Если вы хотите отображать изображение на экране клиента, клиент должен сначала загрузить его. Чтобы сервер знал, что вы хоттите использовать изображение, нужно прописать имя файла в meta.xml. Если вам нужно использовать какие-то настройки для скрипта в качестве переменных, вы можете прописать их в тэге &amp;lt;settings&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Примечание: Вы можете опробывать простой генератор meta.xml, созданный 50p: http://forum.mtasa.com/viewtopic.php?f=91&amp;amp;t=22247&lt;br /&gt;
&lt;br /&gt;
== Возможные тэги ==&lt;br /&gt;
Тэги в .xml такие же, как в . html. Файл meta.xml имеет множество тэгов, необходимых ит опциональных. У них есть свои атрибуты.&lt;br /&gt;
&lt;br /&gt;
Possible tags:&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Information about this resource, possible parameters include (any arbitrary parameters can be used and read using [[getResourceInfo]]):&lt;br /&gt;
** '''author:''' The author of this resource&lt;br /&gt;
** '''version:''' The version of this resource&lt;br /&gt;
** '''name:''' The name of this resource&lt;br /&gt;
** '''description:''' A brief description of this resource&lt;br /&gt;
** '''type:''' The type of this resource, that can be &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot; or &amp;quot;map&amp;quot;.&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Source code for this resource, possible parameters are:&lt;br /&gt;
** '''src:''' The file name of the source code&lt;br /&gt;
** '''type:''' The type of source code: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' The map for a gamemode, possible parameters are:&lt;br /&gt;
**'''src:''' .map file name (can be path too eg. &amp;quot;maps/filename.map&amp;quot;)&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' A client-side file. Generally these are images, .txd, .col, .dff or .xml files. They'll be downloaded by clients when the resources is started (or on join)&lt;br /&gt;
**'''src:''' client-side file name (can be path too eg. &amp;quot;images/image.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Include resources that this resource will use&lt;br /&gt;
**'''resource:''' Resource name that you want to start with this resource&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Config file (.xml) can be accessed by resource, possible parameters are:&lt;br /&gt;
**'''src:''' The file name of the config file&lt;br /&gt;
**'''type:''' The type of the config file: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' This exports functions from this resource, so other resources can use them with [[call]]&lt;br /&gt;
**'''function:''' The function name&lt;br /&gt;
**'''http:''' Can the function be called via HTTP (true/false)&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' The filename for the HTTP file (can be a path)&lt;br /&gt;
**'''default:''' The html file is one that is shown by default when visiting /resourceName/ on the server. Only one html can be default, the rest are ignored. (true/false)&lt;br /&gt;
**'''raw:''' The html file is not parsed by the LUA interpreter and is treated as binary data. Must be used for binary files (images mainly) (true/false)&lt;br /&gt;
*'''&amp;lt;settings&amp;gt; &amp;lt;/settings&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Heres an example of a meta file using some of the tags mentioned:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;meta&amp;gt;&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Slothman&amp;quot; type=&amp;quot;gamemode&amp;quot; name=&amp;quot;Stealth&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noiseblip.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;mission_timer.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noisebar.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;spycam.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.txd&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.col&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;armor.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;camera.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;cloak.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;goggles.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;mine.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;radar.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;shield.png&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;scoreboard&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;killmessages&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;maplimits&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;settings&amp;gt;&lt;br /&gt;
         &amp;lt;setting name=&amp;quot;roundlimit&amp;quot; value=&amp;quot;[6]&amp;quot; /&amp;gt; &amp;lt;!-- round length in minutes --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teamdamage&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!-- 0 for team protection off, 1 for team protection on --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teambalance&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!--  difference limit of amount of players between teams --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;spazammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt; &amp;lt;!-- ammo amounts --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;m4ammo&amp;quot; value=&amp;quot;[100]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;shotgunammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;sniperammo&amp;quot; value=&amp;quot;[20]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;ak47ammo&amp;quot; value=&amp;quot;[120]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;rifleammo&amp;quot; value=&amp;quot;[40]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;deserteagleammo&amp;quot; value=&amp;quot;[45]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;pistolammo&amp;quot; value=&amp;quot;[132]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;uziammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;tec9ammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;silencedammo&amp;quot; value=&amp;quot;[65]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;grenadeammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;satchelammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teargasammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;molatovammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
     &amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:Incomplete]]&lt;br /&gt;
[[en:Meta.xml]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21346</id>
		<title>RU/Meta.xml</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Meta.xml&amp;diff=21346"/>
		<updated>2009-08-28T10:33:45Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{translate}}&lt;br /&gt;
Этот файл имеет очень важное содержание, которое позволяет загрузить ресурс/режим/карту. Вам нужно указать имена файлов, которые ваш скрипт/режим e (resource) будет использовать в файле '''meta.xml'''.&lt;br /&gt;
Eg. If you want to display an image on the client's screen, the client needs to download the image first. To tell the server that you want to use an image in the script you'll need to include the file's name in the meta.xml file.&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to use some settings for the script as a variable you can set them in &amp;lt;settings&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
Note: You can try simple Meta.xml generator made by 50p: http://forum.mtasa.com/viewtopic.php?f=91&amp;amp;t=22247&lt;br /&gt;
&lt;br /&gt;
== Possible tags ==&lt;br /&gt;
Тэги в .xml такие же, как в . html. Файл meta.xml имеет множество тэгов, необходимых ит опциональных. У них есть свои атрибуты.&lt;br /&gt;
&lt;br /&gt;
Possible tags:&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Information about this resource, possible parameters include (any arbitrary parameters can be used and read using [[getResourceInfo]]):&lt;br /&gt;
** '''author:''' The author of this resource&lt;br /&gt;
** '''version:''' The version of this resource&lt;br /&gt;
** '''name:''' The name of this resource&lt;br /&gt;
** '''description:''' A brief description of this resource&lt;br /&gt;
** '''type:''' The type of this resource, that can be &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot; or &amp;quot;map&amp;quot;.&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Source code for this resource, possible parameters are:&lt;br /&gt;
** '''src:''' The file name of the source code&lt;br /&gt;
** '''type:''' The type of source code: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' The map for a gamemode, possible parameters are:&lt;br /&gt;
**'''src:''' .map file name (can be path too eg. &amp;quot;maps/filename.map&amp;quot;)&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' A client-side file. Generally these are images, .txd, .col, .dff or .xml files. They'll be downloaded by clients when the resources is started (or on join)&lt;br /&gt;
**'''src:''' client-side file name (can be path too eg. &amp;quot;images/image.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Include resources that this resource will use&lt;br /&gt;
**'''resource:''' Resource name that you want to start with this resource&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Config file (.xml) can be accessed by resource, possible parameters are:&lt;br /&gt;
**'''src:''' The file name of the config file&lt;br /&gt;
**'''type:''' The type of the config file: &amp;quot;client&amp;quot; or &amp;quot;server&amp;quot;&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' This exports functions from this resource, so other resources can use them with [[call]]&lt;br /&gt;
**'''function:''' The function name&lt;br /&gt;
**'''http:''' Can the function be called via HTTP (true/false)&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' The filename for the HTTP file (can be a path)&lt;br /&gt;
**'''default:''' The html file is one that is shown by default when visiting /resourceName/ on the server. Only one html can be default, the rest are ignored. (true/false)&lt;br /&gt;
**'''raw:''' The html file is not parsed by the LUA interpreter and is treated as binary data. Must be used for binary files (images mainly) (true/false)&lt;br /&gt;
*'''&amp;lt;settings&amp;gt; &amp;lt;/settings&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Heres an example of a meta file using some of the tags mentioned:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;meta&amp;gt;&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Slothman&amp;quot; type=&amp;quot;gamemode&amp;quot; name=&amp;quot;Stealth&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;help.xml&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noiseblip.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;mission_timer.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_server.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;gadgets_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;stealthmain_client.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;noisebar.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;spycam.lua&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.txd&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;riot_shield.col&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;armor.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;camera.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;cloak.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;goggles.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;mine.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;radar.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;shield.png&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;scoreboard&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;killmessages&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;maplimits&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;settings&amp;gt;&lt;br /&gt;
         &amp;lt;setting name=&amp;quot;roundlimit&amp;quot; value=&amp;quot;[6]&amp;quot; /&amp;gt; &amp;lt;!-- round length in minutes --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teamdamage&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!-- 0 for team protection off, 1 for team protection on --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teambalance&amp;quot; value=&amp;quot;[1]&amp;quot; /&amp;gt; &amp;lt;!--  difference limit of amount of players between teams --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;spazammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt; &amp;lt;!-- ammo amounts --&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;m4ammo&amp;quot; value=&amp;quot;[100]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;shotgunammo&amp;quot; value=&amp;quot;[25]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;sniperammo&amp;quot; value=&amp;quot;[20]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;ak47ammo&amp;quot; value=&amp;quot;[120]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;rifleammo&amp;quot; value=&amp;quot;[40]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;deserteagleammo&amp;quot; value=&amp;quot;[45]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;pistolammo&amp;quot; value=&amp;quot;[132]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;uziammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;tec9ammo&amp;quot; value=&amp;quot;[150]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;silencedammo&amp;quot; value=&amp;quot;[65]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;grenadeammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;satchelammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;teargasammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
	 &amp;lt;setting name=&amp;quot;molatovammo&amp;quot; value=&amp;quot;[4]&amp;quot; /&amp;gt;&lt;br /&gt;
     &amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:Incomplete]]&lt;br /&gt;
[[en:Meta.xml]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTA:SA_to_work_with_wine&amp;diff=21250</id>
		<title>RU/Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTA:SA_to_work_with_wine&amp;diff=21250"/>
		<updated>2009-08-26T17:43:47Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Вам понадобится последняя версия Wine.&lt;br /&gt;
&lt;br /&gt;
Установите MTA:SA, абсолютно не важно, какой у Вас путь к MTA и к GTA:SA.&lt;br /&gt;
&lt;br /&gt;
Вам нужен Wine версии 0.9.49 или более поздней для запуска MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Как только установите его, скачайте [http://ijs.bastage.net/mta/mta_unix.zip Загрузчик для *nix], и извлеките его в папку MTA San Andreas.&lt;br /&gt;
&lt;br /&gt;
Скачайте шрифты [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] и [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] нужные для CEGUI, и скопируйте их в $HOME/.wine/drive_c/windows/fonts/&lt;br /&gt;
&lt;br /&gt;
Откройте &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, перейдите на вкладку &amp;quot;Графика&amp;quot;, и снимите флажок &amp;quot;Разрешить Пиксельные Шейдеры&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Удалите из вашей папки MTA San Andreas файл MTA/data/menu.mkv.&lt;br /&gt;
&lt;br /&gt;
Вставьте [http://pastebin.com/f4c91e22b это] в MTA/coreconfig.xml (menu_options всегда должен быть равен 7).&lt;br /&gt;
&lt;br /&gt;
Запустите MTA_SA_unix.exe.&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTASADM_to_work_with_wine&amp;diff=21249</id>
		<title>RU/Getting MTASADM to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTASADM_to_work_with_wine&amp;diff=21249"/>
		<updated>2009-08-26T17:41:57Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Getting MTASADM to work with wine to RU/Getting MTA:SA to work with wine&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[RU/Getting MTA:SA to work with wine]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTA:SA_to_work_with_wine&amp;diff=21248</id>
		<title>RU/Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Getting_MTA:SA_to_work_with_wine&amp;diff=21248"/>
		<updated>2009-08-26T17:41:57Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved RU/Getting MTASADM to work with wine to RU/Getting MTA:SA to work with wine&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Вам понадобится последняя версия Wine.&lt;br /&gt;
&lt;br /&gt;
Установите MTA:SA:DM, абсолютно не важно, какой у Вас путь к MTA и к GTA:SA.&lt;br /&gt;
&lt;br /&gt;
Вам нужен Wine версии 0.9.49 или более поздней для запуска MTA:SA:DM.&lt;br /&gt;
&lt;br /&gt;
Как только установите его, скачайте [http://ijs.bastage.net/mta/mta_unix.zip Загрузчик для *nix ], и извлеките его в папку с GTA:SA.&lt;br /&gt;
&lt;br /&gt;
Скачайте шрифты [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] и [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] нужные для CEGUI, и скопируйте их в $HOME/.wine/drive_c/windows/fonts/&lt;br /&gt;
&lt;br /&gt;
Откройте &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, перейдите на вкладку &amp;quot;Графика&amp;quot;, и снимите флажок &amp;quot;Разрешить Пиксельные Шейдеры&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Удалите из вашей папки с GTA:SA файл MTA/data/menu.mkv&lt;br /&gt;
&lt;br /&gt;
Вставьте [http://pastebin.com/f4c91e22b это] в MTA/coreconfig.xml (menu_options всегда должен быть равен 7).&lt;br /&gt;
&lt;br /&gt;
Запустите MTA_SA_unix.exe&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTASADM_to_work_with_wine&amp;diff=21247</id>
		<title>Getting MTASADM to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTASADM_to_work_with_wine&amp;diff=21247"/>
		<updated>2009-08-26T17:40:54Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved Getting MTASADM to work with wine to Getting MTA:SA to work with wine&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Getting MTA:SA to work with wine]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=21246</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=21246"/>
		<updated>2009-08-26T17:40:54Z</updated>

		<summary type="html">&lt;p&gt;Divine: moved Getting MTASADM to work with wine to Getting MTA:SA to work with wine&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You will need the latest version of Wine to get the installer working.&lt;br /&gt;
&lt;br /&gt;
Install MTA:SA:DM, it does not matter wherever you install MTA, and the GTA:SA path.&lt;br /&gt;
&lt;br /&gt;
You will need the version of ''Wine'' greater than 0.9.49 to run MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Once you installed it, download the [http://ijs.bastage.net/mta/mta_unix.zip *nix loader], and extract it to your GTA:SA directory.&lt;br /&gt;
&lt;br /&gt;
Download the fonts [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] and [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] needed by CEGUI, and place them in ''$HOME/.wine/drive_c/windows/fonts/''&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, go to the graphics tab, and uncheck &amp;quot;Allow Pixel Shader&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Remove in your ''MTA San Andreas'' directory ''MTA/data/menu.mkv''.&lt;br /&gt;
&lt;br /&gt;
Paste [http://pastebin.com/f4c91e22b this] in ''MTA/coreconfig.xml'' (menu_options must be always 7).&lt;br /&gt;
&lt;br /&gt;
Run ''MTA_SA_unix.exe''.&lt;br /&gt;
&lt;br /&gt;
[[ru:Getting MTASADM to work with wine]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=21245</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=21245"/>
		<updated>2009-08-26T17:39:06Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You will need the latest version of Wine to get the installer working.&lt;br /&gt;
&lt;br /&gt;
Install MTA:SA:DM, it does not matter wherever you install MTA, and the GTA:SA path.&lt;br /&gt;
&lt;br /&gt;
You will need the version of ''Wine'' greater than 0.9.49 to run MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Once you installed it, download the [http://ijs.bastage.net/mta/mta_unix.zip *nix loader], and extract it to your GTA:SA directory.&lt;br /&gt;
&lt;br /&gt;
Download the fonts [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] and [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] needed by CEGUI, and place them in ''$HOME/.wine/drive_c/windows/fonts/''&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, go to the graphics tab, and uncheck &amp;quot;Allow Pixel Shader&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Remove in your ''MTA San Andreas'' directory ''MTA/data/menu.mkv''.&lt;br /&gt;
&lt;br /&gt;
Paste [http://pastebin.com/f4c91e22b this] in ''MTA/coreconfig.xml'' (menu_options must be always 7).&lt;br /&gt;
&lt;br /&gt;
Run ''MTA_SA_unix.exe''.&lt;br /&gt;
&lt;br /&gt;
[[ru:Getting MTASADM to work with wine]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21220</id>
		<title>Template:Translate</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Translate&amp;diff=21220"/>
		<updated>2009-08-24T11:22:30Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border:solid green 1px; margin: 1px; width: 560px; background: #e0e0e0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 45px; height: 45px; background: white;&amp;quot;| [[Image:Warning.png]]&lt;br /&gt;
| style=&amp;quot;font-size: 10pt; padding: 4pt; line-height: 1.25em; color: black;&amp;quot;| Статью необходимо перевести на русский язык. На странице обсуждения могут быть подробности.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Pages to translate]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IT/Guida_al_Debug&amp;diff=21219</id>
		<title>IT/Guida al Debug</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IT/Guida_al_Debug&amp;diff=21219"/>
		<updated>2009-08-24T11:19:11Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{IT/MainP}}&lt;br /&gt;
[[Category:100%]]&lt;br /&gt;
[[Category:IT/Concetti di scripting]]&lt;br /&gt;
[[Category:IT/Guide e tutorial]]&lt;br /&gt;
Scriptando ti capiteranno presto problemi che non si notano subito. Questa pagina ha lo scopo di elencare qualche strategia di base per trovare l'errore.&lt;br /&gt;
&lt;br /&gt;
==Console di debug==&lt;br /&gt;
MTA possiede una console ingame per il debug. Puoi aprirla digitando ''debugscript x'' nella console, dove ''x'' è il livello di debug:&lt;br /&gt;
* '''1:''' solo gli errori&lt;br /&gt;
* '''2:''' gli errori e i ''warning''&lt;br /&gt;
* '''3:''' gli errori, i ''warning'' e le info&lt;br /&gt;
Perciò, digitando ''debugscript 3'' tutti i messaggi saranno visibili, anche se il livello 2 è raccomandato per la maggior parte dei casi. Dovresti avere il ''debugscript'' attivato la maggior parte del tempo che scripti, ti aiuterà a trovare errori di digitazione, insieme ad altri piccoli problemi e a risolverli facilmente.&lt;br /&gt;
&lt;br /&gt;
===Esempio===&lt;br /&gt;
Questo frammento di esempio ha due errori:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;)&lt;br /&gt;
	outputChatbox(&amp;quot;DISGRACE&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Quando lo script tenterà di caricare questa parte di codice, nella console di debug dovrebbe apparire qualcosa del genere:&lt;br /&gt;
{{Debug info|Loading script failed: C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\myResource\script.lua:15: 'then' expected near 'outputChatbox'}}&lt;br /&gt;
Significa che c'è un errore di sintassi. Il ''debugscript'' mostra il percorso dello script che genera l'errore, in modo da conoscere la ''resource'' ('myResource' in questo caso) e ovviamente il nome dello script. Dopo il nome del file mostra la linea dell'errore e poi il tipo di errore. A questo punto è facile, abbiamo dimenticato il 'then':&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatbox(&amp;quot;DISGRACE&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Ora lo script caricherà senza errori e sembrerà funzionare bene, ma quando un player di nome 'Fedor' raggiungerà questa parte dello script, il ''debugscript'' darà questo errore:&lt;br /&gt;
{{Debug error|C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\d\script.lua:15: attempt to call global 'outputChatbox' (a nil value)}}&lt;br /&gt;
Significa che la funzione chiamata non esiste: è facilmente spiegabile, visto che il nome esatto della funzione è ''outputChatBox'' (con la ''B'' maiuscola):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatBox(&amp;quot;DISGRACE&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ovviamente è solo un esempio, potrebbe esserci un'infinità di altre situazioni, ma dovreste esservi fatti un'idea.&lt;br /&gt;
&lt;br /&gt;
==Log del debug==&lt;br /&gt;
Puoi anche attivare la creazione di un file log del debug modificando il file ''coreconfig.xml'' nella tua cartella MTA all'interno di quella di GTA. Devi cercare la riga seguente:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
E rimpiazzarla con questa, scegliendo la path che preferisci, relativa alla cartella di GTA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile&amp;gt;MTA\debugscript.log&amp;lt;/debugfile&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Tutti i messaggi di debug da ora in poi verranno aggiunti al file log. Per bloccare questo processo, ripristina la riga precedente.&lt;br /&gt;
&lt;br /&gt;
==Strategie di debug==&lt;br /&gt;
Esistono svariate strategie per trovare gli errori, la maggior parte delle quali prevede l'uso dei messaggi di debug, con informazioni differenti a seconda della situazione.&lt;br /&gt;
&lt;br /&gt;
===Funzioni utili===&lt;br /&gt;
Prima di tutto ecco alcune funzioni comode per il debug.&lt;br /&gt;
* [[IT/outputDebugString|outputDebugString]] o [[IT/outputChatBox|outputChatBox]] per l'''output'' di informazioni nella console di debug o in chatbox&lt;br /&gt;
* (in inglese) [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] su una variabile per trasformarla in una stringa (per esempio se è una ''float'')&lt;br /&gt;
* [[IT/getElementType|getElementType]] per verificare il tipo di un elemento di MTA&lt;br /&gt;
&lt;br /&gt;
===Creare messaggi di debug per verificare ''se'', ''quando'' o ''quante volte'' è eseguita una parte di codice===&lt;br /&gt;
Un esempio tipico potrebbe essere verificare se la sezione di codice dentro un ''if'' sia eseguita o meno. Per far questo, aggiungi un messaggio qualsiasi (che in seguito riconoscerai) nella sezione dentro l'''if''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (variabile1 == variabile2) then&lt;br /&gt;
	outputDebugString(&amp;quot;if eseguito&amp;quot;)&lt;br /&gt;
	-- fai qualsiasi cosa&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Un altro uso potrebbe essere verificare se il valore di una variabile è modficato. Prima cerca tutti i punti in cui questo valore è modificato e aggiungi un messaggio di debug proprio sotto di essi.&lt;br /&gt;
&lt;br /&gt;
=== Creare messaggi di debug per verificare il ''valore'' di una variabile===&lt;br /&gt;
Diciamo che vuoi creare un ''marker'', ma non sembra essere nella posizione dove dovrebbe trovarsi. La prima cosa che potresti voler fare è controllare se la funzione [[IT/createMarker|createMarker]] è eseguita. Ma nel fare ciò, puoi anche verificare le variabili usate nel [[IT/createMarker|createMarker]] in un colpo solo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox(tostring(x)..&amp;quot; &amp;quot;..tostring(y)..&amp;quot; &amp;quot;..tostring(z))&lt;br /&gt;
createMarker(x,y,z)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Questo mostrerà le 3 variabili usate come coordinate per creare il ''marker''. Assumendo che tu le 'legga' da un file map, puoi controllare in questo modo il loro valore. La funzione [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] permette di unire con certezza i valori delle variabili in una stringa, anche se per esempio sono dei ''booleani''.&lt;br /&gt;
&lt;br /&gt;
==Esempio==&lt;br /&gt;
Immagina di creare una [[IT/Elemento/Collision shape|colshape]] da qualche parte e di volere che un'azione accada dopo che un [[IT/Elemento/Player|player]] rimanga 10 secondi dentro di essa.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;Il player è rimasto 10 secondi nella colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Quando un player entra nella colshape, il debugscript mostra il questo messaggio:&lt;br /&gt;
{{Debug error|..[path]: attempt to index global 'colshapeTimer' (a nil value)}}&lt;br /&gt;
Significa che hai tentato di settare un ''index'' (indice) di una tabella che non esiste. Nell'esempio di sopra, accade quando viene settato l'id del timer nell'''index'' della tabella. Dobbiamo verificare se la tabella esiste e, se non esiste, crearla.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ora riceviamo un errore quando un player entra nella colshape, aspetta dieci secondi e poi la lascia:&lt;br /&gt;
&lt;br /&gt;
{{Debug warning|[..]: Bad argument @ 'killTimer' Line: ..}}&lt;br /&gt;
&lt;br /&gt;
A parte questo (ne riparleremo più tardi) tutto sembra funzionare bene. Se un player entra nella colshape, il timer è avviato, se resta dentro 10 secondi il messaggio viene mostrato e se esce il timer viene eliminato.&lt;br /&gt;
&lt;br /&gt;
===Un errore ancora meno visibile===&lt;br /&gt;
Ma per qualche ragione il messaggio viene mostrato due volte se entri nella [[IT/Elemento/Collision shape|colshape]] mentre sei in un [[IT/Elemento/Veicolo|veicolo]]. Siccome sembra che una parte del codice sia eseguita due volte, aggiungiamo dei messaggi di debug per controllarlo.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit&amp;quot;)&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave&amp;quot;)&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ora ci rendiamo conto che entrambe le funzioni vengono eseguite due volte se siamo in un veicolo, ma solo una volta se siamo a piedi. Sembrerebbe che anche il veicolo chiami gli eventi legati alla colshape. Per confermare questa teoria, controlliamo la variabile ''player'' che '''dovrebbe''' contenere un [[IT/Elemento/Player|elemento player]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player) )&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player) )&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I messaggi di debug ci mostrano che un sola delle variabili ''player'' è davvero un elemento player, l'altra è un elemento veicolo. Visto che vogliamo che lo script reagisca solo quando un player entra nella colshape, aggiungiamo un ''if'' che bloccherà l'esecuzione della funzione se ''player'' '''non''' è un elemento player.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- controllo del ''type'' dell'elemento&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- controllo del ''type'' dell'elemento&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ora lo script dovrebbe funzionare come si desidera, ma continuiamo a ricevere il ''warning'' di cui abbiamo parlato prima. Ciò accade perchè il timer che cerchiamo di eliminare dopo che un player è rimasto 10 secondi nella [[IT/Elemento/Collision shape|colshape]] è già stato eseguito in precedenza e non esiste più. Ci sono diversi modi per risolvere questo ''warning'' (sapendo che il timer non esiste più e che dobbiamo eliminarlo solo se esiste ancora). Un modo sarebbe controllare se il timer riferito a quell'''index'' della tabella esista realmente. Per farlo, abbiamo bisogno di una piccola funzione 'ausiliaria':&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Che useremo quando eliminiamo il timer:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perciò il codice completamente funzionante sarebbe:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- controllo del ''type'' dell'elemento&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- setta un timer per mostrare un messaggio (potrebbe ugualmente eseguire un'altra funzione)&lt;br /&gt;
	-- settare l'id del timer in una tabella, con il player come ''index''&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- controllo del ''type'' dell'elemento&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- messaggio di debug&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- elimina il timer quando un player esce dalla colshape&lt;br /&gt;
	if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
		killTimer(colshapeTimer[player])&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[en:Debugging]]&lt;br /&gt;
[[ru:Debugging]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Debugging&amp;diff=21218</id>
		<title>RU/Debugging</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Debugging&amp;diff=21218"/>
		<updated>2009-08-24T11:18:45Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;При написании скриптов вы обязательно столкнетесь с проблемами, которые не сможете решить немедленно. Цель этой страницы - показать вам основные способыы нахождения ошибок.&lt;br /&gt;
&lt;br /&gt;
==Консоль отладки==&lt;br /&gt;
MTA включает консоль, которая показывает отладочные сообщения, выводимые функциями MTA и скриптами. Вы можете открыть ее введя ''debugscript x'' в консоли, где ''x'' уровень отладки:&lt;br /&gt;
* '''1:''' только ошибки&lt;br /&gt;
* '''2:''' ошибки и предупреждения&lt;br /&gt;
* '''3:''' ошибки, предупреждения и информационные сообщения&lt;br /&gt;
Так, введя ''debugscript 3'', вы будете видеть все сообщения, этот или 2 уровень рекомендуется в большинстве случаев. Рекомендуем держать debugscript включенным всё время, пока вы тестируете свой скрипт, это поможет вам обнаружить мелкие ошибки и исправить их.&lt;br /&gt;
&lt;br /&gt;
===Пример===&lt;br /&gt;
Этот участок кода содержит две ошибки:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;)&lt;br /&gt;
	outputChatbox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
При попытке запуска скрипта, содержащего этот участо кода, debugscript выведет что-то похожее на:&lt;br /&gt;
{{Debug info|Loading script failed: C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\myResource\script.lua:15: 'then' expected near ´outputChatbox'}}&lt;br /&gt;
Это означает, что скрипт не может быть обработан из-за синтаксической ошибки. Показывается путь к скрипту, поэтому вы можете увидеть, какому ресурсу он принадлежит, ('myResource' в данном случае) и, конечно же, имя скрипта. После имени файла показан номер строки и информация об ошибке. Теперь проблема легко решается, мы просто забыли написать ключевое слово 'then':&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatbox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Теперь скрипт загрузится нормально и не будет выводить ошибок пока не выполнится для игрока с ником 'Fedor'. Тогда debugscript выведет:&lt;br /&gt;
{{Debug error|C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\d\script.lua:15: attempt to call global 'outputChatbox' (a nil value)}}&lt;br /&gt;
Это значит, вызванная вами функция не существует, оно и понятно, ведь правильное название этой функции ''outputChatBox'' (с заглавной буквы ''B''):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatBox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Конечно, это просто пример, есть множество других сообщений и сценариев.&lt;br /&gt;
&lt;br /&gt;
==Debug logging==&lt;br /&gt;
{{translate}}&lt;br /&gt;
You can also turn debug message logging on by editing ''coreconfig.xml'' in your GTA\MTA folder. You should find the following tag:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace that with a tag specifying the file you want to log messages to (file path is relative from the GTA folder):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile&amp;gt;MTA\debugscript.log&amp;lt;/debugfile&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All debug messages will be appended to the specified file from now on. To turn logging off, replace that line with an empty tag again.&lt;br /&gt;
&lt;br /&gt;
==Debug strategies==&lt;br /&gt;
There are several strategies that support finding errors, apart from going through the code of course. Most of them include outputting debug messages, with differing information depending on the situtation.&lt;br /&gt;
&lt;br /&gt;
===Useful functions===&lt;br /&gt;
First of all some functions that may come in handy for debugging.&lt;br /&gt;
* [[outputDebugString]] or [[outputChatBox]] for outputting any information&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] on a variable to turn it into a string, for example when it contains a boolean value&lt;br /&gt;
* [[getElementType]] to check an MTA Element for its type&lt;br /&gt;
&lt;br /&gt;
===Add debugmessages to check ''if'', ''when'' or ''how often'' a section of code is executed===&lt;br /&gt;
A typical example would be verify whether an ''if''-section is executed or not. To do that, just add any message you will recognize later within the ''if''-section.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (variable1 == variable2) then&lt;br /&gt;
	outputDebugString(&amp;quot;entered if&amp;quot;)&lt;br /&gt;
	-- do anything&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another application would be to check when variable values are modified. First search for all occurences of the variable being edited and add a message just beside it.&lt;br /&gt;
&lt;br /&gt;
===Add debugmessages to check the ''value'' of a variable===&lt;br /&gt;
Let's say you want to create a marker, but it doesn't appear at the position you expect it to be. The first thing you might want to do is check if the [[createMarker]] function is executed. But while doing this, you can also check the values being used in the [[createMarker]] function in one run.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox(tostring(x)..&amp;quot; &amp;quot;..tostring(y)..&amp;quot; &amp;quot;..tostring(z))&lt;br /&gt;
createMarker(x,y,z)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This would output all three variables that are used as coordinates for the marker. Assuming you read those from a map file, you can now compare the debug output to the desired values. The [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] will ensure that the variables' value can be put together as a string, even if it's a boolean value for example.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Imagine you created a colshape (collision shape) somewhere and you want a player to stay 10 seconds in it, then perform some action.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When a player enters the colshape, debugscript outputs the following message:&lt;br /&gt;
{{Debug error|..[path]: attempt to index global 'colshapeTimer' (a nil value)}}&lt;br /&gt;
This means you tried to index a table that does not exist. In the example above, this is done when storing the timer id in the table. We need to add a check if the table exists and if not create it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we still get a warning when a player enters the colshape, waits for the message and leaves it again:&lt;br /&gt;
&lt;br /&gt;
{{Debug warning|[..]: Bad argument @ 'killTimer' Line: ..}}&lt;br /&gt;
&lt;br /&gt;
Except for that (we will talk about that later) everything seems to work fine. A player enters the colshape, the timer is started, if he stays the message occurs, if he leaves the timer is killed.&lt;br /&gt;
&lt;br /&gt;
===A more inconspicuous error===&lt;br /&gt;
But for some reason the message gets outputted twice when you stay in the colcircle while in a vehicle. Since it would appear some code is executed twice, we add debug messages to check this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a debug message&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit&amp;quot;)&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a debug message&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave&amp;quot;)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we notice that both handler functions get executed twice when we are in a vehicle, but only once when we are on-foot. It would appear the vehicle triggers the colshape as well. To confirm this theory, we check the ''player'' variable that '''should''' contain a player element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The debug messages tell us that one of the ''player'' variables is a player, the other one a vehicle element. Since we only want to react when a player enters the colshape, we add an ''if'' that will end the execution of the function if it's '''not''' an player element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now the script should work as desired, but will still output the warning mentioned above. This happens because the timer we try to kill when a player leaves the colshape will not exist anymore when it reached the 10 seconds and is executed. There are different ways to get rid of that warning (since you know that the timer might not exist anymore and you only want to kill it if it is there). One way would be to check if the timer referenced in the table really exists. To do this, we need a little help function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Which we will use when we kill the timer:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the complete working code would be:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
		killTimer(colshapeTimer[player])&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[en:Debugging]]&lt;br /&gt;
[[it:Guida al Debug]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Debugging&amp;diff=21217</id>
		<title>RU/Debugging</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Debugging&amp;diff=21217"/>
		<updated>2009-08-24T11:17:48Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;При написании скриптов вы обязательно столкнетесь с проблемами, которые не сможете решить немедленно. Цель этой страницы - показать вам основные способыы нахождения ошибок.&lt;br /&gt;
&lt;br /&gt;
==Консоль отладки==&lt;br /&gt;
MTA включает консоль, которая показывает отладочные сообщения, выводимые функциями MTA и скриптами. Вы можете открыть ее введя ''debugscript x'' в консоли, где ''x'' уровень отладки:&lt;br /&gt;
* '''1:''' только ошибки&lt;br /&gt;
* '''2:''' ошибки и предупреждения&lt;br /&gt;
* '''3:''' ошибки, предупреждения и информационные сообщения&lt;br /&gt;
Так, введя ''debugscript 3'', вы будете видеть все сообщения, этот или 2 уровень рекомендуется в большинстве случаев. Рекомендуем держать debugscript включенным всё время, пока вы тестируете свой скрипт, это поможет вам обнаружить мелкие ошибки и исправить их.&lt;br /&gt;
&lt;br /&gt;
===Пример===&lt;br /&gt;
Этот участок кода содержит две ошибки:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;)&lt;br /&gt;
	outputChatbox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
При попытке запуска скрипта, содержащего этот участо кода, debugscript выведет что-то похожее на:&lt;br /&gt;
{{Debug info|Loading script failed: C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\myResource\script.lua:15: 'then' expected near ´outputChatbox'}}&lt;br /&gt;
Это означает, что скрипт не может быть обработан из-за синтаксической ошибки. Показывается путь к скрипту, поэтому вы можете увидеть, какому ресурсу он принадлежит, ('myResource' в данном случае) и, конечно же, имя скрипта. После имени файла показан номер строки и информация об ошибке. Теперь проблема легко решается, мы просто забыли написать ключевое слово 'then':&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatbox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Теперь скрипт загрузится нормально и не будет выводить ошибок пока не выполнится для игрока с ником 'Fedor'. Тогда debugscript выведет:&lt;br /&gt;
{{Debug error|C:\&amp;lt;server path&amp;gt;\mods\deathmatch\resources\d\script.lua:15: attempt to call global 'outputChatbox' (a nil value)}}&lt;br /&gt;
Это значит, вызванная вами функция не существует, оно и понятно, ведь правильное название этой функции ''outputChatBox'' (с заглавной буквы ''B''):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (getClientName(player) == &amp;quot;Fedor&amp;quot;) then&lt;br /&gt;
	outputChatBox(&amp;quot;Hello Fedor&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Конечно, это просто пример, есть множество других сообщений и сценариев.&lt;br /&gt;
&lt;br /&gt;
==Debug logging==&lt;br /&gt;
{{translate}}&lt;br /&gt;
You can also turn debug message logging on by editing ''coreconfig.xml'' in your GTA\MTA folder. You should find the following tag:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace that with a tag specifying the file you want to log messages to (file path is relative from the GTA folder):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;debugfile&amp;gt;MTA\debugscript.log&amp;lt;/debugfile&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All debug messages will be appended to the specified file from now on. To turn logging off, replace that line with an empty tag again.&lt;br /&gt;
&lt;br /&gt;
==Debug strategies==&lt;br /&gt;
There are several strategies that support finding errors, apart from going through the code of course. Most of them include outputting debug messages, with differing information depending on the situtation.&lt;br /&gt;
&lt;br /&gt;
===Useful functions===&lt;br /&gt;
First of all some functions that may come in handy for debugging.&lt;br /&gt;
* [[outputDebugString]] or [[outputChatBox]] for outputting any information&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] on a variable to turn it into a string, for example when it contains a boolean value&lt;br /&gt;
* [[getElementType]] to check an MTA Element for its type&lt;br /&gt;
&lt;br /&gt;
===Add debugmessages to check ''if'', ''when'' or ''how often'' a section of code is executed===&lt;br /&gt;
A typical example would be verify whether an ''if''-section is executed or not. To do that, just add any message you will recognize later within the ''if''-section.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (variable1 == variable2) then&lt;br /&gt;
	outputDebugString(&amp;quot;entered if&amp;quot;)&lt;br /&gt;
	-- do anything&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another application would be to check when variable values are modified. First search for all occurences of the variable being edited and add a message just beside it.&lt;br /&gt;
&lt;br /&gt;
===Add debugmessages to check the ''value'' of a variable===&lt;br /&gt;
Let's say you want to create a marker, but it doesn't appear at the position you expect it to be. The first thing you might want to do is check if the [[createMarker]] function is executed. But while doing this, you can also check the values being used in the [[createMarker]] function in one run.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox(tostring(x)..&amp;quot; &amp;quot;..tostring(y)..&amp;quot; &amp;quot;..tostring(z))&lt;br /&gt;
createMarker(x,y,z)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This would output all three variables that are used as coordinates for the marker. Assuming you read those from a map file, you can now compare the debug output to the desired values. The [http://www.lua.org/manual/5.1/manual.html#pdf-tostring tostring()] will ensure that the variables' value can be put together as a string, even if it's a boolean value for example.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Imagine you created a colshape (collision shape) somewhere and you want a player to stay 10 seconds in it, then perform some action.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When a player enters the colshape, debugscript outputs the following message:&lt;br /&gt;
{{Debug error|..[path]: attempt to index global 'colshapeTimer' (a nil value)}}&lt;br /&gt;
This means you tried to index a table that does not exist. In the example above, this is done when storing the timer id in the table. We need to add a check if the table exists and if not create it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we still get a warning when a player enters the colshape, waits for the message and leaves it again:&lt;br /&gt;
&lt;br /&gt;
{{Debug warning|[..]: Bad argument @ 'killTimer' Line: ..}}&lt;br /&gt;
&lt;br /&gt;
Except for that (we will talk about that later) everything seems to work fine. A player enters the colshape, the timer is started, if he stays the message occurs, if he leaves the timer is killed.&lt;br /&gt;
&lt;br /&gt;
===A more inconspicuous error===&lt;br /&gt;
But for some reason the message gets outputted twice when you stay in the colcircle while in a vehicle. Since it would appear some code is executed twice, we add debug messages to check this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a debug message&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit&amp;quot;)&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a debug message&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave&amp;quot;)&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we notice that both handler functions get executed twice when we are in a vehicle, but only once when we are on-foot. It would appear the vehicle triggers the colshape as well. To confirm this theory, we check the ''player'' variable that '''should''' contain a player element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The debug messages tell us that one of the ''player'' variables is a player, the other one a vehicle element. Since we only want to react when a player enters the colshape, we add an ''if'' that will end the execution of the function if it's '''not''' an player element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now the script should work as desired, but will still output the warning mentioned above. This happens because the timer we try to kill when a player leaves the colshape will not exist anymore when it reached the 10 seconds and is executed. There are different ways to get rid of that warning (since you know that the timer might not exist anymore and you only want to kill it if it is there). One way would be to check if the timer referenced in the table really exists. To do this, we need a little help function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Which we will use when we kill the timer:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
	killTimer(colshapeTimer[player])&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the complete working code would be:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function colShapeHit(player)&lt;br /&gt;
	if (colshapeTimer == nil) then&lt;br /&gt;
		colshapeTimer = {}&lt;br /&gt;
	end&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeHit &amp;quot;..getElementType(player))&lt;br /&gt;
	-- set a timer to output a message (could as well execute another function)&lt;br /&gt;
	-- store the timer id in a table, using the player as index&lt;br /&gt;
	colshapeTimer[player] = setTimer(outputChatBox,10000,1,&amp;quot;The player stayed 10 seconds in the colshape!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeHit&amp;quot;,getRootElement(),colShapeHit)&lt;br /&gt;
&lt;br /&gt;
function colShapeLeave(player)&lt;br /&gt;
	-- add a check for the element type&lt;br /&gt;
	if (getElementType(player) ~= &amp;quot;player&amp;quot;) then return end&lt;br /&gt;
	-- add a debug message, with the element type&lt;br /&gt;
	outputDebugString(&amp;quot;colShapeLeave &amp;quot;..getElementType(player))&lt;br /&gt;
	-- kill the timer when the player leaves the colshape&lt;br /&gt;
	if (isTimer(colshapeTimer[player])) then&lt;br /&gt;
		killTimer(colshapeTimer[player])&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onColShapeLeave&amp;quot;,getRootElement(),colShapeLeave)&lt;br /&gt;
&lt;br /&gt;
function isTimer(timer)&lt;br /&gt;
	local timers = getTimers()&lt;br /&gt;
	for k,v in ipairs(timers) do&lt;br /&gt;
		if (v == timer) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[it:Guida al Debug]]&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resources&amp;diff=21216</id>
		<title>Resources</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resources&amp;diff=21216"/>
		<updated>2009-08-24T11:13:27Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources are a key part of MTA. A resource is essentially a folder or zip file that contains a collection of files - including essential script files, plus a ''meta'' file that describes how the resource should be loaded. A resource can be seen as being partly equivalent to a program running in an operating system - it can be started and stopped, and multiple resources can run at once. Its worth remember though, that unlike programs on an operating system, there is no multi-tasking between resources.&lt;br /&gt;
&lt;br /&gt;
==Terminology==&lt;br /&gt;
* '''Resource''' - A zip file or folder containing a meta.xml file and a number of resource items. These are placed in the ''mods/deathmatch/resources'' folder in the server directory.&lt;br /&gt;
* '''Resource item''' - A file contained within a resource, currently this can be a map, script, images etc.&lt;br /&gt;
&lt;br /&gt;
==The Meta File==&lt;br /&gt;
''See main article [[Meta.xml]] for details''&lt;br /&gt;
&lt;br /&gt;
The Meta file is the core of each the resource. It describes exactly what files in the resource should be used, and how. The following is an example that covers every option there is, your meta files can have as many or as few of these tags as you require:&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;info author=&amp;quot;eAi&amp;quot; description=&amp;quot;This is a basic CTF script&amp;quot; version=&amp;quot;4&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;radarblips&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;markermanagement&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;ctf.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;flag.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;ctf_client.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;model.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;quitbutton.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;killed.png&amp;quot;  /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;html src=&amp;quot;test.htm&amp;quot; default=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;html src=&amp;quot;logo.png&amp;quot; raw=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;export function=&amp;quot;multiply&amp;quot; http=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;export function=&amp;quot;getPlayerList&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;export function=&amp;quot;getElementOwner&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;config src=&amp;quot;vehicle-list.xml&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;markerconfig.xml&amp;quot; type=&amp;quot;server&amp;quot;  /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;map src=&amp;quot;somestuff.map&amp;quot; dimension=&amp;quot;99&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
While a CTF map may have a meta.xml that looks like:&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;include resource=&amp;quot;ctf&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;map src=&amp;quot;myuberl33tctfmap.map&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Tom&amp;quot; instructions=&amp;quot;this is uber l33t !!!!!1111111&amp;quot; type=&amp;quot;map&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;
Script/type, Config/type and File/type attributes specify if the script/resource should be sent to clients or not, and defaults to &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The include tag specifies other resources that should be started before this resoucre is started.  In other words, if your resource is dependent on another, you can include it so that the other resource is started first,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each resource has its own virtual machine (VM). This contains every script in the resource.  This means that variables are not shared with other resources.  The best way to communictate with other resources is by using the ''export'' tag and exporting a function.  This will enable other resources to fire this function using the [[call]] scripting function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Scripts sent to clients are started as soon as all the scripts have been downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Scripts are able to read and write to their own resource folder with functions such as [[xmlCreateFile]] and [[fileCreate]]. They can also read and write to other resources, but must have [[Access_Control_List|ACL]] access. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each resource can only be loaded once, the server will ensure this. If a resource is included more than once, the same instance will be used by each resource that includes it.&lt;br /&gt;
&lt;br /&gt;
==File storage==&lt;br /&gt;
Resource files can either be stored in a zip or a directory. This is located in:&lt;br /&gt;
&lt;br /&gt;
server/mods/deathmatch/resources/ (for MTASA clients)&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
mods/deathmatch/resources/ (for dedicated server installations)&lt;br /&gt;
&lt;br /&gt;
Each resource can have a zip file, a directory or both. In the case of both existing, the directory has precedence over the zip file, as such files can be placed in the directory to over-ride the files in the zip file. This allows directories to be used for testing and developing of maps/scripts while zip files used by end-users.&lt;br /&gt;
&lt;br /&gt;
==Script functions==&lt;br /&gt;
The resource system can be manipulated by script. As such, the following Serverside scripting functions are provided:&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
The following events are also provided:&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
[[it:Introduzione alle Risorse]]&lt;br /&gt;
[[ru:Resources]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IT/Introduzione_alle_Risorse&amp;diff=21215</id>
		<title>IT/Introduzione alle Risorse</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IT/Introduzione_alle_Risorse&amp;diff=21215"/>
		<updated>2009-08-24T11:12:18Z</updated>

		<summary type="html">&lt;p&gt;Divine: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{IT/MainP}}&lt;br /&gt;
[[Category:100%]]&lt;br /&gt;
[[Category:IT/Concetti di scripting]]&lt;br /&gt;
Le '''risorse''' sono una parte chiave di MTA. Essenzialmente una riosra è una cartella o un archivio zip contenente dei file - tra cui gli script essenziali ed un file ''meta'' che descrive al [[IT/Server|server]] come la risorsa dev'essere caricata. Una risorsa può essere vista come un programma in un sistema operativo - può essere avviata e fermata, e più risorse possono essere avviate in contemporanea.&lt;br /&gt;
&lt;br /&gt;
==Terminologia==&lt;br /&gt;
* '''Resource''': Un archivio zip o una cartella contenente un file [[IT/Meta.xml|meta.xml]] e un certo numero di altri file (''resource items''). Questa va posizionata nella cartella &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&amp;lt;SERVER&amp;gt;/mods/deathmatch/resources&amp;lt;/syntaxhighlight&amp;gt; di MTA.&lt;br /&gt;
* '''Resource item''': Un file contenuto in una risorsa, possono essere script LUA, mappe, immagini eccetera.&lt;br /&gt;
==Il File Meta==&lt;br /&gt;
''Guarda l'articolo principale [[Meta.xml]] per dettagli''&lt;br /&gt;
&lt;br /&gt;
Il file Meta è il nucleo di ogni risorsa. Descrive esattamente quali files verranno usati nella risorsa, e come. Il seguente è un esempio che comprende ogni opzione che il tuo meta file può contenere e che ti potrebbero servire:&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;info author=&amp;quot;eAi&amp;quot; description=&amp;quot;This is a basic CTF script&amp;quot; version=&amp;quot;4&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;radarblips&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;include resource=&amp;quot;markermanagement&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;script src=&amp;quot;ctf.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;flag.lua&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;ctf_client.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;file src=&amp;quot;model.dff&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;quitbutton.png&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;file src=&amp;quot;killed.png&amp;quot;  /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;html src=&amp;quot;test.htm&amp;quot; default=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;html src=&amp;quot;logo.png&amp;quot; raw=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;export function=&amp;quot;multiply&amp;quot; http=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;export function=&amp;quot;getPlayerList&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;export function=&amp;quot;getElementOwner&amp;quot; type=&amp;quot;client&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;config src=&amp;quot;vehicle-list.xml&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;config src=&amp;quot;markerconfig.xml&amp;quot; type=&amp;quot;server&amp;quot;  /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;map src=&amp;quot;somestuff.map&amp;quot; dimension=&amp;quot;99&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
While a CTF map may have a meta.xml that looks like:&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;include resource=&amp;quot;ctf&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;map src=&amp;quot;myuberl33tctfmap.map&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;info author=&amp;quot;Tom&amp;quot; instructions=&amp;quot;this is uber l33t !!!!!1111111&amp;quot; type=&amp;quot;map&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;
Gli attributi Script/type, Config/type e File/type specificato se lo script/la risorsa deve essere inviato al client o no, e il default è &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Il tag include specifica le altre risorse che devono essere eseguite prima che questa risorsa sia avviata. In altre parole, se la tua risorsa depende da un'altra, puoi includere quest'ultima cosicchè l'altra risorse sia avviata prima.&lt;br /&gt;
&lt;br /&gt;
Ogni riosrsa ha la propria macchina virtuale [ (VM ) Virtual Machine in inglese ]. Questa contiene ogni script nella risorsa. Questo significa che le variabili non sono condivise con altre risorse. Il miglior modo per comunicare con le altre risorse è usando il tag ''export'' ed esportando una funzione. Questo abiliterà le altre risorse a far partire questa funzione usando la funzione [[call]].&lt;br /&gt;
&lt;br /&gt;
Gli script inviati ai client sono avviati non appena tutti gli script sono stati scaricati.&lt;br /&gt;
&lt;br /&gt;
Gli script possono leggere e scrivere alle prorie cartelle delle risorse con funzioni come [[xmlCreateFile]] e [[fileCreate]].&lt;br /&gt;
Possono anche leggere e scrivere alle altre risorse, ma deve avere l'accesso da [[Access_Control_List[ACL]]].&lt;br /&gt;
&lt;br /&gt;
Ogni risorsa può essere solo caricata una volta, il server se ne accerterà. Se una risorsa è inclusa più di una volta, la stessa istanza sarà usata da ogni risorsa che la include.&lt;br /&gt;
&lt;br /&gt;
==Memorizzazione dei File==&lt;br /&gt;
Le risorse possono sia essere memorizzati in un archivio zip sia in una cartella. Queste si trovano qui:&lt;br /&gt;
&lt;br /&gt;
mods/deathmatch/resources/&lt;br /&gt;
&lt;br /&gt;
Ogni risorsa può avere un file zip, una cartella o entrambi. Nel caso che esistino entrambi, la cartella ha precedenza sul file zip, in quanto tale i file possono essere messi nella cartella per &amp;quot;annullare&amp;quot; i file nell'archivio zip. Questo permette alle cartelle di essere usato per testare e sviluppare mappe/script mentre i file zip quando sono pronti per essere usati.&lt;br /&gt;
&lt;br /&gt;
==Funzioni Script==&lt;br /&gt;
Il sistema delle risorce può essre amministrato da script. In quanto tale, sono disponibili le seguenti funzioni Serverside:&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
Anche i seguenti eventi sono disponibili:&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
[[en:Resources]]&lt;br /&gt;
[[ru:Resources]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21214</id>
		<title>Главная страница</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&amp;diff=21214"/>
		<updated>2009-08-24T11:10:29Z</updated>

		<summary type="html">&lt;p&gt;Divine: /* Начало */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background: #FFEEAA; padding: 5px; float:right; width: 30%;&amp;quot;&amp;gt;Последняя стабильная версия '''Multi Theft Auto: San Andreas Deathmatch''' - '''{{Current Version|full}}'''. Посетите [http://mtasa.com/dp.html download page] для скачивания.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Также вы можете получить актуальную [http://code.google.com/p/multitheftauto/wiki/NightlyBuilds?tm=2 версию для разработчиков], чтобы воспользоваться последними разработками.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Добро пожаловать в Wiki разработчиков Multi Theft Auto: San Andreas Deathmatch. &lt;br /&gt;
Здесь вы найдёте информацию по разработке игровых модов и карт для Multi Theft Auto.&lt;br /&gt;
&lt;br /&gt;
Есть много [[RU/How you can help|способов помочь нам]] сделать MTA лучше - создать карту, игровой режим, добавить описание функции скриптинга, написать пример кода, руководство, или просто играть в MTA и сообщать о найденых багах на форум.&lt;br /&gt;
&lt;br /&gt;
Пожалуйста, отнеситесь с пониманием к неизбежному появлению ошибок и помните, что многие вещи еще не сделаны до конца!&lt;br /&gt;
&lt;br /&gt;
Если у вас есть какие-либо вопросы по скриптингу, вы можете задать их в нашем [[IRC Channel |IRC канале]].&lt;br /&gt;
&lt;br /&gt;
'''Для редактирования статей вам понадобится [http://community.mtasa.com/ MTA Community] аккаунт.'''&lt;br /&gt;
Пожалуйста зарегистрируйтесь на сайте [http://community.mtasa.com MTA Community] и используйте полученные логин/пароль для авторизации здесь. Акты вандализма будут караться баном вашего аккаунта.&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;
====Начало====&lt;br /&gt;
&lt;br /&gt;
* [[RU/Deathmatch_Client_Manual|Руководство по клиентской части MTA]]&lt;br /&gt;
* [[RU/Deathmatch_Server_Manual|Руководство по серверной части MTA]]&lt;br /&gt;
* [[RU/Known_Issues_-_FAQ|Известные проблемы MTA:SA DM]]&lt;br /&gt;
* [[RU/Scripting Introduction|Введение в скриптинг]]&lt;br /&gt;
* [[RU/Introduction to Scripting the GUI | Введение в скриптинг GUI (графический пользовательский интерфейс)]]&lt;br /&gt;
* [[RU/Debugging| Руководство по отладке]] - Как найти ошибки в ваших скриптах.&lt;br /&gt;
* [[RU/MTA Classes | Классы MTA]] - Детальные описания всех специфических типов MTA&lt;br /&gt;
** [[RU/Element|MTA Элементы]] / [[RU/Element tree | Дерево элементов]]&lt;br /&gt;
* [[RU/Resources| Введение в ресурсы]]&lt;br /&gt;
** [[RU/Resource Web Access | Ресурс веб-доступа]]&lt;br /&gt;
** [[:Category:RU/Resource|Каталог ресурсов]]&lt;br /&gt;
** [[RU/Meta.xml | Meta.xml]]&lt;br /&gt;
* [[RU/Map_manager|Менеджер карт]]&lt;br /&gt;
* [[:Category:Modules|Модули]]&lt;br /&gt;
* [[RU/Introduction_to_Scripting_the_GUI|Введение в скриптинг пользовательских интерфейсов]]&lt;br /&gt;
* [[RU/Writing_Gamemodes| Создание игровых режимов]]&lt;br /&gt;
&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;
====Базы данных====&lt;br /&gt;
В этой секции описаны все возможности LUA, предоставляемые MTA и ресурсами.&lt;br /&gt;
* [[:Category:RU/Resource|Каталог ресурсов]] - Изучите это, чтобы писать хорошие скрипты&lt;br /&gt;
* [[RU/Client side scripts | Клиентские скрипты]]&lt;br /&gt;
&amp;lt;/div&amp;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;
====Основная помощь по Lua====&lt;br /&gt;
Страницы, которые могут вам помочь в изучении LUA&lt;br /&gt;
*[http://www.lua.ru/doc/ Руководство по программированию на Lua (русск.)] &lt;br /&gt;
*[http://www.lua.org/pil/index.html Руководство по программированию на LUA (англ.)]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory LUA Wiki (англ.)]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Базовое руководство по Lua от Nixstaller (англ.)]&lt;br /&gt;
*[http://gtascript.ru Портал по скриптингу. Строгая модерация.]&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;
====Редактор карт====&lt;br /&gt;
*[[RU/Resource:Editor|Руководство]]&lt;br /&gt;
*[[RU/Resource:Editor/EDF|Формат объявлений редактора]]&lt;br /&gt;
*[[RU/Resource:Editor/Plugins|Плагины]]&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;
====Описание====&lt;br /&gt;
* [[RU/Client Scripting Functions|Функции, выполняемые на стороне клиента]]&lt;br /&gt;
* [[RU/Client Scripting Events|События, генерируемые на стороне клиента]]&lt;br /&gt;
* [[RU/Server Scripting Functions|Функции, выполняемые на стороне сервера]]&lt;br /&gt;
* [[RU/Server Scripting Events|События, генерируемые на стороне сервера]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&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;
====Список идентификаторов====&lt;br /&gt;
*[[Animations|Анимации]]&lt;br /&gt;
*[[RU/Character Skins | Скины персонажей]]&lt;br /&gt;
*[[RU/CJ_Clothes|Одежда]]&lt;br /&gt;
*[[RU/Garage|Идентификаторы гаражей]]&lt;br /&gt;
*[[Interior IDs | Интерьеры]]&lt;br /&gt;
*[[RU/Projectiles|Снаряды]]&lt;br /&gt;
*[[RU/Radar_blips|Метки радара]]&lt;br /&gt;
*[[RU/Sounds|Звуки]]&lt;br /&gt;
*[[RU/Vehicle IDs|Транспорт]]&lt;br /&gt;
*[[RU/Vehicle_colors|Цвета транспорта]]&lt;br /&gt;
*[[RU/Vehicle Upgrades|Апгрейды транспорта]]&lt;br /&gt;
*[[RU/Weapons|Оружие]]&lt;br /&gt;
*[[RU/Weather|Погода]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
[[pl:Main Page]]&lt;br /&gt;
[[en:Main Page]]&lt;br /&gt;
[[es:Pagina Principal]]&lt;br /&gt;
[[it:Pagina principale]]&lt;br /&gt;
[[nl:Main Page]]&lt;br /&gt;
[[de:Hauptseite]]&lt;/div&gt;</summary>
		<author><name>Divine</name></author>
	</entry>
</feed>