Squirrel/Server/Functions/Weapons/GetWeaponIDFromName
From Liberty Unleashed Wiki
This function returns the ID of the weapon from its name.
Syntax
int GetWeaponIDFromName( string weaponName )
Arguments
- weaponName - The name of the weapon
Example
function onPlayerCommand( player, command, text ) { if ( command == "wepid" ) GetWeaponIDFromName( text ); }
Notes
This function is used to get the weapon ID of the given text.