Click or drag to resize

IWorldServiceCreatePlayerTextLabel Method

Creates a player text label in the world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
PlayerTextLabel CreatePlayerTextLabel(
	EntityId player,
	string text,
	Color color,
	Vector3 position,
	float drawDistance,
	bool testLos = true,
	EntityId attachedTo = default
)

Parameters

player
Type: SampSharp.EntitiesEntityId
The player.
text
Type: SystemString
The text.
color
Type: SampSharp.Entities.SAMPColor
The color.
position
Type: SampSharp.Entities.SAMPVector3
The position.
drawDistance
Type: SystemSingle
The draw distance.
testLos (Optional)
Type: SystemBoolean
if set to true the line of sight is tested to decide whether the label is drawn.
attachedTo (Optional)
Type: SampSharp.EntitiesEntityId
A player or vehicle to attach the text label to.

Return Value

Type: PlayerTextLabel
The created text label.
See Also