Functions/DarkRP/Shared/getPhrase

From Official DarkRP Wiki
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/getPhrase]DarkRP.getPhrase[/url][/b]

Function parameters

  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

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