<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/ES/setPlayerMoney?action=history&amp;feed=atom</id>
	<title>ES/setPlayerMoney - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/ES/setPlayerMoney?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/setPlayerMoney&amp;action=history"/>
	<updated>2026-04-25T04:40:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/setPlayerMoney&amp;diff=69212&amp;oldid=prev</id>
		<title>Myonlake: Myonlake moved page Es/setPlayerMoney to ES/setPlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/setPlayerMoney&amp;diff=69212&amp;oldid=prev"/>
		<updated>2021-02-21T19:00:53Z</updated>

		<summary type="html">&lt;p&gt;Myonlake moved page &lt;a href=&quot;/wiki/Es/setPlayerMoney&quot; class=&quot;mw-redirect&quot; title=&quot;Es/setPlayerMoney&quot;&gt;Es/setPlayerMoney&lt;/a&gt; to &lt;a href=&quot;/wiki/ES/setPlayerMoney&quot; title=&quot;ES/setPlayerMoney&quot;&gt;ES/setPlayerMoney&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:00, 21 February 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-35345:rev-69212 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myonlake</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/setPlayerMoney&amp;diff=35345&amp;oldid=prev</id>
		<title>Emiliano Castro: Created page with &quot;__NOTOC__ {{Server client function}} Esta funcion pone una cantidad fija al dinero de un jugador. Debería ser notado que el ajuste de valores negativos no trabaja y de hecho da ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/setPlayerMoney&amp;diff=35345&amp;oldid=prev"/>
		<updated>2013-04-13T00:21:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Server client function}} Esta funcion pone una cantidad fija al dinero de un jugador. Debería ser notado que el ajuste de valores negativos no trabaja y de hecho da ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Esta funcion pone una cantidad fija al dinero de un jugador. Debería ser notado que el ajuste de valores negativos no trabaja y de hecho da cantidades de dinero grandes al jugador.&lt;br /&gt;
{{Nota|Usar esta funcion en client side (no recomendado) no cambiara el dinero del jugador en el 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;
===Argumentos requeridos=== &lt;br /&gt;
*'''thePlayer:''' El jugador el cual quieres indicar la cantidad de su dinero.&lt;br /&gt;
*'''amount:''' La cantidad del cual quieres indicarle.&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;
===Argumentos requeridos=== &lt;br /&gt;
*'''amount:''' La cantidad del dinero el cual quieres indicarle.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Devuelve ''true'' si el dinero fue añadido, o ''false'' si los parametros pasados son invalidos.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo==  &lt;br /&gt;
'''Ejemplo 1:''' Este ejemplo hace que cuando tu ejecutes el comando /setcash &amp;lt;cantidad&amp;gt; le ponga la cantidad indicada al jugador que ejecuto el comando.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCash ( thePlayer, command, amount )       -- cuando el comando setcash es ejecutado&lt;br /&gt;
    setPlayerMoney ( thePlayer, tonumber(amount) )    -- cambiar el dinero del jugador por la indicada&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setcash&amp;quot;, setCash )           -- agrega el comando setcash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Example 2:''' Este ejemplo le pone el dinero indicado a todos los jugadores en el server con el comando /leet.&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;
==Mira tambien==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Emiliano Castro</name></author>
	</entry>
</feed>