Garry's Mod Wiki

ENTITY:GravGunPickupAllowed

  boolean ENTITY:GravGunPickupAllowed( Player ply )

Description

Called by GM:GravGunPickupAllowed on ALL entites in Sandbox-derived gamemodes and acts as an override.

Arguments

1 Player ply
The player aiming at us

Returns

1 boolean
Return true to allow the entity to be picked up