- Documentation
- Shared functions
- getWeaponsInSlot
Function
getWeaponsInSlot
Returns the weapon IDs that belong to an inventory slot.
Syntax
table getWeaponsInSlot(int slot)Arguments
slotint- Slot number 0-12.
Returns
A table of weapon IDs (empty if the slot has none).
Example
for _, id in ipairs(getWeaponsInSlot(5)) do
print(getWeaponNameFromID(id))
end