Table of Contents

Interface IBasePickup.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IBasePickup.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

GetLegacyPlayer()

Gets the legacy player associated with this pickup, used for ID mapping in per-player pickups.

IPlayer GetLegacyPlayer()

Returns

IPlayer

The associated legacy player, or null if not set.

GetModel()

Gets the model ID of the pickup.

int GetModel()

Returns

int

The model ID of the pickup.

GetPickupType()

Gets the type of the pickup.

byte GetPickupType()

Returns

byte

The type ID of the pickup.

IsPickupHiddenForPlayer(IPlayer)

Checks if the pickup is hidden for the specified player.

bool IsPickupHiddenForPlayer(IPlayer player)

Parameters

player IPlayer

The player to check for.

Returns

bool

true if the pickup is hidden for the player; otherwise, false.

IsStreamedInForPlayer(IPlayer)

Checks if the pickup is streamed in for the specified player.

bool IsStreamedInForPlayer(IPlayer player)

Parameters

player IPlayer

The player to check for.

Returns

bool

true if the pickup is streamed in for the player; otherwise, false.

SetLegacyPlayer(IPlayer)

Sets the legacy player for this pickup, used for ID mapping in per-player pickups.

void SetLegacyPlayer(IPlayer player)

Parameters

player IPlayer

The player to associate with this pickup, or null.

SetModel(int, bool)

Sets the model ID of the pickup.

void SetModel(int id, bool update = true)

Parameters

id int

The model ID to set.

update bool

Whether to update the pickup visually for all players; defaults to true.

SetPickupHiddenForPlayer(IPlayer, bool)

Sets whether the pickup is hidden for the specified player.

void SetPickupHiddenForPlayer(IPlayer player, bool hidden)

Parameters

player IPlayer

The player to hide or show the pickup for.

hidden bool

true to hide the pickup; false to show it.

SetPositionNoUpdate(Vector3)

Sets the position of the pickup without updating the visual representation.

void SetPositionNoUpdate(Vector3 position)

Parameters

position Vector3

The new position for the pickup.

SetType(byte, bool)

Sets the type of the pickup.

void SetType(byte type, bool update = true)

Parameters

type byte

The type ID of the pickup.

update bool

Whether to update the pickup visually for all players; defaults to true.

StreamInForPlayer(IPlayer)

Streams the pickup in for the specified player.

void StreamInForPlayer(IPlayer player)

Parameters

player IPlayer

The player to stream the pickup in for.

StreamOutForPlayer(IPlayer)

Streams the pickup out for the specified player.

void StreamOutForPlayer(IPlayer player)

Parameters

player IPlayer

The player to stream the pickup out for.