Difference between revisions of "MDE Scripting: GetWeaponNameFromID"

From Nomad DB
Line 38: Line 38:
 
!Description
 
!Description
 
|-
 
|-
|1
+
| style="font-weight: bold; text-align:center;" | 1
 
|string
 
|string
 
|Weapon model name
 
|Weapon model name

Revision as of 20:33, 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"