native get_user_weapons(index, weapons, &num);
Array to store weapon indexes in
Variable to store number of weapons in the inventory to
- Retrieves all weapons in the client inventory, stores them in an array, and returns the inventory as a bitflag sum.
Make sure that num has an initial value of 0 or the native will not work correctly.
- Bitflag sum of weapon indexes, 0 if client is not connected