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

User Tools


obsolete:lua:lua_getloadoutweapon

Lua GetLoadoutWeapon

int GetLoadoutWeapon( int index );

Description

Gets the weapon id form the loadout at that index.

Version

Beta 3.1

Example

<lua>

for i=1,7 do
	ClientPrintPlayer(player, HUD_PRINTTALK, "%s1", GetWeaponPrintName(WeaponName(GetLoadoutWeapon(i))) ); 
end

</lua>

obsolete/lua/lua_getloadoutweapon.txt ยท Last modified: 2023/09/03 18:43 by 127.0.0.1