The spawnmanager is a base resource that handles the spawning of the player. It allows you to choose when and where to spawn the player and also control how they respawn.
Spawnmanager is included and maintained at the cfx-server-data repository.
Map resources for mapmanager will have their spawnpoints loaded and usable in spawnmanager, as long as they are started after spawnmanager.
spawnPlayer - Spawns the player using configured spawn pointsaddSpawnPoint - Adds a custom spawn pointremoveSpawnPoint - Removes a spawn pointloadSpawns - Loads spawn points from map resourcessetAutoSpawn - Enables or disables automatic spawningsetAutoSpawnCallback - Sets callback for auto spawnforceRespawn - Forces the player to respawnplayerSpawned - Fires when the player has spawned