I modified the "weapon.fpi" file so that it enables the player to pick up the weapon then drop it if the player presses G, picking up the weapon works fine, but when I press G ,nothing happens
I keep holding the weapon

I tried to use it with different weapons from different model packs but it is the same thing ..
Here's the code:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=3,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
:state=3,keypressed=34 1:state=4,playerdrop,colon,plrsound=audiobank\items\pickup.wav
:state=4,plrdistfurther=65:state=10
;End of Script