Skip to content

Commit

Permalink
♻️spawnmanagere revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Thekuca authored Jan 31, 2024
1 parent 3a1bf9e commit ec812ca
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CreateThread(function()
Wait(100)

if NetworkIsPlayerActive(PlayerId()) then
exports.spawnmanager:setAutoSpawn(false)
DoScreenFadeOut(0)
Wait(500)
TriggerServerEvent("esx:onPlayerJoined")
Expand Down
3 changes: 2 additions & 1 deletion [core]/es_extended/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ files {
dependencies {
'/native:0x6AE51D4B',
'/native:0xA61C8FC6',
'oxmysql'
'oxmysql',
'spawnmanager'
}
3 changes: 1 addition & 2 deletions [core]/es_extended/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,7 @@ local DoNotUse = {
["fivem-map-skater"] = true,
["fivem-map-hipster"] = true,
["qb-core"] = true,
["default_spawnpoint"] = true,
["spawnmanager"] = true
["default_spawnpoint"] = true
}

AddEventHandler("onResourceStart", function(key)
Expand Down
1 change: 1 addition & 0 deletions [core]/esx_multicharacter/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if ESX.GetConfig().Multichar then
Wait(100)

if NetworkIsPlayerActive(PlayerId()) then
exports.spawnmanager:setAutoSpawn(false)
DoScreenFadeOut(0)
while GetResourceState("esx_context") ~= "started" do
Wait(100)
Expand Down
1 change: 1 addition & 0 deletions server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ setr esx:locale "en"

## These resources will start by default.
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure hardcap

Expand Down

0 comments on commit ec812ca

Please sign in to comment.