Pickup weapon in a game (fps)

So I am making a battle royale game. Which is gonna be called sniper royale. So basically I wanna know how to add a way for the person to pick up the weapon.Heres the link to the editor PlayCanvas | HTML5 Game Engine