Table of Contents

Lua WeaponName

string WeaponName( int id );

Description

This gets the weapons script name (excluding “weapon_”) from a weapons id number.

Version

Beta 3.1

Example

<lua> local weapName = WeaponName(weapId); </lua>