About
mapmanager is an included resource that manages map and game-type resources: starting and stopping them, tracking which one is currently active, and checking compatibility between a given map and game type.
Exports
Exports are called through exports.mapmanager:exportName(args).
Server
getCurrentGameType- Returns the name of the current game type resourcegetCurrentMap- Returns the name of the current map resourcechangeGameType- Stops the current game type (and map, if incompatible), then starts the given game typechangeMap- Stops the current map and starts the given onedoesMapSupportGameType- Returns whether a map resource supports a given game typegetMaps- Returns a table of all available map resourcesroundEnded- Ends the current round
Events
Client
getMapDirectives- Fires to let scripts register map directives through the providedaddfunctiononClientGameTypeStart- Fires when a game type resource has startedonClientGameTypeStop- Fires when a game type resource has stoppedonClientMapStart- Fires when a map resource has startedonClientMapStop- Fires when a map resource has stopped