MDE Scripting: GetWeaponNameFromID

From Nomad DB
Revision as of 23:15, 11 October 2020 by Deewarz (talk | contribs)
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"