spawnmanager
About
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.
Exports
Client
- spawnPlayer
- addSpawnPoint
- removeSpawnPoint
- loadSpawns
- setAutoSpawn
- setAutoSpawnCallback
- forceRespawn
Events
Client
Last modified April 1, 2020: Add docs on spawnmanager (5139598)