diff --git a/gamemode/modules/language/sh_language.lua b/gamemode/modules/language/sh_language.lua index e3ecbb4ea..62891ddc5 100644 --- a/gamemode/modules/language/sh_language.lua +++ b/gamemode/modules/language/sh_language.lua @@ -28,8 +28,8 @@ function DarkRP.getPhrase(name, ...) return (langTable[name] or rp_languages.en[name]) and string.format(langTable[name] or rp_languages.en[name], ...) or nil end -function DarkRP.getPhraseLocalized(name, ply, ...) - local lang = ply and ply:IsValid() and ply:GetInfo("gmod_language") or selectedLanguage +function DarkRP.getPhraseLocalized(ply, name, ...) + local lang = IsValid(ply) and ply:GetInfo("gmod_language") or selectedLanguage local langTable = rp_languages[lang] or rp_languages.en return (langTable[name] or rp_languages.en[name]) and string.format(langTable[name] or rp_languages.en[name], ...) or nil