mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
add features
This commit is contained in:
@@ -513,6 +513,15 @@ ESX.RegisterServerCallback('esx:getPlayerNames', function(source, cb, players)
|
||||
cb(players)
|
||||
end)
|
||||
|
||||
AddEventHandler('txAdmin:events:scheduledRestart', function(eventData)
|
||||
if eventData.secondsRemaining == 60 then
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(50000)
|
||||
ESX.SavePlayers()
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
-- version check
|
||||
Citizen.CreateThread(
|
||||
function()
|
||||
|
||||
Reference in New Issue
Block a user