Difference between revisions of "MDE Scripting: GetWeaponNameFromID"
From Nomad DB
Line 56: | Line 56: | ||
[[Category:MDE]] | [[Category:MDE]] | ||
[[Category:MDE Scripting]] | [[Category:MDE Scripting]] | ||
+ | [[Category:MDE Functions]] | ||
+ | [[Category:MDE Game Library]] | ||
+ | [[Category:MDE Game Module]] | ||
[[Category:MDE Weapons]] | [[Category:MDE Weapons]] |
Revision as of 23:15, 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"
|