pickup weapon function

What is the function’s name that let a nextbot to pickup a weapon on the ground? I need to make a fire bullets function too?

They don’t have one. We have to make our own system for that.