Progetto H — API Reference API & Scripting Documentation
Static function Server Fast

Server.SetMaxPlayers

Sets the maximum player slots of the server, optionally overrides Config.toml

Syntax

Lua
Server.SetMaxPlayers(max_players, persist_to_config_file = false)

Parameters

Name Type Default Description
max_players integer The maximum players
persist_to_config_file optional boolean false Persist to config file