<?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=Auron</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=Auron"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Auron"/>
	<updated>2026-04-10T11:07:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TakePlayerMoney&amp;diff=12190</id>
		<title>TakePlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TakePlayerMoney&amp;diff=12190"/>
		<updated>2007-09-23T09:34:54Z</updated>

		<summary type="html">&lt;p&gt;Auron: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function subtracts money from a [[player]]'s current money amount.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool takePlayerMoney ( 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 taking the money from.&lt;br /&gt;
*'''amount:''' an integer number specifying the amount of money to take from the player.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the money was taken, or ''false'' if invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example takes money from a player when he types &amp;quot;takecash ''number''&amp;quot; in the console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function takeCash ( thePlayer, command, amount )     -- when the takecash command is called&lt;br /&gt;
     takePlayerMoney ( thePlayer, tonumber(amount) ) -- take the amount of money from the player&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;takecash&amp;quot;, takeCash )           -- add a handler function for the command &amp;quot;takecash&amp;quot;&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>Auron</name></author>
	</entry>
</feed>