GetPlayerLocale: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription|Returns the computers localization of a player | {{FuncDescription|Returns the computers localization of a player. For example en_US, de_DE, etc.}} | ||
{{FuncSyntax|GetPlayerLocale(player)}} | {{FuncSyntax|GetPlayerLocale(player)}} |
Revision as of 17:28, 22 April 2021
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)