Server-side player extensions of the Pickup Objects plugin: what a player holds in their hands and who is dragging their ragdoll.

Summary

Methods

Returns the player who is dragging the ragdoll of this player.
Returns the entity the player is carrying or dragging with their hands.

Methods

Returns the player who is dragging the ragdoll of this player. Serverside only. A ragdoll that is carried like any other object, with the pickup_drag_ragdolls config turned off, does not count.

Returns

  • Player the dragging player; nil if the player has no ragdoll, nobody drags it or the Ragdoll plugin is not loaded

Player:get_holding_entity()

server plugins/pickup_objects/plugin/lib/meta/sv_player.lua:10

Returns the entity the player is carrying or dragging with their hands. Serverside only.

Returns

  • Entity the held entity, or nil if the player holds nothing

Defined in