Update main.lua

This commit is contained in:
Fezz
2025-07-21 22:01:27 +01:00
committed by GitHub
parent 98610a6117
commit 6198cd23b0
+1 -5
View File
@@ -387,11 +387,7 @@ end)
AddEventHandler("esx:playerLogout", function(playerId, cb)
local xPlayer = ESX.GetPlayerFromId(playerId)
if not xPlayer then
return
end
onPlayerDropped(xPlayer.source, "esx_stale_player_obj")
onPlayerDropped(xPlayer.source, "esx_player_logout")
TriggerClientEvent("esx:onPlayerLogout", playerId)
end)