Weapon::createWeaponObject: Difference between revisions

From RAGE Multiplayer Wiki
(heading => scale)
Line 12: Line 12:
*'''p7:''' unknown (to be checked)
*'''p7:''' unknown (to be checked)
===Return value===
===Return value===
*'''Object handle or object'''
*'''Object handle'''
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Revision as of 10:25, 9 September 2021

Now has 8 params.

Syntax

mp.game.weapon.createWeaponObject(weaponHash, ammoCount, x, y, z, showWorldModel, scale, p7);

Required Arguments

  • weaponHash: Model hash or name
  • ammoCount: int
  • x: float
  • y: float
  • z: float
  • showWorldModel: Boolean
  • scale: float
  • p7: unknown (to be checked)

Return value

  • Object handle

Example

// todo

See also