Skip to content

getPlayerDiscordID

Server-side

Available in Neon, not standard MTA

Returns the Discord identifier carried by a player's verified Neon Identity ticket.

Syntax

string|false getPlayerDiscordID(player thePlayer)

Arguments

thePlayerplayer

Connected player to inspect.

Returns

The Discord snowflake as a string, or false when the player is invalid or has no verified Discord identity.

Ownership and lifecycle

Verified player identifiers belong to the authenticated connection and are read-only to resources. Identity bans persist in the normal server ban list; their enforcement depends on a later connection supplying a verified Neon identity.

Important behavior
  • The value is a string because Discord snowflakes exceed Lua 5.1's exact integer range.
  • Identity-enabled servers receive this identifier under the current V1 contract.

OOP aliases

  • player:getDiscordID()

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →