Table of Contents

Interface IPlayerTextLabelData.IManagedInterface

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

Represents the managed interface implemented by its unmanaged counterpart.

public interface IPlayerTextLabelData.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

AsPool()

Gets the pool interface for managing per-player text labels.

IPool<IPlayerTextLabel> AsPool()

Returns

IPool<IPlayerTextLabel>

A pool interface for per-player text labels.

Create(string, Colour, Vector3, float, bool)

Creates a new per-player text label.

IPlayerTextLabel Create(string text, Colour colour, Vector3 pos, float drawDist, bool los)

Parameters

text string

The text to display on the label.

colour Colour

The colour of the text label.

pos Vector3

The position where the text label will be created.

drawDist float

The draw distance of the text label.

los bool

Whether line-of-sight testing is enabled.

Returns

IPlayerTextLabel

The created per-player text label, or null if creation failed.

Create(string, Colour, Vector3, float, bool, IPlayer)

Creates a new per-player text label attached to a player.

IPlayerTextLabel Create(string text, Colour colour, Vector3 pos, float drawDist, bool los, IPlayer attach)

Parameters

text string

The text to display on the label.

colour Colour

The colour of the text label.

pos Vector3

The position offset from the player.

drawDist float

The draw distance of the text label.

los bool

Whether line-of-sight testing is enabled.

attach IPlayer

The player to attach the text label to.

Returns

IPlayerTextLabel

The created per-player text label, or null if creation failed.

Create(string, Colour, Vector3, float, bool, IVehicle)

Creates a new per-player text label attached to a vehicle.

IPlayerTextLabel Create(string text, Colour colour, Vector3 pos, float drawDist, bool los, IVehicle attach)

Parameters

text string

The text to display on the label.

colour Colour

The colour of the text label.

pos Vector3

The position offset from the vehicle.

drawDist float

The draw distance of the text label.

los bool

Whether line-of-sight testing is enabled.

attach IVehicle

The vehicle to attach the text label to.

Returns

IPlayerTextLabel

The created per-player text label, or null if creation failed.