Garry's Mod Wiki

Entity:IsPlayerHolding

  boolean Entity:IsPlayerHolding()

Description

Returns true if the entity is being held by a player. Either by physics gun, gravity gun or use-key (+use).

If multiple players are holding an object and one drops it, this will return false despite the object still being held.

Issue Tracker: 2046

Returns

1 boolean
IsBeingHeld