Class PlayerPickup
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.
Constructors
PlayerPickup(IPickupsComponent, IPickup, Player)
Initializes a new instance of the PlayerPickup class.
protected PlayerPickup(IPickupsComponent pickups, IPickup pickup, Player player)
Parameters
pickupsIPickupsComponentpickupIPickupplayerPlayer
Properties
IsHidden
Gets or sets a value indicating whether the pickup is hidden for the player.
public virtual bool IsHidden { get; set; }
Property Value
Methods
IsStreamedIn()
Checks whether this pickup is streamed in for the player.
public virtual bool IsStreamedIn()
Returns
StreamIn()
Streams this pickup in for the player.
public virtual void StreamIn()
StreamOut()
Streams this pickup out for the player.
public virtual void StreamOut()