Squirrel/Functions/Server/SetGamemodeName

From VC-MP Wiki

Jump to: navigation, search

Changes the name of the gamemode the server is running.

Syntax

bool SetGamemodeName( string name )

Arguments

  • name - The new gamemode name

Example

This example will change the gamemode name when the corresponding script is loaded.

function onScriptLoad()
{
     SetGamemodeName( "UberCool VC-MP Mode" );
}

Notes

The call onScriptLoad was also used in the example. More info about this in the corresponding page.

Related Functions

squirrel scripting