Difference between revisions of "MDE Scripting: GetWeaponNameFromID"

From Nomad DB
Line 4: Line 4:
 
|-
 
|-
 
!Module
 
!Module
|[[MDE_Scripting:_Game_Library#Game|Game]]
+
|[[MDE Scripting: Game Library#Game|Game]]
 
|-
 
|-
 
!Library
 
!Library
|[[MDE_Scripting:_Game_Library|Game]]
+
|[[MDE Scripting: Game Library|Game]]
 
|-
 
|-
 
!Game
 
!Game
|[[MDE_Scripting|Mafia: Definitive Edition]]
+
|[[MDE Scripting|Mafia: Definitive Edition]]
 
|}
 
|}
  
Line 17: Line 17:
 
Returns the weapon model name
 
Returns the weapon model name
  
See [[MDE_Scripting:_Weapons|Weapons]] to know weapons id.
+
See [[MDE Scripting: Weapons|Weapons]] to know weapons id.
  
  
Line 28: Line 28:
 
|weaponID
 
|weaponID
 
|number
 
|number
|Find id here : [[MDE_Scripting:_Weapons|Weapons]]
+
|Find id here : [[MDE Scripting: Weapons|Weapons]]
 
|}
 
|}
  

Revision as of 20:42, 17 October 2020

Syntax
game.game:GetWeaponNameFromID(number weaponID)
Module Game
Library Game
Game Mafia: Definitive Edition


Description

Returns the weapon model name

See Weapons to know weapons id.


Parameters

Name Type Description
weaponID number Find id here : Weapons


Returns

# Type Description
1 string Weapon model name


Examples

local weaponName = game.game:GetWeaponNameFromID(84) -- weaponName returns "smg_trench_a_v1"