Table of Contents

Class Pickup

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

Represents a global pickup. For pickups that logically belong to a single player, use PlayerPickup.

public class Pickup : BasePickup
Inheritance
Pickup
Inherited Members

Constructors

Pickup(IPickupsComponent, IPickup)

Initializes a new instance of the Pickup class.

protected Pickup(IPickupsComponent pickups, IPickup pickup)

Parameters

pickups IPickupsComponent
pickup IPickup

Methods

IsHiddenForPlayer(Player)

Checks whether this pickup is hidden for the specified player.

public virtual bool IsHiddenForPlayer(Player player)

Parameters

player Player

The player.

Returns

bool

true if hidden; otherwise false.

IsStreamedInForPlayer(Player)

Checks whether this pickup is streamed in for the specified player.

public virtual bool IsStreamedInForPlayer(Player player)

Parameters

player Player

The player.

Returns

bool

true if streamed in; otherwise false.

SetHiddenForPlayer(Player, bool)

Hides or shows this pickup for the specified player.

public virtual void SetHiddenForPlayer(Player player, bool hidden)

Parameters

player Player

The player.

hidden bool

true to hide; false to show.

StreamInForPlayer(Player)

Streams this pickup in for the specified player.

public virtual void StreamInForPlayer(Player player)

Parameters

player Player

The player.

StreamOutForPlayer(Player)

Streams this pickup out for the specified player.

public virtual void StreamOutForPlayer(Player player)

Parameters

player Player

The player.