mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix(ambulancejob): Disable spawnPlayer export
- Fixes compatibility for players running basic-gamemode or maps
This commit is contained in:
@@ -2,12 +2,6 @@ local firstSpawn = true
|
|||||||
|
|
||||||
isDead, isSearched, medic = false, false, 0
|
isDead, isSearched, medic = false, false, 0
|
||||||
|
|
||||||
AddEventHandler("onClientMapStart", function()
|
|
||||||
exports.spawnmanager:spawnPlayer()
|
|
||||||
Citizen.Wait(5000)
|
|
||||||
exports.spawnmanager:setAutoSpawn(false)
|
|
||||||
end)
|
|
||||||
|
|
||||||
RegisterNetEvent('esx:playerLoaded')
|
RegisterNetEvent('esx:playerLoaded')
|
||||||
AddEventHandler('esx:playerLoaded', function(xPlayer)
|
AddEventHandler('esx:playerLoaded', function(xPlayer)
|
||||||
ESX.PlayerData = xPlayer
|
ESX.PlayerData = xPlayer
|
||||||
|
|||||||
Reference in New Issue
Block a user