PS Replacement weapon

Need to pointshop:
Replacement entities/weapons when lifting it

Replacement


function WeaponStrip(ply)
	if ply:GetActiveWeapon("weapon_mu_fists"):GetClass() then
	ply:StripWeapon("weapon_weapon1")
	ply:Give("weapon_weapon2")
	end
end

What is the problem?

Where is this code placed? You have the right idea, but it probably isn’t be run and there’s no check to see what item the user has

You could do something like



hook.Add("PlayerSpawn", "fuck", function(ply)
if ply:PS_HasItemEquipped("whatever the file name is") then
--code here
end
end)


And if a player has a living?

I’m sorry, what do you mean?

I think OP means that when a player picks up weapon 1 it would check if they own weapon 2 in PS, if so then strip 1 and give 2.