Skip to content

function setPlayerName (server-side)

Available since version: 0.0.1


The name string can't be longer than 18 characters, and must be unique for each player.

This function will set the player unique nickname for all players.


bool setPlayerName(int id, string name)


  • int id: the player id.
  • string name: the new unique player name.

Returns bool

true when unique player name was set, otherwise false.