ISteamApps

List of Functions

Function Reference

apps.getCurrentGameLanguage()
Returns:

(string) The language that the user has set.

SteamWorks:

GetCurrentGameLanguage

Gets the current language that the user has set. This falls back to the Steam UI language if the user hasn’t explicitly picked a language for the title.

For the full list of languages see Supported Languages

Example:

print("The games current language is " .. Steam.apps.getCurrentGameLanguage())
apps.isDlcInstalled(appID)
Parameters:

appID (number) – The App ID of the DLC to check.

Returns:

(boolean) true if the user owns the DLC and it’s currently installed, otherwise false.

SteamWorks:

GetCurrentGameLanguage

Checks if the user owns a specific DLC and if the DLC is installed.

Example:

if Steam.apps.isDlcInstalled(12345) then
    -- Unlock game content
end
apps.getLaunchCommandLineParam()
Returns:

(string) The launch command line parameters

SteamWorks:

GetLaunchCommandLine

Gets the launch command line parameters. Use it to for example parse it for a connect string when implementing game invite functionality using friends.inviteUserToGame().

Example:

local params = Steam.apps.getLaunchCommandLineParam()
local connect_string = tryParseConnectString(params)
if connect_string then
    initiateJoinGame(connect_string)
end

Warning

This is currently hardcoded in luasteam to a 1024 characters maximum.