Fix onPlayerDropped to pass in cb

When third-party scripts use
```lua
debugPrint('[LOGOUT] Awaiting Player to be unloaded [/]')
TriggerEvent('esx:playerLogout', source, function()
	cb()
	debugPrint('[LOGOUT] Player unloaded.')
end)
```
the issue of not passing in functions
This commit is contained in:
DingYUU
2025-08-07 13:11:47 +08:00
committed by GitHub
parent 830c567cfd
commit 0a84ce29d8
+1 -1
View File
@@ -391,7 +391,7 @@ AddEventHandler("esx:setJob", function(_, job, lastJob)
end)
AddEventHandler("esx:playerLogout", function(playerId, cb)
onPlayerDropped(playerId, "esx_player_logout")
onPlayerDropped(playerId, "esx_player_logout", cb)
TriggerClientEvent("esx:onPlayerLogout", playerId)
end)