SixL server API / world / ConfigMp

Interface: ConfigMp

The server's settings: mp.config, a read-only copy of the server config, filled before the packages load.

Remarks

Only these keys exist. RAGE MP's other conf.json keys are not provided; encryption and csharp exist at run time but are always false and meaningless in SixL, so they are not declared.

Example

console.log(mp.config.name, mp.config.maxplayers);

Properties

announce

announce: boolean

Whether the server announces itself to the server list.

Example

const listed = mp.config.announce;

bind

bind: string

The address reported as the server's bind address (informational: the server's own settings decide where it listens).

Example

const bind = mp.config.bind;

gamemode

gamemode: string

The game mode name.

Example

const mode = mp.config.gamemode;

language

language: string

The server's language (BCP 47).

Example

const language = mp.config.language;

maxplayers

maxplayers: number

The maximum number of players.

Example

const max = mp.config.maxplayers;

name

name: string

The server name.

Example

const name = mp.config.name;

port

port: number

The game port (UDP).

Example

const port = mp.config.port;

url

url: string

The server's website address.

Example

const url = mp.config.url;