SetPlayerName

From GTA Network Wiki
Jump to: navigation, search

SetPlayerName
Server-Side Function

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

Set the Name of a Player.

Syntax

bool NAPI.Player.SetPlayerName(Client player, string newName);

Required Arguments

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

NOTE: This function returns data in bool type.

Usage example(s)

Example Description

NAPI.Player.SetPlayerName(player, newName);

Changelog

Version Description
1.0 Release.

References