Click or drag to resize

IWorldServiceCreateTextLabel Method

Creates a text label in the world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
TextLabel CreateTextLabel(
	string text,
	Color color,
	Vector3 position,
	float drawDistance,
	int virtualWorld = 0,
	bool testLos = true,
	EntityId parent = default
)

Parameters

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.
virtualWorld (Optional)
Type: SystemInt32
The virtual world.
testLos (Optional)
Type: SystemBoolean
if set to true the line of sight is tested to decide whether the label is drawn.
parent (Optional)
Type: SampSharp.EntitiesEntityId
The parent of the entity to be created.

Return Value

Type: TextLabel
The created text label.
See Also