SetPlayerNametag

From GT-MP
Jump to: navigation, search
SetPlayerNametag
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Changes the Player's Nametag.


Syntax

API.setPlayerNametag(Client player, string text); //Server-side
API.setPlayerNametag(LocalHandle player, string text); //Client-side

Required Arguments

  • player: parameter input should be in Client/LocalHandle type.
  • text: parameter input should be in string type, where the limit is 40 characters and minimum 0.

Usage example(s)

API.setPlayerNametag(target, "Doctor");

OOP: (Server-Side)

target.nametag = "Doctor";

References