Fix QBCore OnPlayerUnload event not triggering

This commit is contained in:
Jim Shield committed 2025-06-20 21:12:53 +01:00
1 parent 387c97de71
commit 17db5aa31a
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ end
--- end)
--- ```
function onPlayerUnload(func)
AddEventHandler('QBCore:Client:OnPlayerUnload', function() func() end)
RegisterNetEvent('QBCore:Client:OnPlayerUnload', function() func() end)
AddEventHandler('ox:playerLogout', function() func() end)
AddEventHandler('RSGCore:Client:OnPlayerUnload', function() func() end)