So what I want to do is basically make something in point shop that when equipped will simply take a weapon from the player and give him another.
function ITEM:OnEquip(ply, modifications) for k, v in pairs (ents.GetAll()) do ply:HasWeapon("weapon_ttt_bomb2") if ply:HasWeapon("weapon_ttt_bomb2") then ply:StripWeapon("weapon_ttt_bomb2") ply:Give("weapon_ttt_bomb1") end end end
Basically, what I am trying to do is cycle through all entities, and then check if the player has a weapon (In this case “weapon_ttt_bomb2”) and then if the player does to strip that weapon and give him another (In this case “weapon_ttt_bomb1”)
I have tried everything I could think of, but I can’t seem to get it to work. Any suggestions?