mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
fix(legacy/multichar): Clear player status when logging out
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user