Table of Contents

Class PlayerPickup

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

Represents a pickup that is logically owned by a single player. Created via CreatePlayerPickup(Player, int, PickupType, Vector3, int, EntityId), which binds the pickup's legacy ID to the owning player.

public class PlayerPickup : BasePickup
Inheritance
PlayerPickup
Inherited Members

Remarks

open.mp does not have a dedicated per-player pickup creation API; under the hood this is a regular pickup with SetLegacyPlayer set to the owner. Per-player visibility is controlled through SetHiddenForPlayer(Player, bool) / IsHiddenForPlayer(Player).

Constructors

PlayerPickup(IPickupsComponent, IPickup)

Initializes a new instance of the PlayerPickup class.

protected PlayerPickup(IPickupsComponent pickups, IPickup pickup)

Parameters

pickups IPickupsComponent
pickup IPickup