Functions/DarkRP/Shared/getPhrase

From DarkRP
Function
Function name DarkRP.getPhrase(string key, vararg Phrase parameters)
Description:
Get a phrase from the selected language.
Returns: string phrase
Part of Library: DarkRP
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/getPhrase]DarkRP.getPhrase[/url][/b]

Function parameters[edit]

  1. key (string)
  2. The name of the translated phrase.

  3. Phrase parameters (vararg)
  4. Some phrases need extra information, like in "PLAYERNAME just won the lottery!". Not filling in the phrase parameters will cause errors.


Function return values[edit]

  1. phrase (string)
  2. The formatted phrase.