fix(legacy/multichar): Clear player status when logging out

This commit is contained in:
Linden
2021-05-28 09:58:24 +10:00
committed by GitHub
parent ae9cde16e8
commit b823e7d557
+5
View File
@@ -47,6 +47,11 @@ AddEventHandler('esx_status:unregisterStatus', function(name)
end
end)
RegisterNetEvent('esx:onPlayerLogout')
AddEventHandler('esx:onPlayerLogout', function()
Status = {}
end)
RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
TriggerEvent('esx_status:loaded')