Garry's Mod Wiki


Player:PickupObject( Entity entity )


This makes the player hold ( same as pressing e on a small prop ) the provided entity.

Don't get this confused with picking up items like ammo or health kits
This picks up the passed entity regardless of its mass or distance from the player


1 Entity entity
Entity to pick up.


An extra function to make sure the object isn't held before being picked up.

function PlayerPickupObject( ply, obj ) if ( obj:IsPlayerHolding() ) then return end ply:PickupObject( obj ) end

Page Links

Special Pages



Render Time: 220ms

DB GetPage 46
Generate Html 118
SaveChanges (1) 24
Render Body 0
Render Sidebar 20