SixL client API / system / UserMpPreferences

Interface: UserMpPreferences

The client's settings scripts may read (mp.user.preferences).

Example

if (mp.user.preferences.lowQualityAssets) { }

Properties

language

readonly language: string

The player's language (BCP 47), as the client was started with.

Example

const lang = mp.user.preferences.language;

lowQualityAssets

readonly lowQualityAssets: boolean

Whether the player chose low-quality server assets.

Remarks

SixL has no low-quality assets: always false.

Example

const low = mp.user.preferences.lowQualityAssets;

serverAddress

readonly serverAddress: string

The address of the server the client joined, as host:port.

Remarks

Empty until the first frame of the game.

Example

mp.console.logInfo(mp.user.preferences.serverAddress);