remove SWEP from player

im working on something that requires me to take an SWEP from a player upon dropping the item, i give the item through ply:Give, i just need to know how to take it away from the player

**[Player.StripWeapon

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.StripWeapon)**

i am still having trouble removing the swep, here is the code of the item itself

function ITEM:Drop(ply)

ply:StripWeapon("pist_glock191");
self:Remove();

end

function ITEM:Pickup(ply)

self:Remove();

end

function ITEM:UseItem(ply)

ply:Give("pist_glock191");
self:Remove();

end

is there anything wrong here that would make the weapon not be stripped?

is this serverside or shared

-snip-

How do you know…

Syntax Player:StripWeapon(

Weapon Class )
Available On:

I meant did he put it in shared.lua or init.lua

Init.lua …

You dont know though lol

Oh, sorry I read the post wrong!

rate me boxes