What resources are required to start a server?

Hi,

I managed to get my server working, I spawned perfectly. Now, I want to begin working on my own gamemode so I removed all of the starting resources apart from chat and my own gamemode (which currently does nothing), and now when I try to join I get stuck on the following:

Setting up game
Initializing session

Is this because my character cannot spawn, what requirements do I need to get my character spawning?

Call ShutdownLoadingScreen() from a script, then do whatever you want. You might want to use the spawnmanager API however to set player models/positions for actual spawning.

Example:

-- inlined the argument as there's no other function this'll call and it has no arguments
-- normally you'd function() end
Citizen.CreateThread(ShutdownLoadingScreen)

-- invoke this event when whatever else decides you want to spawn
RegisterNetEvent('myServerEvent')
AddEventHandler('myServerEvent', function()
    exports.spawnmanager:spawnPlayer({
        x = 0.0, y = 0.0, z = 0.0, model = GetHashKey('a_m_y_skater_01')
    })

    exports.spawnmanager:setAutoSpawnCB(function(spawn)
        exports.spawnmanager:spawnPlayer({
            x = 0.0, y = 0.0, z = 0.0, model = GetHashKey('a_m_y_skater_01')
        })        
    end)

    exports.spawnmanager:setAutoSpawnEnabled(true)
end)