<?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=The+Kid</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=The+Kid"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/The_Kid"/>
	<updated>2026-04-23T17:48:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40665</id>
		<title>User:The Kid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40665"/>
		<updated>2014-07-11T17:13:01Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Contributions =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scripts ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1129 Camera &amp;quot;Hack&amp;quot; Script]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1064 Real Time]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1604 Extra Health]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Maps ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=826| Zombotech Admin Base]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Useful Functions ===&lt;br /&gt;
&lt;br /&gt;
*[[GetAlivePlayers (Client)]]&lt;br /&gt;
&lt;br /&gt;
*[[Table.random]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
&lt;br /&gt;
*Translating Wiki to Spanish.&lt;br /&gt;
&lt;br /&gt;
*Giving a helping hand to some scripters on forum.&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40664</id>
		<title>User:The Kid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40664"/>
		<updated>2014-07-11T17:12:47Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Contributions =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scripts ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1129 Camera &amp;quot;Hack&amp;quot; Script]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1064 Real Time]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1604 Extra Health]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Maps ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=826| Zombotech Admin Base]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Useful Functions ===&lt;br /&gt;
&lt;br /&gt;
*[[GetAlivePlayers (Client)]]&lt;br /&gt;
&lt;br /&gt;
*[[Table.random]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
&lt;br /&gt;
*Translating Wiki to Spanish.&lt;br /&gt;
&lt;br /&gt;
*Giving a helping hand to some scripters on forum.&lt;br /&gt;
&lt;br /&gt;
= Projects =&lt;br /&gt;
&lt;br /&gt;
*[http://forum.mtasa.com/viewtopic.php?f=108&amp;amp;t=36600 Garry's Mod Map Editing System]&lt;br /&gt;
*[http://forum.mtasa.com/viewtopic.php?f=108&amp;amp;t=32083 Easy3DText]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40663</id>
		<title>User:The Kid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:The_Kid&amp;diff=40663"/>
		<updated>2014-07-11T17:12:26Z</updated>

		<summary type="html">&lt;p&gt;The Kid: /* Contributions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Story =&lt;br /&gt;
&lt;br /&gt;
I've started on MTA SA when I was free from the school, in my dear summer, on January. I was known as &amp;quot;BenHacksFriday13&amp;quot;. First I played a lot on zombie servers, like &amp;quot;Lithuanian Zombie Infestation&amp;quot; or &amp;quot;Gamenet 100% Zombie Mod&amp;quot;, etc... Then I played on Chile servers (because my country is Chile). I was bored, and changed my name to &amp;quot;Benxamix2&amp;quot;. Then I started to make resources. My first &amp;quot;resource&amp;quot; was a (noob) freeroam modification, made it on spanish and with less things... But I understood how Lua works, and I just started creating self-made resources. I knew &amp;quot;Maurize&amp;quot;, an old user of MTA, from one of the zombie servers: &amp;quot;Zombie Virus: Lost Squads&amp;quot;. He was with &amp;quot;Castillo14&amp;quot;. Then I started to script for him (for free). We made a good server... Until I had to leave MTA for a long time, because summer ended, and my (real) house didn't has internet due to several problems with an earthquake.&lt;br /&gt;
3 months later, the server changed a lot. During my offline time, I made a cellphone script. Anyway, I returned to MTA, with a lot of new knowledge about Lua. &amp;quot;Maurize&amp;quot; suggested me to change my nick to &amp;quot;Ben&amp;quot; for simpliest and cool admin nick (yes, I was admin of his server). Then, I knew &amp;quot;Castillo14&amp;quot;, he made some few scripts on the old &amp;quot;Maurize&amp;quot; server, like the PDA, a weapons shop, and a spawn system. Some time later, server got &amp;quot;bugged&amp;quot; (resources were getting reset), so we had to delete whole MTA server software, and re-install it. Then, I knew FFS Racing server. I was very happy with this server, it was really good. I knew spanish speakers, admins, etc... I suggested  JesseUnit to join us (Maurize and me). He accepted, and we made a new server (Jesse and me), called &amp;quot;Code: Black|Army VS Gangsters&amp;quot;. It was pretty cool, but JesseUnit didn't help more than with few mapping and tried to make nooby scripts. Finally, he &amp;quot;killed&amp;quot; the idea of the gamemode I made, so I left the project. And I stopped working for &amp;quot;Maurize&amp;quot;, and got &amp;quot;independence&amp;quot;. I created a clan: AD (Advanced Drivers). By 1 month, it had about 20 members. Some few members got out, but the clan got cool. I changed my nick to &amp;quot;The_Kid&amp;quot;. My clan had own server, own forum... And I left it too, finally. After that, I was working on a gamemode project, called &amp;quot;Minecraft Classic&amp;quot;. I changed my name to &amp;quot;Tony_Montana&amp;quot; after I saw &amp;quot;Scarface: The World is Yours&amp;quot;, but finally I returned to &amp;quot;The_Kid&amp;quot; because everyone knows me with that name huh. I was getting bored of playing so much races, all them were pretty cool and hard, lots of feats racing. But I just stopped playing at FFS Racing and finally, I decided to make my own Zombie server. Thanks to Delux Host, I got a free 32-Player slots server by 1 month. My server got popularity and was fighting against Zombie RPG to decide which was better. Whatever, my server was winning that. I created account-based inventory system, missions, lots of complex stuff... And the server crashed... The reason is because the server's PC had too few RAM memory, and was crashing every 5-6 hours. So my server got less popularity due to the hoster company, Delux Host... People began to leave it... And after a hard decission, I left MTA on March, 2011.&lt;br /&gt;
&lt;br /&gt;
But I came back recently on October, working on Garry's Mod Map Editing System (GMES), as a new &amp;quot;open-source&amp;quot; project. I know enough about Lua&lt;br /&gt;
&lt;br /&gt;
= Contributions =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scripts ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1129 Camera &amp;quot;Hack&amp;quot; Script]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1064 Real Time]&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=1604 Extra Health]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Maps ===&lt;br /&gt;
&lt;br /&gt;
*[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=826| Zombotech Admin Base]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Useful Functions ===&lt;br /&gt;
&lt;br /&gt;
*[[GetAlivePlayers (Client)]]&lt;br /&gt;
&lt;br /&gt;
*[[Table.random]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
&lt;br /&gt;
*Translating Wiki to Spanish.&lt;br /&gt;
&lt;br /&gt;
*Giving a helping hand to some scripters on forum.&lt;br /&gt;
&lt;br /&gt;
= Projects =&lt;br /&gt;
&lt;br /&gt;
*[http://forum.mtasa.com/viewtopic.php?f=108&amp;amp;t=36600 Garry's Mod Map Editing System]&lt;br /&gt;
*[http://forum.mtasa.com/viewtopic.php?f=108&amp;amp;t=32083 Easy3DText]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=40538</id>
		<title>ES/Página Principal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/P%C3%A1gina_Principal&amp;diff=40538"/>
		<updated>2014-07-04T21:25:04Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&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;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding: 10px; height: 140px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Mtalogo.png|left|100px]]'''&lt;br /&gt;
Bienvenid@ a la Wiki de Multi Theft Auto: San Andreas en español.''' Aquí puedes encontrar mucha información sobre el uso de Multi Theft Auto. &lt;br /&gt;
&lt;br /&gt;
Hay muchas [[ES/Cómo puedes ayudar|cosas que puedes hacer para ayudarnos]] a mejorar MTA - crea un mapa, un modo de juego, escribe códigos de ejemplo, tutoriales, traduce páginas del inglés al español, o simplemente juega y reporta los bugs que encuentres.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&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;
|width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:10px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Input-gaming.png‎]]&amp;lt;/div&amp;gt;&lt;br /&gt;
=== El Juego ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FFEEAA;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Go-down.png|link=http://mtasa.com/]] ''' [http://mtasa.com/ Descargar Multi Theft Auto: San Andreas {{Current Version|full}}]'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ES/Manual del Cliente|Manual del Cliente]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[ES/Cambios en la versión 1.3|Cambios de la versión 1.3]] [[Image:flag_es.png|En Español|20px]] (Traducción 80%)&lt;br /&gt;
* [[ES/Problemas_Conocidos_-_FAQ|Problemas Conocidos]] [[Image:flag_es.png|En Español|20px]] (Traducción: 10%)&lt;br /&gt;
* [[Upgrading_from_MTA:Race|Cambiando MTA:Race a MTA:SA 1.0.x]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[ES/Manual del Servidor|Manual del Servidor]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[Map_manager|El Resource &amp;quot;Map Manager&amp;quot;]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&lt;br /&gt;
====Editor de Mapas====&lt;br /&gt;
*[[ES/Resource:Editor|Manual del Editor]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
*[[Resource:Editor/EDF|EDF: Formato de Definiciones del Editor]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
*[[Resource:Editor/Plugins|Plugins para el Editor]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
*[[ES/Resource:Editor#Preguntas_Frecuentes|Preguntas Frecuentes]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
&lt;br /&gt;
====Bases de Datos====&lt;br /&gt;
* [[:Category:Resource|Catálogo de Resources]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[ES/Scripts de Cliente|Scripts de Cliente]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[Modules| Módulos]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-development.png‎‎‎]]&amp;lt;/div&amp;gt;&lt;br /&gt;
====Desarrollando Multi Theft Auto====&lt;br /&gt;
[[File:Go-down.png|link=http://nightly.mtasa.com/]] [http://nightly.mtasa.com/ Nightly builds]&lt;br /&gt;
* [[Compiling_MTASA|Compilando MTA:SA en Windows]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[Building_MTASA_Server_on_Mac_OS_X|Compilando MTA:SA en Mac OS X]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[Building_MTASA_Server_on_GNU_Linux|Compilando MTA:SA en GNU/Linux]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[Coding guidelines|Guías de Codificación]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [http://code.google.com/p/mtasa-blue Google Code SVN] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [http://bugs.mtasa.com/roadmap_page.php Seguimiento de Versiones] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [http://bugs.mtasa.com/ Central de Reportes de Bugs] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-office.png‎]]&amp;lt;/div&amp;gt;&lt;br /&gt;
===Wiki - Cómo puedes ayudar===&lt;br /&gt;
* Termina la documentación para [[:Category:Incomplete|funciones incompletas]].&lt;br /&gt;
* [[:Category:Needs_Example|Crea ejemplos para eventos y funciones]].&lt;br /&gt;
* Revisa y verifica [[:Category:Needs Checking|páginas que necesitan revisión]].&lt;br /&gt;
* Escribe tutoriales para ayudar a la gente.&lt;br /&gt;
* Traduce las páginas del wiki.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Internet-group-chat.png‎]]&amp;lt;/div&amp;gt;&lt;br /&gt;
=== Comunidad ===&lt;br /&gt;
* [http://forum.multitheftauto.com/ Foro] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
** [http://forum.multitheftauto.com/viewforum.php?f=122&amp;amp;sid=72be1c29dd00c4442f8112cc09818283 Sección en español] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [irc://irc.multitheftauto.com/mta Canal IRC] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [http://community.mtasa.com/ Comunidad MTA] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [http://www.youtube.com/user/MTAQA Canal de YouTube oficial] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:4px 8px 8px 8px; margin:10px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Osi symbol.png|75px|link=http://opensource.org/]]&lt;br /&gt;
'''Multi Theft Auto''' es un '''Proyecto de Código Abierto'''. &lt;br /&gt;
¡Todos podemos contribuir a mejorar Multi Theft Auto!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Accessories-text-editor.png]]&amp;lt;/div&amp;gt;&lt;br /&gt;
=== Scripting ===&lt;br /&gt;
* [[ES/Resources|Introducción a los Resources]]  [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
** [[Resource Web Access|Acceso Web con Resources]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
** [[Meta.xml|Sobre el archivo &amp;quot;meta.xml&amp;quot;]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
** [[:Category:Resource|Catálogo de Resources]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
** [[ES/ACL|Lista de Control del Acceso (ACL)]]  [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[ES/Introducción a Lua|Introducción a Lua]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
** [[ES/Introducción a la Programación de GUI|Introducción al GUI]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
** [[Debugging|Tutorial de Depuración]] [[Image:flag_us.png|En Inglés|20px]] - Encontrar errores en scripts.&lt;br /&gt;
** [http://forum.mtasa.com/viewtopic.php?f=145&amp;amp;t=70852 Tutoriales]&lt;br /&gt;
* [[ES/Useful_Functions| Funciones útiles]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[Writing_Gamemodes|Escribiendo Modos de Juego]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
====Ayuda General de Lua====&lt;br /&gt;
*[http://www.lua.org/manual/5.1/es/manual.html Manual de Referencia de Lua 5.1]  [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
*[http://www.lua.org/pil/index.html Manual Programando en Lua]  [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki]  [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Guía general de Lua de Nixstaller]  [[Image:flag_us.png|En Inglés|20px]]&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;
====Referencia====&lt;br /&gt;
* [[ES/Funciones de Cliente|Funciones de Cliente]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[Client Scripting Events|Eventos de Cliente]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
* [[ES/Funciones de Servidor|Funciones de Servidor]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
* [[Server Scripting Events|Eventos de Servidor]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Lista de funciones de módulos externos de servidor]] [[Image:flag_us.png|En Inglés]] --&amp;gt;&lt;br /&gt;
* [[ES/Clases MTA| Clases de MTA]] [[Image:flag_es.png|En Español|20px]]&lt;br /&gt;
**[[Element tree| Árbol de Elementos]] [[Image:flag_us.png|En Inglés|20px]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:System-file-manager.png]]&amp;lt;/div&amp;gt;&lt;br /&gt;
====[[Id|Lista de ID's]]====&lt;br /&gt;
*[[Animations|Animaciones]]&lt;br /&gt;
*[[ES/Skins de Personajes|Skins]]&lt;br /&gt;
*[[CJ_Clothes|Ropa]]&lt;br /&gt;
*[[Garage|Garajes]]&lt;br /&gt;
*[[Interior IDs|Interiores]]&lt;br /&gt;
*[[Projectiles|Proyectiles]]&lt;br /&gt;
*[[Radar Blips|Iconos de Radar]]&lt;br /&gt;
*[[Sounds|Sonidos]]&lt;br /&gt;
*[[Vehicle IDs|ID's de Vehículos]]&lt;br /&gt;
*[[Vehicle Colors|Colores de Vehículos]]&lt;br /&gt;
*[[Vehicle Upgrades|Mejoras de Vehículos]]&lt;br /&gt;
*[[Weapons|Armas]]&lt;br /&gt;
*[[ES/Climas|Climas]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px dotted #AAAAAA;padding:4px 8px 8px 8px;margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Equipo de Traducción====&lt;br /&gt;
* [mailto:zorrigas@gtagamingchile.com zorrigas@gtagamingchile.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:Brijido_XD@hotmail.com Brijido_XD@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:lambebasan@gmail.com Seben (The Kid)]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:matiuno@gmail.com matiuno@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:cesarcastillo4@gmail.com cesarcastillo4@gmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:alex_firexx@hotmail.com alex_firexx@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* [mailto:carlos_olivo@msn.com carlos_olivo@msn.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* AlexD&lt;br /&gt;
* Alexs_Steel[mailto:alexTO123@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
* Rockero [mailto:ac_dcrocker@hotmail.com ac_dcrocker@hotmail.com]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''¡NO ELIMINES CONTENIDO SIN AUTORIZACIÓN!'''&amp;lt;br&amp;gt; Tampoco uses modismos, usa el Castellano (Internacional), y trata de que al traducir todo quede tan claro como puedas, y la ortografía sea la mejor posible.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
{{Languages list|es}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28935</id>
		<title>ES/Resources</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28935"/>
		<updated>2012-01-07T01:57:01Z</updated>

		<summary type="html">&lt;p&gt;The Kid: /* Archivos almacenados */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Los '''resources''' son una parte clave de MTA. Un resource es básicamente una carpeta o archivo ''.zip'' (carpeta comprimida) que contiene una colección de archivos de script ''.lua'', además de un archivo ''meta'' que describe cómo el resource debe ser cargado. Un resource puede ser comparado con un programa que se ejecuta en un sistema operativo; que puede ser iniciado y detenido, y se pueden ejecutar varios de ellos al mismo tiempo. Es necesario recordar, sin embargo, que a diferencia de los programas en un sistema operativo, no hay multitarea entre los resources.&lt;br /&gt;
&lt;br /&gt;
== Terminología ==&lt;br /&gt;
&lt;br /&gt;
*'''Resource''' - Un archivo ''.zip'' o carpeta que contiene un archivo '''meta.xml''' y una serie de archivos. Estos se colocan en la carpeta de instalación de MTA San Andreas, en &amp;quot;MTA San Andreas/server/mods/deathmatch/resources/''.&lt;br /&gt;
&lt;br /&gt;
*'''Item de resource''' - Un archivo contenido dentro de un resource. Puede ser un mapa, un archivo de música, una imagen, etc.&lt;br /&gt;
&lt;br /&gt;
== El archivo meta.xml ==&lt;br /&gt;
&lt;br /&gt;
El archivo ''meta.xml'' es el núcleo de cada resource. En él se describe exactamente los archivos que el resource debe utilizar y cómo debe hacerlo. El siguiente es un ejemplo que cubre todas las opciones que hay, los archivos de metadatos puede tener tantas o tan pocas de estas etiquetas como tú quieras: &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;Ejemplo básico de 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;texture.txd&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;
&lt;br /&gt;
&lt;br /&gt;
Mientras que un mapa de CTF, por ejemplo, puede tener un meta.xml parecido a esto:&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;
Los atributos Script/type, Config/type y File/type especifican si el script/resource se debe enviar a los clientes o no, este valor por defecto es &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Las etiquetas incluyen especificaciones como resources que se deben iniciar antes de un resource se ha iniciado.  &lt;br /&gt;
Por ejemplo, si su resource tiene dependencia a otro, puede incluirlo en meta.xml para que el resource, al que el suyo depende, se inicie primero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cada resource tiene su propia máquina virtual (VM). Esta contiene todos los scripts en el resource. Esto significa que las variables no se comparten con otros resources. La mejor manera de comunicarte con otros resources es mediante las etiquetas de ''exportación'' y exportar una función. Esto permitira que otros resources puedan activar esa funcion con el comando de scripting [[call]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Los scripts se envían a los clientes para que se inicien tan pronto como hayan sido descargados.&lt;br /&gt;
&lt;br /&gt;
Los scripts son capaces que se pueden leer y escribir en su propia carpeta de resources con funciones tales como [[xmlCreateFile]] y [[fileCreate]]. También pueden leer y escribir dentro de otros resources, pero debe tener permisos de [[Access_Control_List | ACL]].&lt;br /&gt;
&lt;br /&gt;
Cada resource sólo puede ser cargado una vez, el servidor se asegura de esto. Si un resources se incluye más de una vez, la misma instancia será utilizada por cada resource que incluya.&lt;br /&gt;
&lt;br /&gt;
== Archivos almacenados ==&lt;br /&gt;
Los archivos ''Resources'' pueden ser almacenados en un .zip o un directorio. Se encuentran en:&lt;br /&gt;
&lt;br /&gt;
MTA San Andreas/server/mods/deathmatch/resources/&lt;br /&gt;
&lt;br /&gt;
Dentro de la carpeta &amp;quot;resources&amp;quot; hay un grupo de carpetas que usan paréntesis cerrados [ y ]. Éstas carpetas no son tomadas en cuenta como resources, sino que se aplican como &amp;quot;categorías&amp;quot;. Puedes crear subcarpetas que usen este sistema, sin ningún problema.&lt;br /&gt;
&lt;br /&gt;
Cada resource puede ser un archivo ZIP, un directorio o ambos. En el último caso, el directorio tiene preferencia sobre el archivo ZIP, así, los archivos pueden ser puestos en directorios para pasar por encima de los archivos dentro del archivo ZIP. Esto permite que los directorios sean usados para pruebas y desarrollo de mapas/scripts y los archivos ZIP sean usados por los usuarios finales.&lt;br /&gt;
&lt;br /&gt;
==Otras cosas a notar==&lt;br /&gt;
*Los nombres de los resources no pueden contener puntos, espacios o caracteres raros como &amp;quot;?&amp;quot;, &amp;quot;$&amp;quot; o &amp;quot;%&amp;quot;.&lt;br /&gt;
*Si el resource guarda algún archivo, éstos no deben aparecer en el archivo ''meta.xml''.&lt;br /&gt;
*Los archivos mostrados en ''meta.xml'' sólo deberían ser leídos por tus scripts. No los modifiques con [[xmlSaveFile]], [[FileSave]], etc.&lt;br /&gt;
*Cuando hagas la versión ZIP de tu resource, no incluyas archivos de guardado. Si tu resource los usa, que los cree cuando sea necesario. &lt;br /&gt;
&lt;br /&gt;
==Véase También==&lt;br /&gt;
===Funciones===&lt;br /&gt;
Actualmente, los resources pueden ser manipulados por medio de scripts. Más abajo se muestran las funciones correspondientes:&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
===Eventos===&lt;br /&gt;
Los siguientes eventos también están ligados a los resources:&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
[[en:Resources]]&lt;br /&gt;
[[it:Introduzione alle Risorse]]&lt;br /&gt;
[[ru:Resources]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Kzman&lt;br /&gt;
*F4ST3R&lt;br /&gt;
*Benxamix2/The Kid&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28934</id>
		<title>ES/Resources</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28934"/>
		<updated>2012-01-07T01:55:38Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Los '''resources''' son una parte clave de MTA. Un resource es básicamente una carpeta o archivo ''.zip'' (carpeta comprimida) que contiene una colección de archivos de script ''.lua'', además de un archivo ''meta'' que describe cómo el resource debe ser cargado. Un resource puede ser comparado con un programa que se ejecuta en un sistema operativo; que puede ser iniciado y detenido, y se pueden ejecutar varios de ellos al mismo tiempo. Es necesario recordar, sin embargo, que a diferencia de los programas en un sistema operativo, no hay multitarea entre los resources.&lt;br /&gt;
&lt;br /&gt;
== Terminología ==&lt;br /&gt;
&lt;br /&gt;
*'''Resource''' - Un archivo ''.zip'' o carpeta que contiene un archivo '''meta.xml''' y una serie de archivos. Estos se colocan en la carpeta de instalación de MTA San Andreas, en &amp;quot;MTA San Andreas/server/mods/deathmatch/resources/''.&lt;br /&gt;
&lt;br /&gt;
*'''Item de resource''' - Un archivo contenido dentro de un resource. Puede ser un mapa, un archivo de música, una imagen, etc.&lt;br /&gt;
&lt;br /&gt;
== El archivo meta.xml ==&lt;br /&gt;
&lt;br /&gt;
El archivo ''meta.xml'' es el núcleo de cada resource. En él se describe exactamente los archivos que el resource debe utilizar y cómo debe hacerlo. El siguiente es un ejemplo que cubre todas las opciones que hay, los archivos de metadatos puede tener tantas o tan pocas de estas etiquetas como tú quieras: &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;Ejemplo básico de 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;texture.txd&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;
&lt;br /&gt;
&lt;br /&gt;
Mientras que un mapa de CTF, por ejemplo, puede tener un meta.xml parecido a esto:&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;
Los atributos Script/type, Config/type y File/type especifican si el script/resource se debe enviar a los clientes o no, este valor por defecto es &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Las etiquetas incluyen especificaciones como resources que se deben iniciar antes de un resource se ha iniciado.  &lt;br /&gt;
Por ejemplo, si su resource tiene dependencia a otro, puede incluirlo en meta.xml para que el resource, al que el suyo depende, se inicie primero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cada resource tiene su propia máquina virtual (VM). Esta contiene todos los scripts en el resource. Esto significa que las variables no se comparten con otros resources. La mejor manera de comunicarte con otros resources es mediante las etiquetas de ''exportación'' y exportar una función. Esto permitira que otros resources puedan activar esa funcion con el comando de scripting [[call]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Los scripts se envían a los clientes para que se inicien tan pronto como hayan sido descargados.&lt;br /&gt;
&lt;br /&gt;
Los scripts son capaces que se pueden leer y escribir en su propia carpeta de resources con funciones tales como [[xmlCreateFile]] y [[fileCreate]]. También pueden leer y escribir dentro de otros resources, pero debe tener permisos de [[Access_Control_List | ACL]].&lt;br /&gt;
&lt;br /&gt;
Cada resource sólo puede ser cargado una vez, el servidor se asegura de esto. Si un resources se incluye más de una vez, la misma instancia será utilizada por cada resource que incluya.&lt;br /&gt;
&lt;br /&gt;
== Archivos almacenados ==&lt;br /&gt;
Los archivos ''Resources'' pueden ser almacenados en un .zip o un directorio. Se encuentran en:&lt;br /&gt;
&lt;br /&gt;
MTA San Andreas/server/mods/deathmatch/resources/&lt;br /&gt;
&lt;br /&gt;
Cada resource puede ser un archivo ZIP, un directorio o ambos. En el último caso, el directorio tiene preferencia sobre el archivo ZIP, así, los archivos pueden ser puestos en directorios para pasar por encima de los archivos dentro del archivo ZIP. Esto permite que los directorios sean usados para pruebas y desarrollo de mapas/scripts y los archivos ZIP sean usados por los usuarios finales.&lt;br /&gt;
&lt;br /&gt;
==Otras cosas a notar==&lt;br /&gt;
*Los nombres de los resources no pueden contener puntos, espacios o caracteres raros como &amp;quot;?&amp;quot;, &amp;quot;$&amp;quot; o &amp;quot;%&amp;quot;.&lt;br /&gt;
*Si el resource guarda algún archivo, éstos no deben aparecer en el archivo ''meta.xml''.&lt;br /&gt;
*Los archivos mostrados en ''meta.xml'' sólo deberían ser leídos por tus scripts. No los modifiques con [[xmlSaveFile]], [[FileSave]], etc.&lt;br /&gt;
*Cuando hagas la versión ZIP de tu resource, no incluyas archivos de guardado. Si tu resource los usa, que los cree cuando sea necesario. &lt;br /&gt;
&lt;br /&gt;
==Véase También==&lt;br /&gt;
===Funciones===&lt;br /&gt;
Actualmente, los resources pueden ser manipulados por medio de scripts. Más abajo se muestran las funciones correspondientes:&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
===Eventos===&lt;br /&gt;
Los siguientes eventos también están ligados a los resources:&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
[[en:Resources]]&lt;br /&gt;
[[it:Introduzione alle Risorse]]&lt;br /&gt;
[[ru:Resources]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Kzman&lt;br /&gt;
*F4ST3R&lt;br /&gt;
*Benxamix2/The Kid&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28671</id>
		<title>ES/Sobre el archivo &quot;meta.xml&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28671"/>
		<updated>2011-12-17T19:47:16Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El archivo ''meta.xml'' presenta un conjunto de datos, como el nombre del resource, los scripts para incluir en el resource, qué archivos enviar a los clientes, entre otras cosas. Es también el ámbito de aplicación de los ''elementos''. Está escrito en XML, que se basa en HTML y es el pariente de XHTML.&lt;br /&gt;
&lt;br /&gt;
==Tags==&lt;br /&gt;
XML es un formato de datos de texto que es ampliamente utilizado para la representación de datos. MTA utiliza un lenguaje basado en XML para describir los datos de los recursos mediante el uso de las etiquetas a continuación:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Información sobre este ''resource'', los posibles parámetros (que se pueden utilizar y leer con [[getResourceInfo]]) son:&lt;br /&gt;
** '''author:''' El autor del'' resource''.&lt;br /&gt;
** '''version:''' La versión del ''resource''.&lt;br /&gt;
** '''name:''' El nombre del ''resource''.&lt;br /&gt;
** '''description:''' La descripción sobre el ''resource''.&lt;br /&gt;
** '''type:''' El tipo de ''resource'' (puede ser &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; o &amp;quot;misc&amp;quot;).&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Script. Para para el resource, los atributos pueden ser:&lt;br /&gt;
** '''src:''' El nombre del archivo del script.&lt;br /&gt;
** '''type:''' El tipo de script: &amp;quot;client&amp;quot; (cliente) o &amp;quot;server&amp;quot; (servidor).&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' El mapa para gamemode, los posibles parámetros son:&lt;br /&gt;
**'''src:''' Nombre del archivo '''.map''' (la ruta puede ser, por ejemplo, &amp;quot;mapas/mi-mapa-freeroam.map&amp;quot;).&lt;br /&gt;
**'''dimension:''' Dimensión en la que el mapa será cargado (opcional).&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' Un archivo de cliente. Generalmente se usan imágenes, archivos '''.txd''', '''.col''', '''.dff''' o archivos '''.xml'''. Estos se cargan por el cliente cuando el archivo está iniciado.&lt;br /&gt;
**'''src:''' Nombre del archivo client-side (La ruta puede ser, por ejemplo, &amp;quot;imagenes/imagen.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Para incluir ''resources'' extras, que se carguen con el '''resource''' que modificas.&lt;br /&gt;
**'''resource:''' El nombre del ''resource''.&lt;br /&gt;
**'''minversion:''' Versión mínima que el ''resource'' debe tener (opcional).&lt;br /&gt;
**'''maxversion:''' Versión máxima que el ''resource'' debe tener (opcional).&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Configuración del archivo '''.xml''' con el que se puede acceder a los parámetros del resource:&lt;br /&gt;
**'''src:''' La ruta del archivo de configuración.&lt;br /&gt;
**'''type:''' El tipo de archivo de configuración. Puede ser &amp;quot;client&amp;quot; o &amp;quot;server&amp;quot;.&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' Las funciones de esta exportacion para el resource, para otros recursos se pueden utilizar con [[call]]&lt;br /&gt;
**'''function:''' El nombre de la función.&lt;br /&gt;
**'''type''' El lado de la exportación (cliente o servidor). Los valores válidos son &amp;quot;server&amp;quot; y &amp;quot;client&amp;quot;.&lt;br /&gt;
**'''http:''' Si la función se usa a través de HTTP. Se puede usar &amp;quot;true&amp;quot; o &amp;quot;false&amp;quot;.&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' La ruta del archivo.&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;
*'''&amp;lt;min_mta_version /&amp;gt;''' Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is &amp;quot;{{Current Version|full}}&amp;quot;).&lt;br /&gt;
**'''client:''' The minimum client version&lt;br /&gt;
**'''server:''' The minimum server version&lt;br /&gt;
&lt;br /&gt;
== Ejemplo ==&lt;br /&gt;
Heres an example of a meta file using some of the tags mentioned:&lt;br /&gt;
{{#tag:code |&lt;br /&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;
    &amp;lt;min_mta_version client=&amp;quot;{{Current Version|full}}&amp;quot; server=&amp;quot;{{Current Version|full}}&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;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;&lt;br /&gt;
|lang=&amp;quot;xml&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Benxamix2/The Kid&lt;br /&gt;
*pekio123&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Meta.xml]]&lt;br /&gt;
[[en:meta.xml]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28670</id>
		<title>ES/Sobre el archivo &quot;meta.xml&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28670"/>
		<updated>2011-12-17T19:45:52Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El archivo ''meta.xml'' presenta un conjunto de datos, como el nombre del resource, los scripts para incluir en el resource, qué archivos enviar a los clientes, entre otras cosas. Es también el ámbito de aplicación de los ''elementos''. Está escrito en XML, que se basa en HTML y es el pariente de XHTML.&lt;br /&gt;
&lt;br /&gt;
==Tags==&lt;br /&gt;
XML es un formato de datos de texto que es ampliamente utilizado para la representación de datos. MTA utiliza un lenguaje basado en XML para describir los datos de los recursos mediante el uso de las etiquetas a continuación:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Información sobre este ''resource'', los posibles parámetros (que se pueden utilizar y leer con [[getResourceInfo]]) son:&lt;br /&gt;
** '''author:''' El autor del'' resource''.&lt;br /&gt;
** '''version:''' La versión del ''resource''.&lt;br /&gt;
** '''name:''' El nombre del ''resource''.&lt;br /&gt;
** '''description:''' La descripción sobre el ''resource''.&lt;br /&gt;
** '''type:''' El tipo de ''resource'' (puede ser &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; o &amp;quot;misc&amp;quot;).&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Script. Para para el resource, los atributos pueden ser:&lt;br /&gt;
** '''src:''' El nombre del archivo del script.&lt;br /&gt;
** '''type:''' El tipo de script: &amp;quot;client&amp;quot; (cliente) o &amp;quot;server&amp;quot; (servidor).&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' El mapa para gamemode, los posibles parámetros son:&lt;br /&gt;
**'''src:''' Nombre del archivo '''.map''' (la ruta puede ser, por ejemplo, &amp;quot;mapas/mi-mapa-freeroam.map&amp;quot;).&lt;br /&gt;
**'''dimension:''' Dimensión en la que el mapa será cargado (opcional).&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' Un archivo de cliente. Generalmente se usan imágenes, archivos '''.txd''', '''.col''', '''.dff''' o archivos '''.xml'''. Estos se cargan por el cliente cuando el archivo está iniciado.&lt;br /&gt;
**'''src:''' Nombre del archivo client-side (La ruta puede ser, por ejemplo, &amp;quot;imagenes/imagen.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Para incluir ''resources'' extras, que se carguen con el '''resource''' que modificas.&lt;br /&gt;
**'''resource:''' El nombre del ''resource''.&lt;br /&gt;
**'''minversion:''' Versión mínima que el ''resource'' debe tener (opcional).&lt;br /&gt;
**'''maxversion:''' Versión máxima que el ''resource'' debe tener (opcional).&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Configuración del archivo '''.xml''' con el que se puede acceder a los parámetros del resource:&lt;br /&gt;
**'''src:''' La ruta del archivo de configuración.&lt;br /&gt;
**'''type:''' El tipo de archivo de configuración. Puede ser &amp;quot;client&amp;quot; o &amp;quot;server&amp;quot;.&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' Las funciones de esta exportacion para el resource, para otros recursos se pueden utilizar con [[call]]&lt;br /&gt;
**'''function:''' El nombre de la función.&lt;br /&gt;
**'''type''' El lado de la exportación (cliente o servidor). Los valores válidos son &amp;quot;server&amp;quot; y &amp;quot;client&amp;quot;.&lt;br /&gt;
**'''http:''' Si la función se usa a través de HTTP. Se puede usar &amp;quot;true&amp;quot; o &amp;quot;false&amp;quot;.&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' La ruta del archivo.&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;
*'''&amp;lt;min_mta_version /&amp;gt;''' Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is &amp;quot;{{Current Version|full}}&amp;quot;).&lt;br /&gt;
**'''client:''' The minimum client version&lt;br /&gt;
**'''server:''' The minimum server version&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;
{{#tag:code |&lt;br /&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;
    &amp;lt;min_mta_version client=&amp;quot;{{Current Version|full}}&amp;quot; server=&amp;quot;{{Current Version|full}}&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;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;&lt;br /&gt;
|lang=&amp;quot;xml&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Benxamix2/The Kid&lt;br /&gt;
*pekio123&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Meta.xml]]&lt;br /&gt;
[[en:meta.xml]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28669</id>
		<title>ES/Sobre el archivo &quot;meta.xml&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28669"/>
		<updated>2011-12-17T19:44:35Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El archivo ''meta.xml'' presenta un conjunto de datos, como el nombre del resource, los scripts para incluir en el resource, qué archivos enviar a los clientes, entre otras cosas. Es también el ámbito de aplicación de los ''elementos''. Está escrito en XML, que se basa en HTML y es el pariente de XHTML.&lt;br /&gt;
&lt;br /&gt;
=Tags=&lt;br /&gt;
XML es un formato de datos de texto que es ampliamente utilizado para la representación de datos. MTA utiliza un lenguaje basado en XML para describir los datos de los recursos mediante el uso de las etiquetas a continuación:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Información sobre este ''resource'', los posibles parámetros (que se pueden utilizar y leer con [[getResourceInfo]]) son:&lt;br /&gt;
** '''author:''' El autor del'' resource''.&lt;br /&gt;
** '''version:''' La versión del ''resource''.&lt;br /&gt;
** '''name:''' El nombre del ''resource''.&lt;br /&gt;
** '''description:''' La descripción sobre el ''resource''.&lt;br /&gt;
** '''type:''' El tipo de ''resource'' (puede ser &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; o &amp;quot;misc&amp;quot;).&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Script. Para para el resource, los atributos pueden ser:&lt;br /&gt;
** '''src:''' El nombre del archivo del script.&lt;br /&gt;
** '''type:''' El tipo de script: &amp;quot;client&amp;quot; (cliente) o &amp;quot;server&amp;quot; (servidor).&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' El mapa para gamemode, los posibles parámetros son:&lt;br /&gt;
**'''src:''' Nombre del archivo '''.map''' (la ruta puede ser, por ejemplo, &amp;quot;mapas/mi-mapa-freeroam.map&amp;quot;).&lt;br /&gt;
**'''dimension:''' Dimensión en la que el mapa será cargado (opcional).&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' Un archivo de cliente. Generalmente se usan imágenes, archivos '''.txd''', '''.col''', '''.dff''' o archivos '''.xml'''. Estos se cargan por el cliente cuando el archivo está iniciado.&lt;br /&gt;
**'''src:''' Nombre del archivo client-side (La ruta puede ser, por ejemplo, &amp;quot;imagenes/imagen.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Para incluir ''resources'' extras, que se carguen con el '''resource''' que modificas.&lt;br /&gt;
**'''resource:''' El nombre del ''resource''.&lt;br /&gt;
**'''minversion:''' Versión mínima que el ''resource'' debe tener (opcional).&lt;br /&gt;
**'''maxversion:''' Versión máxima que el ''resource'' debe tener (opcional).&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Configuración del archivo '''.xml''' con el que se puede acceder a los parámetros del resource:&lt;br /&gt;
**'''src:''' La ruta del archivo de configuración.&lt;br /&gt;
**'''type:''' El tipo de archivo de configuración. Puede ser &amp;quot;client&amp;quot; o &amp;quot;server&amp;quot;.&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' Las funciones de esta exportacion para el resource, para otros recursos se pueden utilizar con [[call]]&lt;br /&gt;
**'''function:''' El nombre de la función.&lt;br /&gt;
**'''type''' El lado de la exportación (cliente o servidor). Los valores válidos son &amp;quot;server&amp;quot; y &amp;quot;client&amp;quot;.&lt;br /&gt;
**'''http:''' Si la función se usa a través de HTTP. Se puede usar &amp;quot;true&amp;quot; o &amp;quot;false&amp;quot;.&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' La ruta del archivo.&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;
*'''&amp;lt;min_mta_version /&amp;gt;''' Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is &amp;quot;{{Current Version|full}}&amp;quot;).&lt;br /&gt;
**'''client:''' The minimum client version&lt;br /&gt;
**'''server:''' The minimum server version&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;
{{#tag:code |&lt;br /&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;
    &amp;lt;min_mta_version client=&amp;quot;{{Current Version|full}}&amp;quot; server=&amp;quot;{{Current Version|full}}&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;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;&lt;br /&gt;
|lang=&amp;quot;xml&amp;quot;}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Meta.xml]]&lt;br /&gt;
[[en:meta.xml]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28668</id>
		<title>ES/Sobre el archivo &quot;meta.xml&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28668"/>
		<updated>2011-12-17T19:43:49Z</updated>

		<summary type="html">&lt;p&gt;The Kid: /* Tags */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El archivo ''meta.xml'' presenta un conjunto de datos, como el nombre del resource, los scripts para incluir en el resource, qué archivos enviar a los clientes, entre otras cosas. Es también el ámbito de aplicación de los ''elementos''. Está escrito en XML, que se basa en HTML y es el pariente de XHTML.&lt;br /&gt;
&lt;br /&gt;
=Tags=&lt;br /&gt;
XML es un formato de datos de texto que es ampliamente utilizado para la representación de datos. MTA utiliza un lenguaje basado en XML para describir los datos de los recursos mediante el uso de las etiquetas a continuación:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Información sobre este ''resource'', los posibles parámetros (que se pueden utilizar y leer con [[getResourceInfo]]) son:&lt;br /&gt;
** '''author:''' El autor del'' resource''.&lt;br /&gt;
** '''version:''' La versión del ''resource''.&lt;br /&gt;
** '''name:''' El nombre del ''resource''.&lt;br /&gt;
** '''description:''' La descripción sobre el ''resource''.&lt;br /&gt;
** '''type:''' El tipo de ''resource'' (puede ser &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; o &amp;quot;misc&amp;quot;).&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Script. Para para el resource, los atributos pueden ser:&lt;br /&gt;
** '''src:''' El nombre del archivo del script.&lt;br /&gt;
** '''type:''' El tipo de script: &amp;quot;client&amp;quot; (cliente) o &amp;quot;server&amp;quot; (servidor).&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' El mapa para gamemode, los posibles parámetros son:&lt;br /&gt;
**'''src:''' Nombre del archivo '''.map''' (la ruta puede ser, por ejemplo, &amp;quot;mapas/mi-mapa-freeroam.map&amp;quot;).&lt;br /&gt;
**'''dimension:''' Dimensión en la que el mapa será cargado (opcional).&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' Un archivo de cliente. Generalmente se usan imágenes, archivos '''.txd''', '''.col''', '''.dff''' o archivos '''.xml'''. Estos se cargan por el cliente cuando el archivo está iniciado.&lt;br /&gt;
**'''src:''' Nombre del archivo client-side (La ruta puede ser, por ejemplo, &amp;quot;imagenes/imagen.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Para incluir ''resources'' extras, que se carguen con el '''resource''' que modificas.&lt;br /&gt;
**'''resource:''' El nombre del ''resource''.&lt;br /&gt;
**'''minversion:''' Versión mínima que el ''resource'' debe tener (opcional).&lt;br /&gt;
**'''maxversion:''' Versión máxima que el ''resource'' debe tener (opcional).&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Configuración del archivo '''.xml''' con el que se puede acceder a los parámetros del resource:&lt;br /&gt;
**'''src:''' La ruta del archivo de configuración.&lt;br /&gt;
**'''type:''' El tipo de archivo de configuración. Puede ser &amp;quot;client&amp;quot; o &amp;quot;server&amp;quot;.&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' Las funciones de esta exportacion para el resource, para otros recursos se pueden utilizar con [[call]]&lt;br /&gt;
**'''function:''' El nombre de la función.&lt;br /&gt;
**'''type''' El lado de la exportación (cliente o servidor). Los valores válidos son &amp;quot;server&amp;quot; y &amp;quot;client&amp;quot;.&lt;br /&gt;
**'''http:''' Si la función se usa a través de HTTP. Se puede usar &amp;quot;true&amp;quot; o &amp;quot;false&amp;quot;.&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' La ruta del archivo.&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;
*'''&amp;lt;min_mta_version /&amp;gt;''' Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is &amp;quot;{{Current Version|full}}&amp;quot;).&lt;br /&gt;
**'''client:''' The minimum client version&lt;br /&gt;
**'''server:''' The minimum server version&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;
{{#tag:code |&lt;br /&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;
    &amp;lt;min_mta_version client=&amp;quot;{{Current Version|full}}&amp;quot; server=&amp;quot;{{Current Version|full}}&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;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;&lt;br /&gt;
|lang=&amp;quot;xml&amp;quot;}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Meta.xml]]&lt;br /&gt;
[[es:Sobre el archivo &amp;quot;meta.xml&amp;quot;]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28667</id>
		<title>ES/Sobre el archivo &quot;meta.xml&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Sobre_el_archivo_%22meta.xml%22&amp;diff=28667"/>
		<updated>2011-12-17T19:43:07Z</updated>

		<summary type="html">&lt;p&gt;The Kid: MUCHOS errores ortográficos corregidos.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El archivo ''meta.xml'' presenta un conjunto de datos, como el nombre del resource, los scripts para incluir en el resource, qué archivos enviar a los clientes, entre otras cosas. Es también el ámbito de aplicación de los ''elementos''. Está escrito en XML, que se basa en HTML y es el pariente de XHTML.&lt;br /&gt;
&lt;br /&gt;
=Tags=&lt;br /&gt;
XML es un formato de datos de texto que es ampliamente utilizado para la representación de datos. MTA utiliza un lenguaje basado en XML para describir los datos de los recursos mediante el uso de las etiquetas a continuación:&lt;br /&gt;
&lt;br /&gt;
*'''&amp;lt;info /&amp;gt;''' Información sobre este recource, posibles parámetros incluidos (Los parámetros arbitrarios se pueden utilizar y leer con [[getResourceInfo]]):&lt;br /&gt;
** '''author:''' El autor del'' resource''.&lt;br /&gt;
** '''version:''' La versión del ''resource''.&lt;br /&gt;
** '''name:''' El nombre del ''resource''.&lt;br /&gt;
** '''description:''' La descripción sobre el ''resource''.&lt;br /&gt;
** '''type:''' El tipo de ''resource'' (puede ser &amp;quot;gamemode&amp;quot;, &amp;quot;script&amp;quot;, &amp;quot;map&amp;quot; o &amp;quot;misc&amp;quot;).&lt;br /&gt;
*'''&amp;lt;script /&amp;gt;''' Script. Para para el resource, los atributos pueden ser:&lt;br /&gt;
** '''src:''' El nombre del archivo del script.&lt;br /&gt;
** '''type:''' El tipo de script: &amp;quot;client&amp;quot; (cliente) o &amp;quot;server&amp;quot; (servidor).&lt;br /&gt;
*'''&amp;lt;map /&amp;gt;''' El mapa para gamemode, los posibles parámetros son:&lt;br /&gt;
**'''src:''' Nombre del archivo '''.map''' (la ruta puede ser, por ejemplo, &amp;quot;mapas/mi-mapa-freeroam.map&amp;quot;).&lt;br /&gt;
**'''dimension:''' Dimensión en la que el mapa será cargado (opcional).&lt;br /&gt;
*'''&amp;lt;file /&amp;gt;''' Un archivo de cliente. Generalmente se usan imágenes, archivos '''.txd''', '''.col''', '''.dff''' o archivos '''.xml'''. Estos se cargan por el cliente cuando el archivo está iniciado.&lt;br /&gt;
**'''src:''' Nombre del archivo client-side (La ruta puede ser, por ejemplo, &amp;quot;imagenes/imagen.png&amp;quot;)&lt;br /&gt;
*'''&amp;lt;include /&amp;gt;''' Para incluir ''resources'' extras, que se carguen con el '''resource''' que modificas.&lt;br /&gt;
**'''resource:''' El nombre del ''resource''.&lt;br /&gt;
**'''minversion:''' Versión mínima que el ''resource'' debe tener (opcional).&lt;br /&gt;
**'''maxversion:''' Versión máxima que el ''resource'' debe tener (opcional).&lt;br /&gt;
*'''&amp;lt;config /&amp;gt;''' Configuración del archivo '''.xml''' con el que se puede acceder a los parámetros del resource:&lt;br /&gt;
**'''src:''' La ruta del archivo de configuración.&lt;br /&gt;
**'''type:''' El tipo de archivo de configuración. Puede ser &amp;quot;client&amp;quot; o &amp;quot;server&amp;quot;.&lt;br /&gt;
*'''&amp;lt;export /&amp;gt;''' Las funciones de esta exportacion para el resource, para otros recursos se pueden utilizar con [[call]]&lt;br /&gt;
**'''function:''' El nombre de la función.&lt;br /&gt;
**'''type''' El lado de la exportación (cliente o servidor). Los valores válidos son &amp;quot;server&amp;quot; y &amp;quot;client&amp;quot;.&lt;br /&gt;
**'''http:''' Si la función se usa a través de HTTP. Se puede usar &amp;quot;true&amp;quot; o &amp;quot;false&amp;quot;.&lt;br /&gt;
*'''&amp;lt;html /&amp;gt;'''&lt;br /&gt;
**'''src:''' La ruta del archivo.&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;
*'''&amp;lt;min_mta_version /&amp;gt;''' Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is &amp;quot;{{Current Version|full}}&amp;quot;).&lt;br /&gt;
**'''client:''' The minimum client version&lt;br /&gt;
**'''server:''' The minimum server version&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;
{{#tag:code |&lt;br /&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;
    &amp;lt;min_mta_version client=&amp;quot;{{Current Version|full}}&amp;quot; server=&amp;quot;{{Current Version|full}}&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;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;&lt;br /&gt;
|lang=&amp;quot;xml&amp;quot;}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[ru:Meta.xml]]&lt;br /&gt;
[[es:Sobre el archivo &amp;quot;meta.xml&amp;quot;]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28588</id>
		<title>ES/Resources</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Resources&amp;diff=28588"/>
		<updated>2011-12-11T19:45:55Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Los '''resources''' son una parte clave de MTA. Un resource es básicamente una carpeta o archivo ''.zip'' (carpeta comprimida) que contiene una colección de archivos de script ''.lua'', además de un archivo ''meta'' que describe cómo el resource debe ser cargado. Un resource puede ser comparado con un programa que se ejecuta en un sistema operativo; que puede ser iniciado y detenido, y se pueden ejecutar varios de ellos al mismo tiempo. Es necesario recordar, sin embargo, que a diferencia de los programas en un sistema operativo, no hay multitarea entre los resources.&lt;br /&gt;
&lt;br /&gt;
== Terminología ==&lt;br /&gt;
&lt;br /&gt;
*'''Resource''' - Un archivo ''.zip'' o carpeta que contiene un archivo '''meta.xml''' y una serie de archivos. Estos se colocan en la carpeta de instalación de MTA San Andreas, en &amp;quot;MTA San Andreas/server/mods/deathmatch/resources/''.&lt;br /&gt;
&lt;br /&gt;
*'''Item de resource''' - Un archivo contenido dentro de un resource. Puede ser un mapa, un archivo de música, una imagen, etc.&lt;br /&gt;
&lt;br /&gt;
== El archivo meta.xml ==&lt;br /&gt;
&lt;br /&gt;
El archivo ''meta.xml'' es el núcleo de cada resource. En él se describe exactamente los archivos que el resource debe utilizar y cómo debe hacerlo. El siguiente es un ejemplo que cubre todas las opciones que hay, los archivos de metadatos puede tener tantas o tan pocas de estas etiquetas como tú quieras: &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;Ejemplo básico de 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;texture.txd&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;
&lt;br /&gt;
&lt;br /&gt;
Mientras que un mapa de CTF, por ejemplo, puede tener un meta.xml parecido a esto:&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;
Los atributos Script/type, Config/type y File/type especifican si el script/resource se debe enviar a los clientes o no, este valor por defecto es &amp;quot;server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Las etiquetas incluyen especificaciones como resources que se deben iniciar antes de un resource se ha iniciado.  &lt;br /&gt;
Por ejemplo, si su resource tiene dependencia a otro, puede incluirlo en meta.xml para que el resource, al que el suyo depende, se inicie primero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cada resource tiene su propia máquina virtual (VM). Esta contiene todos los scripts en el resource. Esto significa que las variables no se comparten con otros resources. La mejor manera de comunicarte con otros resources es mediante las etiquetas de ''exportación'' y exportar una función. Esto permitira que otros resources puedan activar esa funcion con el comando de scripting [[call]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Los scripts se envían a los clientes para que se inicien tan pronto como hayan sido descargados.&lt;br /&gt;
&lt;br /&gt;
Los scripts son capaces que se pueden leer y escribir en su propia carpeta de resources con funciones tales como [[xmlCreateFile]] y [[fileCreate]]. También pueden leer y escribir dentro de otros resources, pero debe tener permisos de [[Access_Control_List | ACL]].&lt;br /&gt;
&lt;br /&gt;
Cada resource sólo puede ser cargado una vez, el servidor se asegura de esto. Si un resources se incluye más de una vez, la misma instancia será utilizada por cada resource que incluya.&lt;br /&gt;
&lt;br /&gt;
== Archivos almacenados ==&lt;br /&gt;
Los archivos ''Resources'' pueden ser almacenados en un .zip o un directorio. Se encuentran en:&lt;br /&gt;
&lt;br /&gt;
server/mods/deathmatch/resources/ (Si tienes el server instalado con el cliente)&lt;br /&gt;
&lt;br /&gt;
o&lt;br /&gt;
&lt;br /&gt;
mods/deathmatch/resources/ (para server dedicados)&lt;br /&gt;
&lt;br /&gt;
Cada resource puede ser un archivo ZIP, un directorio o ambos. En el último caso, el directorio tiene preferencia sobre el archivo ZIP, así, los archivos pueden ser puestos en directorios para pasar por encima de los archivos dentro del archivo ZIP. Esto permite que los directorios sean usados para pruebas y desarrollo de mapas/scripts y los archivos ZIP sean usados por los usuarios finales.&lt;br /&gt;
&lt;br /&gt;
==Otras cosas a notar==&lt;br /&gt;
*Los nombres de los resources no pueden contener puntos, espacios o caracteres raros como &amp;quot;?&amp;quot;, &amp;quot;$&amp;quot; o &amp;quot;%&amp;quot;.&lt;br /&gt;
*Si el resource guarda algún archivo, éstos no deben aparecer en el archivo ''meta.xml''.&lt;br /&gt;
*Los archivos mostrados en ''meta.xml'' sólo deberían ser leídos por tus scripts. No los modifiques con [[xmlSaveFile]], [[FileSave]], etc.&lt;br /&gt;
*Cuando hagas la versión ZIP de tu resource, no incluyas archivos de guardado. Si tu resource los usa, que los cree cuando sea necesario. &lt;br /&gt;
&lt;br /&gt;
==Véase También==&lt;br /&gt;
===Funciones===&lt;br /&gt;
Actualmente, los resources pueden ser manipulados por medio de scripts. Más abajo se muestran las funciones correspondientes:&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
===Eventos===&lt;br /&gt;
Los siguientes eventos también están ligados a los resources:&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
[[en:Resources]]&lt;br /&gt;
[[it:Introduzione alle Risorse]]&lt;br /&gt;
[[ru:Resources]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Traductores==&lt;br /&gt;
&lt;br /&gt;
*Kzman&lt;br /&gt;
*F4ST3R&lt;br /&gt;
*Benxamix2/The Kid&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiComboBoxGetSelected&amp;diff=28557</id>
		<title>GuiComboBoxGetSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiComboBoxGetSelected&amp;diff=28557"/>
		<updated>2011-12-05T19:48:05Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Example}}&lt;br /&gt;
{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the index of the selected combobox item.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiComboBoxGetSelected ( element comboBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''comboBox:''' the combobox you want to know the selected item index of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the index of the selected item if the specified combobox is valid and has a selected item, ''-1'' if no item is selected, ''false'' or ''nil'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Todo..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=28029</id>
		<title>SetElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=28029"/>
		<updated>2011-11-17T18:56:33Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementCollidableWith ( element theElement, element withElement, bool enabled ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to change&lt;br /&gt;
*'''withElement:''' The other [[element]] you wish the first entity to collide with&lt;br /&gt;
*'''enabled:''' A boolean to indicate whether elements should be able to collide with eachother (''true'') or not (''false'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions were set succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client element functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:X86dev&amp;diff=27925</id>
		<title>User talk:X86dev</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:X86dev&amp;diff=27925"/>
		<updated>2011-11-16T19:11:05Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cmon x86, not all scripters knew that about setGameSpeed. Why to delete it? Was it specified somewhere else or what? --[[User:The Kid|Benxamix2]] 20:10, 16 November 2011 (CET)&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:X86dev&amp;diff=27924</id>
		<title>User talk:X86dev</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:X86dev&amp;diff=27924"/>
		<updated>2011-11-16T19:10:18Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Created page with &amp;quot;Cmon x86, not all scripters knew that about setGameSpeed. Why to delete it? --~~~~&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cmon x86, not all scripters knew that about setGameSpeed. Why to delete it? --[[User:The Kid|Benxamix2]] 20:10, 16 November 2011 (CET)&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=27923</id>
		<title>SpawnPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SpawnPlayer&amp;diff=27923"/>
		<updated>2011-11-16T19:09:24Z</updated>

		<summary type="html">&lt;p&gt;The Kid: grammar fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function spawns the player at an arbitary point on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Note:''' [[setCameraTarget]] must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a [[fadeCamera]] after.''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The player you want to spawn.&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the player at.&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the player at.&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the player at.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''rotation:''' rotation of the player on spawn.&lt;br /&gt;
*'''skinID:''' player's skin on spawn.&lt;br /&gt;
*'''interior:''' interior the player will spawn into.&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the player should be in.&lt;br /&gt;
*'''theTeam:''' the team the player will join.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was spawned successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example spawns all the players in the middle of the game map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all the players&lt;br /&gt;
players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
-- Go through every player&lt;br /&gt;
for playerKey, playerValue in ipairs(players) do&lt;br /&gt;
	-- Spawn them at the desired coordinates&lt;br /&gt;
	spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example spawns a player when he logs in.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
spawnTeam = createTeam (&amp;quot;Teamname&amp;quot;, 255, 0, 0) -- Create team to spawn.&lt;br /&gt;
function spawnOnLogin (prevA, curA, autoLogin)&lt;br /&gt;
	outputChatBox (&amp;quot;Welcome to ...&amp;quot;, source, 255, 0, 0, false)&lt;br /&gt;
	spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) -- spawns player with random skin&lt;br /&gt;
	fadeCamera (source, true)&lt;br /&gt;
	setCameraTarget (source, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, getRootElement(), spawnOnLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;br /&gt;
[[ru:spawnPlayer]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=27921</id>
		<title>SetGameSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=27921"/>
		<updated>2011-11-16T17:23:02Z</updated>

		<summary type="html">&lt;p&gt;The Kid: About client and server properties.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Note box|Server function set all players' game speed. Client sets local player's game speed only.}}&lt;br /&gt;
This function sets the game speed to the given value.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setGameSpeed ( float value )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''value''': The float value of the game speed (Range 0 - 10)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the gamespeed was set successfully, ''false'' otherwise.&lt;br /&gt;
The normal game speed is '1'.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;setgamespeed&amp;quot;,&lt;br /&gt;
  function(sourcePlayer, command, value)&lt;br /&gt;
    setGameSpeed(tonumber(value))&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;setgamespeed&amp;quot;,&lt;br /&gt;
  function(command, value)&lt;br /&gt;
    setGameSpeed(tonumber(value))&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:setGameSpeed]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Winky-&amp;diff=27918</id>
		<title>User:Winky-</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Winky-&amp;diff=27918"/>
		<updated>2011-11-16T16:43:09Z</updated>

		<summary type="html">&lt;p&gt;The Kid: About Winky&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Great wiki contributor.&lt;br /&gt;
He created the new wiki concept, added icons to the templates, and updated many wiki pages to fit their categories.&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/setAccountData&amp;diff=27882</id>
		<title>ES/setAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/setAccountData&amp;diff=27882"/>
		<updated>2011-11-15T20:35:00Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es fuertemente recomendado que uses como estándar ''módulo.clave'' para nombrar a tus claves, como se muestra en el ejemplo más abajo. Esto previene contradicciones con otros scripts.}}&lt;br /&gt;
Esta función establece un string para ser guardado en una cuenta. Esta información puede ser obtenida luego, usando la función [[getAccountData]]. Los datos guardados en las cuentas (''account data'') son persistentes a través de sesiones de usuario y cambios de mapa, a menos que los usuarios estén logueados en una cuenta de invitado (''guest account''). Incluso si están logueados en la cuenta de invitado, los datos de cuenta pueden ser útiles como una vía para guardar referencia de tu propio sistema de cuentas, sin embargo sus usos son equivalentes al de [[setElementData]] en el jugador.&lt;br /&gt;
&lt;br /&gt;
==Sintax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountData ( account laCuenta, string clave, string valor )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta desde la cual deseas recobrar los datos.&lt;br /&gt;
*'''clave:''' La clave en la que deseas almacenar la información.&lt;br /&gt;
*'''valor:''' El valor que desees guardar.&lt;br /&gt;
&lt;br /&gt;
===Regresa===&lt;br /&gt;
Regresa ''true'' si los datos fueron establecidos en la cuenta, ''false'' si se especificaron argumentos inválidos.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
Para un tipo de juego roleplay pirata, la cantidad de dinero que un jugador posee se mantendrá almacenada guardándola en su cuenta. Se debe notar que el codigo usa ''piraterpg.money'' como la clave en lugar de sólo &amp;quot;money&amp;quot;, dado que el jugador podría estar participando en otros tipos de juego que también guardan su cantidad de dinero en las cuentas. Si ambos tipos de juego usaran &amp;quot;money&amp;quot; como la clave, cada uno estaría sobre-escribiendo en los datos del otro.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- cuando un jugador sale, se guarda su cantidad de dinero actual en un dato de cuenta&lt;br /&gt;
      local cuentaDelJugador = getPlayerAccount ( source )&lt;br /&gt;
      if ( cuentaDelJugador ) and not isGuestAccount ( cuentaDelJugador ) then -- si el jugador estaba logueado&lt;br /&gt;
            local dineroDelJugador = getPlayerMoney ( source ) -- obtener el dinero del jugador&lt;br /&gt;
            setAccountData ( cuentaDelJugador, &amp;quot;piraterpg.money&amp;quot;, dineroDelJugador ) -- guardar la cantidad en la cuenta del jugador&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function onPlayerLogin (_, cuentaDelJugador )&lt;br /&gt;
      -- cuando un jugador logea, se obtiene la cantidad su dinero desde los datos de cuenta y se le da al jugador el dinero&lt;br /&gt;
      if ( cuentaDelJugador ) then&lt;br /&gt;
            local dineroDelJugador = getAccountData ( cuentaDelJugador, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- hay que estar seguros si de hecho habia un valor guardado bajo esta clave (verificar si dineroDelJugador no es false).&lt;br /&gt;
            -- Esto seria por ejemplo si es la primera vez que el jugador juega este tipo de juego&lt;br /&gt;
            if ( dineroDelJugador ) then&lt;br /&gt;
                  setPlayerMoney ( source, dineroDelJugador )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement ( ), onPlayerLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vease tambien==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountData&amp;diff=27881</id>
		<title>SetAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountData&amp;diff=27881"/>
		<updated>2011-11-15T20:31:16Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|It is strongly recommended that you use the standard ''module.key'' naming for your keys, as shown in the example below. This prevents collisions between different scripts.}}&lt;br /&gt;
This function sets a string to be stored in an account. This can then be retrieved using [[getAccountData]]. Data stored as account data is persistent across user's sessions and maps, unless they are logged into a guest account. Even if logged into a guest account, account data can be useful as a way to store a reference to your own account system, though it's persistence is equivalent to that of using [[setElementData]] on the player's element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountData ( account theAccount, string key, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to retrieve the data from.&lt;br /&gt;
*'''key:''' The key under which you wish to store the data&lt;br /&gt;
*'''value:''' The value you wish to store. '''NOTE:''' you cannot store tables as values, but you can use [[toJSON]] strings.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account data was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in&lt;br /&gt;
            local playermoney = getPlayerMoney ( source ) -- get the player money&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney ) -- save it in his account&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function onPlayerLogin (_, playeraccount )&lt;br /&gt;
      -- when a player logins, retrieve his money amount from his account data and set it&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement ( ), onPlayerLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:setAccountData]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountData&amp;diff=27880</id>
		<title>SetAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountData&amp;diff=27880"/>
		<updated>2011-11-15T20:29:59Z</updated>

		<summary type="html">&lt;p&gt;The Kid: added helpful note&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|It is strongly recommended that you use the standard ''module.key'' naming for your keys, as shown in the example below. This prevents collisions between different scripts.}}&lt;br /&gt;
This function sets a string to be stored in an account. This can then be retrieved using [[getAccountData]]. Data stored as account data is persistent across user's sessions and maps, unless they are logged into a guest account. Even if logged into a guest account, account data can be useful as a way to store a reference to your own account system, though it's persistence is equivalent to that of using [[setElementData]] on the player's element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountData ( account theAccount, string key, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to retrieve the data from.&lt;br /&gt;
*'''key:''' The key under which you wish to store the data&lt;br /&gt;
*'''value:''' The value you wish to store.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' &amp;quot;value&amp;quot; cannot be a table.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account data was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in&lt;br /&gt;
            local playermoney = getPlayerMoney ( source ) -- get the player money&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney ) -- save it in his account&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function onPlayerLogin (_, playeraccount )&lt;br /&gt;
      -- when a player logins, retrieve his money amount from his account data and set it&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement ( ), onPlayerLogin)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:setAccountData]]&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:The_Kid&amp;diff=27878</id>
		<title>User talk:The Kid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:The_Kid&amp;diff=27878"/>
		<updated>2011-11-15T12:42:59Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Don't add section blocks if it's the same side as the function (i.e. look at my redos). --[[User:X86dev|X86dev]] 11:55, 15 November 2011 (CET)&lt;br /&gt;
&lt;br /&gt;
So if a function is server-only or client-only, no section blocks? Okay --[[User:The Kid|Benxamix2]] 13:42, 15 November 2011 (CET)&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:The_Kid&amp;diff=27877</id>
		<title>User talk:The Kid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:The_Kid&amp;diff=27877"/>
		<updated>2011-11-15T12:42:37Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Don't add section blocks if it's the same side as the function (i.e. look at my redos). --[[User:X86dev|X86dev]] 11:55, 15 November 2011 (CET)&lt;br /&gt;
&lt;br /&gt;
So if a function is server-only, no section blocks? Okay --[[User:The Kid|Benxamix2]] 13:42, 15 November 2011 (CET)&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerVehicleExit&amp;diff=27863</id>
		<title>OnClientPlayerVehicleExit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerVehicleExit&amp;diff=27863"/>
		<updated>2011-11-15T00:04:11Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Needs Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a player exits a vehicle.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
vehicle theVehicle, int seat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''theVehicle:''' the vehicle that the player exited.&lt;br /&gt;
*'''seat:''' the number of the seat that the player was sitting on.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the [[player]] that exited the vehicle.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerVehicleEnter&amp;diff=27862</id>
		<title>OnClientPlayerVehicleEnter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerVehicleEnter&amp;diff=27862"/>
		<updated>2011-11-15T00:03:40Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Needs Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This event is fired when a player enters a vehicle.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
vehicle theVehicle, int seat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''vehicle:''' the vehicle that the player entered&lt;br /&gt;
*'''seat:''' the seat that the player now is on. Driver's seat = 0, higher numbers are passenger seats.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the player that entered the vehicle.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GivePlayerMoney&amp;diff=27861</id>
		<title>GivePlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GivePlayerMoney&amp;diff=27861"/>
		<updated>2011-11-14T23:34:47Z</updated>

		<summary type="html">&lt;p&gt;The Kid: fixed grammar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function adds money to a [[player]]'s current money amount.  To set absolute values, [[setPlayerMoney]] can be used.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' Using this function client side (not recommended) will not change a players money server side.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool givePlayerMoney ( player thePlayer, int amount )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' the [[player]] you are giving the money to.&lt;br /&gt;
*'''amount:''' a positive integer number specifying the amount of money to give to the player.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool givePlayerMoney ( int amount )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''amount:''' a positive integer number specifying the amount of money to give to the player.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Example 1 - Client and Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example gives a player money when using &amp;quot;givecash&amp;quot; command.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleGiveCash ( thePlayer, command, amount ) --when the givecash command is called&lt;br /&gt;
	givePlayerMoney ( thePlayer, amount ) --give the player money according to the amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;givecash&amp;quot;, consoleGiveCash  ) --add a handler function for the command &amp;quot;givecash&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Example 2 - Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example gives a player one thousand dollars, as a reward for killing another player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function rewardOnWasted ( ammo, killer, killerweapon, bodypart )&lt;br /&gt;
	--if there is a killer, and that killer is not the same person as whoever died&lt;br /&gt;
	if ( killer ) and ( killer ~= source ) then &lt;br /&gt;
		givePlayerMoney ( killer, 1000 ) --reward the killer with 1000 cash.&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), rewardOnWasted ) --attach the rewardOnWasted function to the relevant event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GivePlayerMoney&amp;diff=27860</id>
		<title>GivePlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GivePlayerMoney&amp;diff=27860"/>
		<updated>2011-11-14T23:34:18Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function adds money to a [[player]]'s current money amount.  To set absolute values, [[setPlayerMoney]] can be used.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' Using this function client side (not recommended) will not change a players money server side.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool givePlayerMoney ( player thePlayer, int amount )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' the [[player]] to whom you are giving the money.&lt;br /&gt;
*'''amount:''' a positive integer number specifying the amount of money to give to the player.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool givePlayerMoney ( int amount )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''amount:''' a positive integer number specifying the amount of money to give to the player.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Example 1 - Client and Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example gives a player money when using &amp;quot;givecash&amp;quot; command.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleGiveCash ( thePlayer, command, amount ) --when the givecash command is called&lt;br /&gt;
	givePlayerMoney ( thePlayer, amount ) --give the player money according to the amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;givecash&amp;quot;, consoleGiveCash  ) --add a handler function for the command &amp;quot;givecash&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Example 2 - Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example gives a player one thousand dollars, as a reward for killing another player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function rewardOnWasted ( ammo, killer, killerweapon, bodypart )&lt;br /&gt;
	--if there is a killer, and that killer is not the same person as whoever died&lt;br /&gt;
	if ( killer ) and ( killer ~= source ) then &lt;br /&gt;
		givePlayerMoney ( killer, 1000 ) --reward the killer with 1000 cash.&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), rewardOnWasted ) --attach the rewardOnWasted function to the relevant event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=27859</id>
		<title>SetPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=27859"/>
		<updated>2011-11-14T23:29:20Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets a player's money to a certain value, regardless of current player money. It should be noted that setting negative values does not work and in fact gives the player large amounts of money.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Using this function client side (not recommended) will not change a players money server side.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerMoney ( player thePlayer, int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' Which player to set the money of.&lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the player will have.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerMoney ( int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the local player will have.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
'''Example 1:''' This example sets the player's money to the desired amount when he types &amp;quot;setcash&amp;quot; in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCash ( thePlayer, command, amount )       -- when the setcash function is called&lt;br /&gt;
    setPlayerMoney ( thePlayer, tonumber(amount) )    -- change player's money to the desired amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setcash&amp;quot;, setCash )           -- add a command handler for setcash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Example 2:''' This gives all players the amount of 1337 money when &amp;quot;leet&amp;quot; is typed in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function leetmoney()&lt;br /&gt;
	setPlayerMoney( getRootElement(), 1337 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;leet&amp;quot;, leetmoney)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=27858</id>
		<title>SetPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerMoney&amp;diff=27858"/>
		<updated>2011-11-14T23:29:08Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Minor update; grammar.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Sets a player's money to a certain value, regardless of current player money. It should be noted that setting negative values does not work and in fact gives the player large amounts of money.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Using this function client side (not recommended) will not change a players money server side.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerMoney ( player thePlayer, int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' Which player to set the money of&lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the player will have.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerMoney ( int amount ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''amount:''' A whole integer specifying the new amount of money the local player will have.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was added, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
'''Example 1:''' This example sets the player's money to the desired amount when he types &amp;quot;setcash&amp;quot; in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCash ( thePlayer, command, amount )       -- when the setcash function is called&lt;br /&gt;
    setPlayerMoney ( thePlayer, tonumber(amount) )    -- change player's money to the desired amount&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setcash&amp;quot;, setCash )           -- add a command handler for setcash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Example 2:''' This gives all players the amount of 1337 money when &amp;quot;leet&amp;quot; is typed in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function leetmoney()&lt;br /&gt;
	setPlayerMoney( getRootElement(), 1337 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;leet&amp;quot;, leetmoney)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerMoney&amp;diff=27857</id>
		<title>GetPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerMoney&amp;diff=27857"/>
		<updated>2011-11-14T23:28:31Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Fixed client syntax, added sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Returns the amount of money a player currently has.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int/bool getPlayerMoney ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish the retrieve the amount of money from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer with the amount of money the specified player has, ''false'' if the player is invalid.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayerMoney ( )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer with the amount of money the local player has.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
When a player types '/checkMoney' this example retrieves the player's money and outputs a message according to the value.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMoney(thePlayer, command)&lt;br /&gt;
	local money = getPlayerMoney(thePlayer)                                -- get the amount of money from the player who entered the command&lt;br /&gt;
	if (money &amp;gt; 1000) then                                                 -- if money is more than 1000&lt;br /&gt;
		outputChatBox(&amp;quot;You are rich: &amp;quot; .. tostring(money), thePlayer)  -- output this message together with the money&lt;br /&gt;
 	else&lt;br /&gt;
		outputChatBox(&amp;quot;Poor guy...&amp;quot;, thePlayer)                        -- and else, output this message&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;checkMoney&amp;quot;, checkMoney)                                    -- add the console command&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerCount&amp;diff=27856</id>
		<title>GetPlayerCount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerCount&amp;diff=27856"/>
		<updated>2011-11-14T22:29:31Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Syntax section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the number of players currently connected to the server.&lt;br /&gt;
&lt;br /&gt;
Note: #getElementsByType(&amp;quot;player&amp;quot;) works the same as this function but also works client side unlike this function.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerCount ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the number of players connected to the server as an [[int]].&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example displays a chat message with the number of players connected to the server when a player joins or quits.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function playerCount ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;There are now &amp;quot; .. getPlayerCount() .. &amp;quot; players on this server!&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), playerCount )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), playerCount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerAnnounceValue&amp;diff=27855</id>
		<title>GetPlayerAnnounceValue</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerAnnounceValue&amp;diff=27855"/>
		<updated>2011-11-14T22:29:05Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Syntax section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function retrieves a players ASE announce value under a certain key.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getPlayerAnnounceValue ( element thePlayer, string key )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' This is the [[Player]] whos value you want to retrieve.&lt;br /&gt;
*'''key:''' The name of the key.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This function returns a ''string'' containing the requested value if a valid key was specified or ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example adds a command named &amp;quot;getscore&amp;quot; which outputs a players &amp;quot;score&amp;quot; value to his chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function getScore ( playerSource, cmdName )&lt;br /&gt;
    local scoreValue = getPlayerAnnounceValue ( playerSource, &amp;quot;score&amp;quot; )&lt;br /&gt;
    if ( scoreValue ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;Your score: &amp;quot;..scoreValue, playerSource )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;getscore&amp;quot;, getScore )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27854</id>
		<title>GetDeadPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27854"/>
		<updated>2011-11-14T22:28:49Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Syntax section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all currently dead players on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getDeadPlayers()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the dead players.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example prints the list of dead players to the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the dead players&lt;br /&gt;
  deadPlayers = getDeadPlayers ()&lt;br /&gt;
  if ( deadPlayers ) then -- if we got the table&lt;br /&gt;
    deadPlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in deadPlayers do&lt;br /&gt;
      -- add their name to the list&lt;br /&gt;
      if ( deadPlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
        deadPlayersList = getPlayerName ( playerValue )&lt;br /&gt;
      else&lt;br /&gt;
        deadPlayersList = deadPlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Dead Players: &amp;quot; .. deadPlayersList )    &lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAlivePlayers&amp;diff=27853</id>
		<title>GetAlivePlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAlivePlayers&amp;diff=27853"/>
		<updated>2011-11-14T22:28:33Z</updated>

		<summary type="html">&lt;p&gt;The Kid: quickfix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all the alive players on the server. Opposite function of [[getDeadPlayers]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAlivePlayers ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the alive players.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example prints a list of all alive players in a &amp;quot;name, name2, name3&amp;quot; format.  If no players are alive then it outputs &amp;quot;none&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the alive players&lt;br /&gt;
alivePlayers = getAlivePlayers ()&lt;br /&gt;
if ( alivePlayers ) then -- if we got the table&lt;br /&gt;
    alivePlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in ipairs(alivePlayers) do&lt;br /&gt;
        -- add their name to the list&lt;br /&gt;
        if ( alivePlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
            alivePlayersList = getPlayerName ( playerValue )&lt;br /&gt;
        else&lt;br /&gt;
            alivePlayersList = alivePlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Alive Players: &amp;quot; .. alivePlayersList )    &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAlivePlayers&amp;diff=27852</id>
		<title>GetAlivePlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAlivePlayers&amp;diff=27852"/>
		<updated>2011-11-14T22:28:17Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Syntax section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all the alive players on the server. Opposite function of [[getDeadPlayers]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAlivePlayers ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the alive players.&lt;br /&gt;
&amp;lt;/section&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example prints a list of all alive players in a &amp;quot;name, name2, name3&amp;quot; format.  If no players are alive then it outputs &amp;quot;none&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the alive players&lt;br /&gt;
alivePlayers = getAlivePlayers ()&lt;br /&gt;
if ( alivePlayers ) then -- if we got the table&lt;br /&gt;
    alivePlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in ipairs(alivePlayers) do&lt;br /&gt;
        -- add their name to the list&lt;br /&gt;
        if ( alivePlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
            alivePlayersList = getPlayerName ( playerValue )&lt;br /&gt;
        else&lt;br /&gt;
            alivePlayersList = alivePlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Alive Players: &amp;quot; .. alivePlayersList )    &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=27851</id>
		<title>ForcePlayerMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=27851"/>
		<updated>2011-11-14T22:27:58Z</updated>

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

		<summary type="html">&lt;p&gt;The Kid: Example section using.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the number of players currently connected to the server.&lt;br /&gt;
&lt;br /&gt;
Note: #getElementsByType(&amp;quot;player&amp;quot;) works the same as this function but also works client side unlike this function.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerCount ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the number of players connected to the server as an [[int]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example displays a chat message with the number of players connected to the server when a player joins or quits.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function playerCount ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;There are now &amp;quot; .. getPlayerCount() .. &amp;quot; players on this server!&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), playerCount )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), playerCount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerBlurLevel&amp;diff=27849</id>
		<title>GetPlayerBlurLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerBlurLevel&amp;diff=27849"/>
		<updated>2011-11-14T22:26:12Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Deleted client's &amp;quot;Required Arguments&amp;quot; part, there are no required arguments for client.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to check the current blur level of a specified [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerBlurLevel ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The [[player]] whose blur level you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the player's blur level if successful, ''false'' if an invalid player was given.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getBlurLevel ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the local blur level.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example adds a command ''blurlevel'' with which you can check your current blur level.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkBlurLevel( playerSource )&lt;br /&gt;
    local blur = getPlayerBlurLevel( playerSource )&lt;br /&gt;
    if blur then&lt;br /&gt;
        outputChatBox( &amp;quot;Blur level: &amp;quot; .. blur, playerSource )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;blurlevel&amp;quot;, checkBlurLevel)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerAnnounceValue&amp;diff=27848</id>
		<title>GetPlayerAnnounceValue</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerAnnounceValue&amp;diff=27848"/>
		<updated>2011-11-14T22:25:15Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function retrieves a players ASE announce value under a certain key.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getPlayerAnnounceValue ( element thePlayer, string key )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' This is the [[Player]] whos value you want to retrieve.&lt;br /&gt;
*'''key:''' The name of the key.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This function returns a ''string'' containing the requested value if a valid key was specified or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example adds a command named &amp;quot;getscore&amp;quot; which outputs a players &amp;quot;score&amp;quot; value to his chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function getScore ( playerSource, cmdName )&lt;br /&gt;
    local scoreValue = getPlayerAnnounceValue ( playerSource, &amp;quot;score&amp;quot; )&lt;br /&gt;
    if ( scoreValue ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;Your score: &amp;quot;..scoreValue, playerSource )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;getscore&amp;quot;, getScore )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27847</id>
		<title>GetDeadPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27847"/>
		<updated>2011-11-14T22:24:53Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all currently dead players on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getDeadPlayers()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the dead players.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example prints the list of dead players to the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the dead players&lt;br /&gt;
  deadPlayers = getDeadPlayers ()&lt;br /&gt;
  if ( deadPlayers ) then -- if we got the table&lt;br /&gt;
    deadPlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in deadPlayers do&lt;br /&gt;
      -- add their name to the list&lt;br /&gt;
      if ( deadPlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
        deadPlayersList = getPlayerName ( playerValue )&lt;br /&gt;
      else&lt;br /&gt;
        deadPlayersList = deadPlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Dead Players: &amp;quot; .. deadPlayersList )    &lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=27846</id>
		<title>ForcePlayerMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=27846"/>
		<updated>2011-11-14T22:24:39Z</updated>

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

		<summary type="html">&lt;p&gt;The Kid: Section using&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all the alive players on the server. Opposite function of [[getDeadPlayers]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAlivePlayers ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the alive players.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
This example prints a list of all alive players in a &amp;quot;name, name2, name3&amp;quot; format.  If no players are alive then it outputs &amp;quot;none&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the alive players&lt;br /&gt;
alivePlayers = getAlivePlayers ()&lt;br /&gt;
if ( alivePlayers ) then -- if we got the table&lt;br /&gt;
    alivePlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in ipairs(alivePlayers) do&lt;br /&gt;
        -- add their name to the list&lt;br /&gt;
        if ( alivePlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
            alivePlayersList = getPlayerName ( playerValue )&lt;br /&gt;
        else&lt;br /&gt;
            alivePlayersList = alivePlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Alive Players: &amp;quot; .. alivePlayersList )    &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27844</id>
		<title>GetDeadPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetDeadPlayers&amp;diff=27844"/>
		<updated>2011-11-14T22:23:57Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Section using&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of all currently dead players on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getDeadPlayers()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the dead players.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example prints the list of dead players to the chat box.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the dead players&lt;br /&gt;
  deadPlayers = getDeadPlayers ()&lt;br /&gt;
  if ( deadPlayers ) then -- if we got the table&lt;br /&gt;
    deadPlayersList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for playerKey, playerValue in deadPlayers do&lt;br /&gt;
      -- add their name to the list&lt;br /&gt;
      if ( deadPlayersList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
        deadPlayersList = getPlayerName ( playerValue )&lt;br /&gt;
      else&lt;br /&gt;
        deadPlayersList = deadPlayersList .. &amp;quot;, &amp;quot; .. getPlayerName ( playerValue )&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( &amp;quot;Dead Players: &amp;quot; .. deadPlayersList )    &lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=27843</id>
		<title>IsVoiceEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=27843"/>
		<updated>2011-11-14T22:21:30Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Needs Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function allows you to make the server reveal whether or not voice is currently enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isVoiceEnabled ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the voice is enabled on the server, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerChat&amp;diff=27842</id>
		<title>OnPlayerChat</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerChat&amp;diff=27842"/>
		<updated>2011-11-14T22:19:36Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player chats inside the chat box.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string message, int messageType&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''message''': A string representing the message typed into the chat.&lt;br /&gt;
*'''messageType''': An integer value representing the message type:&lt;br /&gt;
**'''0''': normal message&lt;br /&gt;
**'''1''': action message (/me)&lt;br /&gt;
**'''2''': team message&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who sent the chatbox message.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then.&lt;br /&gt;
Cancelling this event also means the chat will not appear in the server console or logs. If you want chat logging, you will have to add a call to outputServerLog - See the second example.&lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example limits receiving of chat messages to a spherical area around the player who sent the message, also blocking action and team text.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- define our chat radius&lt;br /&gt;
local chatRadius = 20 --units&lt;br /&gt;
&lt;br /&gt;
-- define a handler that will distribute the message to all nearby players&lt;br /&gt;
function sendMessageToNearbyPlayers( message, messageType )&lt;br /&gt;
    -- we will only send normal chat messages, action and team types will be ignored&lt;br /&gt;
    if messageType == 0 then&lt;br /&gt;
        -- get the chatting player's position&lt;br /&gt;
        local posX, posY, posZ = getElementPosition( source )&lt;br /&gt;
        &lt;br /&gt;
        -- create a sphere of the specified radius in that position&lt;br /&gt;
        local chatSphere = createColSphere( posX, posY, posZ, chatRadius )&lt;br /&gt;
        -- get a table all player elements inside it&lt;br /&gt;
        local nearbyPlayers = getElementsWithinColShape( chatSphere, &amp;quot;player&amp;quot; )&lt;br /&gt;
        -- and destroy the sphere, since we're done with it&lt;br /&gt;
        destroyElement( chatSphere )&lt;br /&gt;
        &lt;br /&gt;
        -- deliver the message to each player in that table&lt;br /&gt;
        for index, nearbyPlayer in ipairs( nearbyPlayers ) do&lt;br /&gt;
            outputChatBox( message, nearbyPlayer )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- attach our new chat handler to onPlayerChat&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), sendMessageToNearbyPlayers )&lt;br /&gt;
&lt;br /&gt;
-- define another handler function that cancels the event so that the message won't be delivered through the &lt;br /&gt;
function blockChatMessage()&lt;br /&gt;
    cancelEvent()&lt;br /&gt;
end&lt;br /&gt;
-- attach it as a handler to onPlayerChat&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), blockChatMessage )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example implements colored player names in chat.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This function is executed when a player joins, it sets the player's name-tag color to a random color.&lt;br /&gt;
local function playerJoin()&lt;br /&gt;
	local red, green, blue = math.random (50, 255), math.random (50, 255), math.random (50, 255)&lt;br /&gt;
        setPlayerNametagColor(source, red, green, blue)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onPlayerJoin&amp;quot;, root, playerJoin)&lt;br /&gt;
&lt;br /&gt;
--This function is executed when a player says something in chat, it outputs the player's message, with their nick colored to match their name tag color.&lt;br /&gt;
local function playerChat(message, messageType)&lt;br /&gt;
	if messageType == 0 then --Global (main) chat&lt;br /&gt;
                cancelEvent()&lt;br /&gt;
                local red, green, blue = getPlayerNametagColor(source)&lt;br /&gt;
		outputChatBox(getPlayerName(source)..&amp;quot;: #FFFFFF&amp;quot;..message, root, red, green, blue, true )&lt;br /&gt;
		outputServerLog(&amp;quot;CHAT: &amp;quot;..getPlayerName(source)..&amp;quot;: &amp;quot;..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually.&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChat&amp;quot;, root, playerChat)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:General_disclaimer&amp;diff=27827</id>
		<title>Multi Theft Auto: Wiki:General disclaimer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:General_disclaimer&amp;diff=27827"/>
		<updated>2011-11-14T15:18:26Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Created page with &amp;quot;{{Needs Checking|Needs filling}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking|Needs filling}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:About&amp;diff=27826</id>
		<title>Multi Theft Auto: Wiki:About</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:About&amp;diff=27826"/>
		<updated>2011-11-14T15:18:04Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking|Nothing to talk about wiki creation?}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:Privacy_policy&amp;diff=27825</id>
		<title>Multi Theft Auto: Wiki:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:Privacy_policy&amp;diff=27825"/>
		<updated>2011-11-14T15:17:30Z</updated>

		<summary type="html">&lt;p&gt;The Kid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking|No privacy policy?}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:Privacy_policy&amp;diff=27824</id>
		<title>Multi Theft Auto: Wiki:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Multi_Theft_Auto:_Wiki:Privacy_policy&amp;diff=27824"/>
		<updated>2011-11-14T15:17:11Z</updated>

		<summary type="html">&lt;p&gt;The Kid: Created page with &amp;quot;{{Needs Checking}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking}}&lt;/div&gt;</summary>
		<author><name>The Kid</name></author>
	</entry>
</feed>