Table of Contents

Lua WeaponId

id WeaponId( string name );

Description

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

Version

Beta 3.1

Example

<lua> local weapId = WeaponId(“knife”); </lua>