Skip to Content
ResourcesMapmanagerEventsonClientGameTypeStart
Report an error
Open in ChatGPTOpen in Claude

onClientGameTypeStart

This client event fires once mapmanager has started the resource for the current game type, letting other resources react to a game type change. Use it to initialize game-mode-specific UI or state, and pair it with onClientGameTypeStop to tear that state down cleanly when the mode changes.

Event Name

onClientGameTypeStart

Parameters

  • string resourceName: The name of the resource/game type that started

Example

on('onClientGameTypeStart', (name) => { console.log('Game type started:', name) })