mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
add compliance with the new *txAdmin:events:serverShuttingDown* event
This commit is contained in:
@@ -674,6 +674,10 @@ AddEventHandler('txAdmin:events:scheduledRestart', function(eventData)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('txAdmin:events:serverShuttingDown', function()
|
||||
Core.SavePlayers()
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:setDuty')
|
||||
AddEventHandler('esx:setDuty', function(bool)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
Reference in New Issue
Block a user