CreateTextLabel

From GTA Network Wiki
Jump to: navigation, search

CreateTextLabel
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Creates a 3D Text label.

Syntax

TextLabel NAPI.TextLabel.CreateTextLabel(string text, Vector3 pos, float range, float size, int font, Color color [, bool entitySeethrough = false, uint dimension = NAPI.GlobalDimension ]);


Required Arguments

  • text: parameter input should be in string type.
  • pos: parameter input should be in Vector3 type.
  • range: parameter input should be in float type.
  • size: parameter input should be in float type.
  • font: parameter input should be in int type.
  • color: parameter input should be in Color type.

Optional Arguments

  • entitySeethrough: parameter input should be in bool type.
  • dimension: parameter input should be in uint type.

NOTE: This function returns data in TextLabel type.

Usage example

NAPI.TextLabel.CreateTextLabel("My Text", pos, range, size, font, color, true, 2);

Changelog

Version Description
1.0 Release.

References