Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > GetGameLanguage

GetGameLanguage

This function returns the current language of the game.

Syntax

GetGameLanguage()

Return Values

This function can return the following:

  • "E": If the game is in English.
  • "F": If the game is in French.
  • "G": If the game is in German.
  • "S": If the game is in Spanish.

Examples

local Language = GetGameLanguage()

if Language == "E" then
	-- Do stuff if the game is English
else
	-- Do other stuff if not
end

Notes

This is affected by the user's game executable as well as by the Mod Launcher's -language command line argument.

Version History

1.25

Added this function.

Donut Team © 2020 · v4.0