GetPlayerLocale: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPlayerLocale(player)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{FuncReturnValue|_...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the player localiaztion name.}}


{{FuncSyntax|GetPlayerLocale(player)}}
{{FuncSyntax|GetPlayerLocale(player)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a string with the player's localozation name.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
AddEvent("OnPlayerJoin", function(playerid)
AddPlayerChatToAll("[JOIN] "..GetPlayerName(playerd).." has joined from "..GetPlayerLocale(player))
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 16:47, 17 November 2019

GetPlayerLocale

Type: Function
Context: Server
Introduced: v1.0

Description

Get the player localiaztion name.

Syntax

GetPlayerLocale(player)

Parameters

  • player
    The player identifier.

Return Value

  • Returns a string with the player's localozation name.

Example

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

See also

__EDIT_ME__