GetPlayerLocale

From Onset Developer Wiki
Revision as of 20:41, 27 May 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetPlayerLocale

Type: Function
Context: Server
Introduced: v1.0

Description

Returns the computers localization of a player. For example en_US, de_DE, etc.

Syntax

GetPlayerLocale(player)

Parameters

  • player
    The player identifier.

Return Value

  • Returns a string with the player's localization.

Example

AddEvent("OnPlayerJoin", function(playerid)
	AddPlayerChatToAll("[JOIN] "..GetPlayerName(playerd).." has joined from "..GetPlayerLocale(player))
end)

See also