GetPlayerLocale
From Onset Developer Wiki
Description
Returns the computers localization of a player in two letter format. For example US, DE, AT, FR, IT, 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)