-- Get ID of weapon in your hands.
invList = GetInventory();
for item in invList.list do
if item.IsEquipped == true and item.ItemType == 0 then
ShowToClient("Weapon in hands", item.Name);
WeapID=item.displayId;
end;
end