fix(ambulancejob): Disable spawnPlayer export

- Fixes compatibility for players running basic-gamemode or maps
This commit is contained in:
Linden
2021-06-28 16:36:13 +10:00
parent a17b44b1e7
commit 5e41c24feb
@@ -2,12 +2,6 @@ local firstSpawn = true
isDead, isSearched, medic = false, false, 0
AddEventHandler("onClientMapStart", function()
exports.spawnmanager:spawnPlayer()
Citizen.Wait(5000)
exports.spawnmanager:setAutoSpawn(false)
end)
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
ESX.PlayerData = xPlayer