Difference between revisions of "MDE Scripting: GetWeaponNameFromID"

From Nomad DB
(Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.game:GetWeaponNameFromID(number weaponID)</syntaxhighlight> |- !Module |[[MDE_Scripting:_Game_Library#Game|Game]...")
 
Line 56: Line 56:
 
[[Category:MDE]]
 
[[Category:MDE]]
 
[[Category:MDE Scripting]]
 
[[Category:MDE Scripting]]
[[Category:MDE Resources]]
 
 
[[Category:MDE Weapons]]
 
[[Category:MDE Weapons]]

Revision as of 23:14, 11 October 2020

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


Description

Return 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


Example

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