Garry's Mod Wiki


boolean GM:GravGunPickupAllowed( Player ply, Entity ent )


Called every tick to poll whether a player is allowed to pick up an entity with the gravity gun or not.

See GM:AllowPlayerPickup for the +USE pickup variant.

Calls ENTITY:GravGunPickupAllowed on the entity being hovered every frame in Sandbox-derived gamemodes.


1 Player ply
The player wielding the gravity gun
2 Entity ent
The entity the player is attempting to pick up


1 boolean
Return true to allow entity pick up

Page Links

Special Pages



Render Time: 37ms

DB GetPage 3
Generate Html 10
SaveChanges (1) 11
Render Body 0
Render Sidebar 10