Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. -- Determine if we already have equipment
  2. local owned_ids = {}
  3. for _, wep in ipairs(ply:GetWeapons()) do
  4. if not IsValid(wep) then
  5. ErrorNoHalt(wep)
  6. ErrorNoHalt("WEAPON NOT VALID")
  7. if not wep:IsEquipment() then
  8. ErrorNoHalt("NO EQUIP")
  9. if IsValid(wep) and not wep:IsEquipment() then
  10. table.insert(owned_ids, wep:GetClass())
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement