MDE Scripting: GetWeaponNameFromID

From Nomad DB
Revision as of 00:39, 6 October 2020 by Deewarz (talk | contribs) (Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.game:GetWeaponNameFromID(number weaponID)</syntaxhighlight> |- !Module |[[MDE_Scripting:_Game_Library#Game|Game]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"