Object::createMoneyPickups: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Spawns one or more money pickups.<br><br>x: The X-component of the world position to spawn the money pickups at.<br>y: The Y-component of the world position to spawn the money pickups at.<br>z: The Z-component of the world position to spawn the money pickups at.<br>value: The combined value of the pickups (in dollars).<br>amount: The number of pickups to spawn.<br>model: The model to use, or 0 for default money model.<br><br>Example:<br>CREATE_MONEY_PICKUPS(x, y, z, 1000, 3, 0x684a97ae);<br><br>Spawns 3 spray cans that'll collectively give $1000 when picked up. (Three spray cans, each giving $334, $334, $332 = $1000).
Spawns one or more money pickups.<br><br>x: The X-component of the world position to spawn the money pickups at.<br>y: The Y-component of the world position to spawn the money pickups at.<br>z: The Z-component of the world position to spawn the money pickups at.<br>value: The combined value of the pickups (in dollars).<br>amount: The number of pickups to spawn.<br>model: The model to use, or 0 for default money model.<br><br>Example:<br>CREATE_MONEY_PICKUPS(x, y, z, 1000, 3, 0x684a97ae);<br><br>Spawns 3 spray cans that'll collectively give $1000 when picked up. (Three spray cans, each giving $334, $334, $332 = $1000).
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.createMoneyPickups(x, y, z, value, amount, model);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.createMoneyPickups(x, y, z, value, amount, model);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' float
*'''x:''' float
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:28, 6 May 2017

Spawns one or more money pickups.

x: The X-component of the world position to spawn the money pickups at.
y: The Y-component of the world position to spawn the money pickups at.
z: The Z-component of the world position to spawn the money pickups at.
value: The combined value of the pickups (in dollars).
amount: The number of pickups to spawn.
model: The model to use, or 0 for default money model.

Example:
CREATE_MONEY_PICKUPS(x, y, z, 1000, 3, 0x684a97ae);

Spawns 3 spray cans that'll collectively give $1000 when picked up. (Three spray cans, each giving $334, $334, $332 = $1000).

Syntax

mp.game.object.createMoneyPickups(x, y, z, value, amount, model);

Required Arguments

  • x: float
  • y: float
  • z: float
  • value: int
  • amount: int
  • model: Model hash or name

Return value

  • Undefined

Example

// todo

See also

  • [[Object::disableGlow|mp.game.object.disableGlow