Skip to main content

NETWORK_CHANGE_GAME_MODE

Game.NetworkChangeGameModeHash0x3F054F44
Usage
local result = Game.NetworkChangeGameMode(gameMode, maxPlayers, maxPrivateSlots, maxTeams)

Changes the game mode and number of slots of the current session. Callable only by the host. Number of slots cannot be reduced from their current number.

Parameters

  • gameModeintegerint
  • maxPlayersintegerint
  • maxPrivateSlotsintegerint
  • maxTeamsintegerint

Returns

  • resultbooleanreturn value
Original declaration
// 0x3F054F44
bool NETWORK_CHANGE_GAME_MODE(int gameMode, int maxPlayers, int maxPrivateSlots, int maxTeams);