Player::setMoney: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
Maximum possible amount of money on MP is 2000. ~JX<br><br>-----------------------------------------------------------------------------<br><br>Maximum amount that a ped can theoretically have is 65535 (0xFFFF) since the amount is stored as an unsigned short (uint16_t) value.
Maximum possible amount of money on MP is 2000. ~JX<br><br>-----------------------------------------------------------------------------<br><br>Maximum amount that a ped can theoretically have is 65535 (0xFFFF) since the amount is stored as an unsigned short (uint16_t) value.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setMoney(amount);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.players.local.setMoney(amount);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''amount:''' int
*'''amount:''' int

Latest revision as of 02:56, 13 June 2018

Maximum possible amount of money on MP is 2000. ~JX

-----------------------------------------------------------------------------

Maximum amount that a ped can theoretically have is 65535 (0xFFFF) since the amount is stored as an unsigned short (uint16_t) value.

Syntax

mp.players.local.setMoney(amount);

Required Arguments

  • amount: int

Return value

  • Undefined

Example

// todo

See also