Fix QBCore OnPlayerUnload event not triggering

This commit is contained in:
Jim Shield
2025-06-20 21:12:53 +01:00
parent 387c97de71
commit 17db5aa31a

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)