mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 05:02:15 +00:00
improvement(server): Replace relog command to relog with event
This commit is contained in:
+5
-3
@@ -90,8 +90,10 @@ if ESX.GetConfig().Multichar then
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterCommand('relog', function(source, args, rawCommand)
|
||||
TriggerEvent('esx:playerLogout', source)
|
||||
end, false) -- Still experimental! Requires proper setup and modifications to other resources to properly support relogging
|
||||
RegisterServerEvent("esx_multicharacter:relog")
|
||||
AddEventHandler('esx_multicharacter:relog', function()
|
||||
local src = source
|
||||
TriggerEvent('esx:playerLogout', src)
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user