ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPlayerAnnounceValue

Function

setPlayerAnnounceValue

ServerPlayersIdentical to MTA:SA

Sets a value announced for the player, e.g. a score shown in the server list.

Syntax

bool setPlayerAnnounceValue(player thePlayer, string key, string value)

Arguments

thePlayerplayer
The player.
keystring
The key.
valuestring
The value.

Returns

true on success.

Example

setPlayerAnnounceValue(player, "score", tostring(getElementData(player, "score") or 0))

See also