NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


obsolete:lua:lua_weaponid

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>

obsolete/lua/lua_weaponid.txt · Last modified: 2023/09/03 18:43 by 127.0.0.1