native

rg_find_weapon_bpack_by_name

Syntax

native rg_find_weapon_bpack_by_name(const index, const weapon[]);

Description

Finds the weapon by name in the player's inventory.

Parameters

index Client index
weapon Weapon name

Return

Weapon's entity index, 0 otherwise