It seems as if spawnmanager offered to set a custom spawn callback instead of its default one, via an exported function setAutoSpawnCallback
. However, every time I try to call the function like exports.spawnmanager:setAutoSpawnCallback(spawnPlayer)
, where spawnPlayer
is my custom callback, it cannot find the function:
“No such export setAutoSpawnCallback in resource spawnmanager”
This happens no matter whether called directly in the script, or in onClientResourceStart
when waiting for spawnmanager to start.
How could a custom spawn callback be set?
Edit: Although I pass a valid callback to setAutoSpawnCallback
, it get’s passed as nil. I suppose exports are still bugged. Wished debugging this was a bit more easier than having to go through 5 client crashes before I even get to the spawn routine and then having to restart the game because there is no disconnect option when the player isn’t spawned.