Difference between revisions of "0109"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0109=2,%1d% %2d%
+
| ini        = 0109=2,{{hint|%1d%|parameter 1: handle}} {{hint|%2d%|parameter 2: integer}}
 
| description = Adds the player's money
 
| description = Adds the player's money
 
| p1          = Player handle
 
| p1          = Player handle
Line 7: Line 7:
 
| native      = [[ADD_SCORE]]
 
| native      = [[ADD_SCORE]]
 
}}
 
}}
Adds the value in the second parameter to the player's current amount of money. Negative values work. In GTA 3 and Vice City, the minimum the player can hold is $0. In San Andreas, it can go below $0.
+
Adds the integer value to the player's current amount of money. Negative values work. In GTA 3 and Vice City, the minimum money the player can hold using this opcode is $0. In San Andreas, it can go below $0.
  
 
==Keywords==
 
==Keywords==
player, add, money
+
player, add, money, cash

Revision as of 06:06, 30 December 2010

{{{games}}}


Description
Adds the player's money
Syntax
{{{syntax1}}}
Parameter
Native analog
ADD_SCORE

Adds the integer value to the player's current amount of money. Negative values work. In GTA 3 and Vice City, the minimum money the player can hold using this opcode is $0. In San Andreas, it can go below $0.

Keywords

player, add, money, cash