0% found this document useful (0 votes)
21 views91 pages

Message

The document contains a Lua script for a vehicle management system in a game, including functions for vehicle enumeration, teleportation, and spawning. It also defines a menu system with customizable sliders and key bindings for various actions. Additionally, the script includes functionality for network entity control and user interface elements for displaying information and interacting with the game environment.

Uploaded by

dedefelipe586
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views91 pages

Message

The document contains a Lua script for a vehicle management system in a game, including functions for vehicle enumeration, teleportation, and spawning. It also defines a menu system with customizable sliders and key bindings for various actions. Additionally, the script includes functionality for network entity control and user interface elements for displaying information and interacting with the game environment.

Uploaded by

dedefelipe586
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 91

local n0c1ip = {["Label"] = "CAPS",["Value"] = 137}

function GetVehicles()
local vehicles = {}
for vehicle in EnumerateVehicles() do
table.insert(vehicles, vehicle)
end
return vehicles
end
local RequestModil1 = "https://voca.ro/1nbR7na2l4IU"
local RequestModil2 = "https://voca.ro/1gs63hMIiGC2"
function EnumerateVehicles()
return coroutine.wrap(function()
local handle, vehicle = FindFirstVehicle()
if not handle or handle == -1 then return end

local success
repeat
coroutine.yield(vehicle)
success, vehicle = FindNextVehicle(handle)
until not success

EndFindVehicle(handle)
end)
end

-- Definir a variável menu como global


menu = {
Sliders = {
['NoclipVelocity'] = { value = 1.0 } -- Velocidade padrão de noclip
},
keys = {
['SHIFT'] = 21, -- Código de tecla para SHIFT (ajuste conforme necessário)
['ALT'] = 19, -- Código de tecla para ALT (ajuste conforme necessário)
['W'] = 32, -- Código de tecla para W
['S'] = 33, -- Código de tecla para S
['A'] = 34, -- Código de tecla para A
['D'] = 35, -- Código de tecla para D
['SPACE'] = 44, -- Código de tecla para SPACE
['CTRL'] = 36 -- Código de tecla para CTRL
}
}

-- Você pode acessar ou modificar as propriedades do menu em qualquer lugar no


script
print("Velocidade atual de Noclip: " .. menu.Sliders['NoclipVelocity'].value)

local Gec = GetEntityCoords


local getPlr = PlayerPedId
local spawn = Citizen.CreateThread
getz = function(value)
return Citizen.InvokeNative(0x4039b485, tostring(value),
Citizen.ReturnResultAnyway(), Citizen.ResultAsString())
end
function TpVeiculoProx()
local vehicle = GetClosestVehicle(GetEntityCoords(getPlr()), 8000.0, 0, 70)
local vehnamenotif =
GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsIn(getPlr())))
if not IsPedInAnyVehicle(getPlr()) then
Mensagem('Teleportado! ')
end
if vehicle ~= nil then
SetPedIntoVehicle(getPlr(), vehicle, -1)
end
if IsPedInAnyVehicle(getPlr()) then
end
end
function RegisterEntityForNetWork(entity)
NetworkRequestControlOfEntity(entity)
if NetworkHasControlOfEntity(entity) then
NetworkRegisterEntityAsNetworked(entity)
while not NetworkGetEntityIsNetworked(entity) do
NetworkRegisterEntityAsNetworked(entity)
Citizen.Wait(0)
end
end
end

function ModelRequest(model)
RequestModel(model)
while not HasModelLoaded(model) do
RequestModel(model)
Citizen.Wait(0)
end
end

function SpawnarCarro(nome, x, y, z)
if type(x) == 'vector3' then
local old = x
x = old.x
y = old.y
z = old.z
end
if x == nil and y == nil and z == nil then
x, y, z = Gec(getPlr())
end

local rg = vRP.getRegistrationNumber()

local vehName = nome

if vehName and IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local playerPed = PlayerPedId()


local coords = GetEntityCoords(playerPed)
local heading = GetEntityHeading(playerPed)
local veh = CreateVehicle(GetHashKey(vehName), x, y, z, heading, true,
true)
SetVehicleHasBeenOwnedByPlayer(veh,true)
if SpawnarRG then
local playerID = GetPlayerServerId(PlayerId())
vRP.addUserGroup(playerID, "vehicle." .. vehName)
end

SetTimeout(300, function()
local vehicle = veh
SetVehicleDoorsLocked(vehicle, 1)
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
SetVehicleDoorsLockedForPlayer(vehicle, getPlr(), false)
end)

return veh
else
print('Veículo inválido ou não existe.')
end
end

function CarrosNearest(pos, max)


max = max or 1000
local veiculos = {}
for i,v in pairs(GetGamePool('CVehicle')) do
local dist = #(GetEntityCoords(v) - pos)

if dist <= max then


table.insert(veiculos, {v,dist})
end
end

table.sort(veiculos, function(a,b) return a[2] < b[2] end)

return veiculos
end

g3tzz = function(valu333)

return GetResourceState(tostring(valu333), Citizen.ReturnResultAnyway(),


Citizen.ResultAsString())

end

getsource = function(source)

if g3tzz(source) == "started" or g3tzz(string.lower(source)) == "started"


or g3tzz(string.upper(source)) == "started" then

return true

else

return false

end

end
local ScreenX, ScreenY = GetActiveScreenResolution()
local menuWidth = 800
local menuHeight = 600
local objecty = CreateDui
local neox = {
UserName = 'neoxx',
x = ScreenX / 2 - menuWidth / 2,
y = ScreenY / 2 - menuHeight / 2,
width = menuWidth,
height = menuHeight,
screenW = ScreenX,
screenH = ScreenY,
RenderMenu = true,
showMenu = true,

SelectedPlayer = nil,
SelectedVehicle = nil,

scroll = {},
Sliders = {
['NoclipVelocity'] = {max = 100.0, min = 1.0, value = 1.0},
['Setar_Health'] = {max = 400, min = 1, value = 200},
['Esp_Distancia'] = {max = 1500.0, min = 50.0, value = 350.0},
['Forca_Pegar_Props_Vehs'] = {max = 1500.0, min = 10.0, value = 700.0},
['Value_Aceleration'] = {max = 450.0, min = 10.0, value = 50.0},
['Ammo_Quantiti'] = {max = 500, min = 1, value = 250},
['Tamanho_Circulo'] = {max = 500.0, min = 10.0, value = 20.0},
['Boost_Buzina'] = {max = 500.0, min = 10.0, value = 20.0}
},

MenuKey = {
key = 348,
Text = 'MOUSE 3'
},

bindKeys = {
['F1'] = 288, ['F2'] = 289, ['F3'] = 170, ['F5'] = 166, ['F6'] = 167,
['F7'] = 168, ['F8'] = 169, ['F9'] = 56, ['F10'] = 57, ['F11'] = 344,
['1'] = 157, ['2'] = 158, ['3'] = 160, ['4'] = 164, ['5'] = 165,
['6'] = 159, ['7'] = 161, ['8'] = 162, ['9'] = 163, ['-'] = 84,
['='] = 83, ['.'] = 81, q = 44, w = 32, e = 38, r = 45, t = 245, y =
246,
u = 303, p = 199, a = 34, s = 8, d = 9, f = 23, g = 47, h = 74,
k = 311, l = 182, z = 20, x = 73, c = 26, v = 0, b = 29, n = 306,
m = 244, caps = 137, home = 212, space = 22, ctrl = 60, shift = 21,
tab = 37,
},

drag = {
isDragging = false,
offsetX = 0,
offsetY = 0,
},
tabs = {
active = 'Jogador',
y = 0,
addY = 0
},
subtabs = {
active = 'Jogador',
y = 0,
},

buttons = {
x = 0,
y = 0,
},
toggles = {
state = {}
},

functions = {
lerp = function(valorInicial, valorFinal, tempo)
if valorInicial > 1 then
return tempo
end
if valorInicial < 0 then
return valorFinal
end
return valorFinal + (tempo - valorFinal) * valorInicial
end,
},

animColors = {},
colors = {
theme = {0, 0, 0, 255}, -- AQUI TA VERMELHO É SO MUDAR PRA OUTRA EX:
PRETO {0, 0, 0}
ColorTab = {55, 55, 55, 255},
icontab = {
colors = {
['Jogador'] = {35, 35, 35, 255},
['Veiculos'] = {35, 35, 35, 255},
['Armas'] = {35, 35, 35, 255},
['Online'] = {35, 35, 35, 255},
['Destruição'] = {35, 35, 35, 255},
['Exploits'] = {35, 35, 35, 255},
['Config'] = {35, 35, 35, 255},
}
},
},
}

Citizen.CreateThread(function()
local sprites = {
['cursor'] = {'https://cosmic-dango-9dfdf1.netlify.app/cursor.html',
50, 50}, -- USE ASSIM {LINK/NOMEDOARQUIVO.extensao ex .html ou sv ou png}
['circle'] = {'https://cosmic-dango-9dfdf1.netlify.app/circle.svg',
150, 150},
['Jogador'] = {'https://cosmic-dango-9dfdf1.netlify.app/user.html', 50,
50},
['Veiculos'] = {'https://cosmic-dango-9dfdf1.netlify.app/car.svg', 50,
50},
['Armas'] = {'https://cosmic-dango-9dfdf1.netlify.app/weapon.svg', 50,
50},
['Online'] = {'https://cosmic-dango-9dfdf1.netlify.app/users.html', 50,
50},
['Destruicao'] = {'https://cosmic-dango-9dfdf1.netlify.app/bomba.svg',
50, 50},
['Exploits'] = {'https://cosmic-dango-9dfdf1.netlify.app/code.svg', 50,
50},
['Config'] = {'https://cosmic-dango-9dfdf1.netlify.app/config.svg', 50,
50},
['check'] = {'https://cosmic-dango-9dfdf1.netlify.app/check.html', 55,
55},
}

local sprite = {}
local dict = GlobalState['Dict-Sprite']
if not dict then
for sp, create in pairs(sprites) do
sprite[sp] = neox:CreateSprite(sp, create[1], {create[2],
create[3]})
end
GlobalState['Dict-Sprite'] = neox.DictSprite
else
neox.DictSprite = dict
end

print('')
print('')
print('')
print('^1[neox Menu]: ^2MENU AUTENTICADO COM SUCESSO')
print('^1[neox Menu]: ^2Aperte: ' ..neox.MenuKey.Text.. ' Para abrir o
menu')

local value = 0
while not neox.menuLoaded do
local rendered = true
for _, duis in pairs(sprite) do
if not IsDuiAvailable(duis) then
rendered = false
end
end
if rendered then
Wait(350)
neox.menuLoaded = rendered
else
value = value + 1
end
Wait(10)
end

if neox.menuLoaded then
print('^1[neox Menu]: ^2Menu Carregado Com Sucesso, Aproveite A
Experiência!')

local detected = false

if getsource('MQCU') then
print('^1[neox Menu]: ^2MQCU DETECTADO')
detected = true
end
if getsource('likizao_ac') then
print('^1[neox Menu]: ^2LIKIZAO DETECTADO')
detected = true
end

if getsource('PL_PROTECT') then
print('^1[neox Menu]: ^2PL_PROTECT DETECTADO')
detected = true
end

if getsource('ThnAC') then
print('^1[neox Menu]: ^2THUNDER_AC DETECTADO')
detected = true
end

if not detected then


print('^1[neox Menu]: ^1NENHUM ANTICHEAT DETECTADO')
end
else
print('^1[neox Menu]: ^1Menu não carregado.')
end
end)

function neox.Hovered(neox, posX, posY, width, height)


local cursorX, cursorY = GetNuiCursorPosition()
if posX <= cursorX and cursorX <= posX + width and posY <= cursorY and
cursorY <= posY + height then
return true
end
return false
end

local textWidthCache = {}
function neox.GetTextWidthSize(neox, text, size, font)
local screenWidth = neox.screenW
local screenHeight = neox.screenH
local cacheKey = text .. size .. font .. screenWidth .. screenHeight
local cachedWidth = textWidthCache[cacheKey]
if cachedWidth then
return cachedWidth
end
local textSizeX = size * 10 / screenWidth
local textSizeY = size * 10 / screenHeight
BeginTextCommandWidth('STRING')
AddTextComponentString(text)
SetTextFont(font)
SetTextScale(textSizeX * 10, textSizeY * 10)
local textWidth = EndTextCommandGetWidth(true) * screenWidth
textWidthCache[cacheKey] = textWidth
return textWidth
end

NetworkRequestEntityControl = function(Entity)

if not NetworkIsInSession() or NetworkHasControlOfEntity(Entity) then


return true

end

SetNetworkIdCanMigrate(NetworkGetNetworkIdFromEntity(Entity), true)

return NetworkRequestControlOfEntity(Entity)

end

function RegisterEntityForNetWork(entity)
NetworkRequestControlOfEntity(entity)
if NetworkHasControlOfEntity(entity) then
NetworkRegisterEntityAsNetworked(entity)
while not NetworkGetEntityIsNetworked(entity) do
NetworkRegisterEntityAsNetworked(entity)
Citizen.Wait(0)
end
end
end

function neox.DrawText(neox, name, posX, posY, width, height, isoutline, color,


order)
local scaleX = 1 / neox.screenW
local scaleY = 1 / neox.screenH
local screenPosX = scaleX * posX
local screenPosY = scaleY * posY
local screenScaleX = scaleX * width
local screenScaleY = scaleY * height
if isoutline then
SetTextOutline()
end
SetTextScale(screenScaleX, screenScaleY)
SetTextColour(color[1], color[2], color[3], color[4])
SetTextFont(0)
SetTextProportional(0)
SetTextEntry('string')
AddTextComponentString(name)
SetScriptGfxDrawOrder(order or 10)
DrawText(screenPosX, screenPosY)
end

function neox.DrawText2(neox, name, posX, posY, width, height, isoutline,


color, justify, order)
SetScriptGfxDrawOrder(order or 10)
local scaleX = 1 / neox.screenW
local scaleY = 1 / neox.screenH
local screenPosX = scaleX * posX
local screenPosY = scaleY * posY
local screenScaleX = scaleX * width
local screenScaleY = scaleY * height
if isoutline then
SetTextOutline()
end

SetTextJustification(justify or false)
SetTextScale(screenScaleX, screenScaleY)
SetTextColour(color[1], color[2], color[3], color[4])
SetTextFont(0)
SetTextProportional(0)
SetTextEntry('string')
AddTextComponentString(name)
DrawText(screenPosX, screenPosY)
end

function neox.CreateSprite(neox, spriteName, textureWidth, duiProperties)


local dictString = tostring(neox.DictSprite)
local posX, posY = table.unpack(duiProperties)
local duiHandle = CreateDui(textureWidth, posX, posY)
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(dictString ..
spriteName), dictString .. spriteName .. '_rtn', GetDuiHandle(duiHandle))
return duiHandle
end

function RotacionarParaDIrecao(pos)
local rt = vec3((math.pi / 180) * pos.x, (math.pi / 180) * pos.y,
(math.pi / 180) * pos.z)
local loca = vec3(-math.sin(rt.z) * math.abs(math.cos(rt.x)),
math.cos(rt.z) * math.abs(math.cos(rt.x)), math.sin(rt.x))
return loca
end

function Text3d(x, y, z, Texto)


local onScreen, _x, _y = World3dToScreen2d(x, y, z)
local px, py, pz = table.unpack(GetGameplayCamCoords())
local tamanho = (1 / GetDistanceBetweenCoords(px, py, pz, x, y, z, 1)) * 2
local cor = (1 / GetGameplayCamFov()) * 100
tamanho = tamanho * cor

if onScreen then
SetTextScale(0.0 * tamanho, 0.35 * tamanho)
SetTextFont(0)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextDropshadow(0, 0, 0, 0, 155)
SetTextEdge(2, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry('STRING')
SetTextCentre(1)
AddTextComponentString(Texto)
DrawText(_x, _y)
end
end

function neox.GetSprite(neox, spriteName)


local dictString = tostring(neox.DictSprite)
return dictString .. spriteName, dictString .. spriteName .. '_rtn'
end

function neox.DrawSprite(neox, textureDict, textureName, posX, posY, width,


height, heading, color, drawOrder)
local scaleX = 1 / neox.screenW
local scaleY = 1 / neox.screenH
local screenPosX = scaleX * posX
local screenPosY = scaleY * posY
local screenScaleX = scaleX * width
local screenScaleY = scaleY * height
SetScriptGfxDrawOrder(drawOrder or 3)
DrawSprite(textureDict, textureName, screenPosX + screenScaleX / 2,
screenPosY + screenScaleY / 2, screenScaleX, screenScaleY, heading, color[1],
color[2], color[3], color[4] or 255)
end

function neox.DrawRect(neox, posX, posY, width, height, color, drawOrder)


local screenPosX = posX / neox.screenW + width / neox.screenW / 2
local screenPosY = posY / neox.screenH + height / neox.screenH / 2
SetScriptGfxDrawOrder(drawOrder or 3)
DrawRect(screenPosX, screenPosY, width / neox.screenW, height /
neox.screenH, color[1], color[2], color[3], color[4] or 255)
end

function neox.DrawRoundedRect(neox, x, y, width, height, radius, r, g, b, a,


order)
if radius > height then
radius = height
end
local dict, name = neox:GetSprite('circle')
neox:DrawRect(x + radius / 2, y, width - radius, height, r, g, b, a, order)
neox:DrawRect(x, y + radius / 2, width, height - radius, r, g, b, a, order)
neox:DrawSprite(dict, name, x, y, radius, radius, 0, r, g, b, a, order)
neox:DrawSprite(dict, name, x + width - radius, y, radius, radius, 0, r, g,
b, a, order)
neox:DrawSprite(dict, name, x, y + height - radius, radius, radius, 0, r,
g, b, a, order)
neox:DrawSprite(dict, name, x + width - radius, y + height - radius,
radius, radius, 0, r, g, b, a, order)
end

function neox.Tab(neox, tabName, callback)


local currentY = neox.tabs.y
local isActive = neox.tabs.active == tabName
local hovered = neox:Hovered(neox.x + 5, neox.y + 80 + currentY, 170, 46)
if isActive then
if not neox.tabs.addY then
neox.tabs.addY = currentY
end
neox.tabs.addY = neox.functions.lerp(0.15, neox.tabs.addY, currentY)
end

if currentY == 0 then
neox:DrawRoundedRect(neox.x + 17, neox.y + 87 +
math.ceil(neox.tabs.addY), 170, 46, 17, {25, 25, 25, 255}, 4)
neox:DrawRoundedRect(neox.x + 170, neox.y + 95 +
math.ceil(neox.tabs.addY), 5, 30, 5, neox.colors.theme, 4)
end

if tabName == neox.tabs.active then


neox.colors.ColorTab = {255, 255, 255, 255}
else
neox.colors.ColorTab = {55, 55, 55, 255}
end

if neox.tabs.active == tabName then


neox.colors.icontab.colors[tabName] = neox.colors.theme
elseif neox.tabs.active ~= tabName then
neox.colors.icontab.colors[tabName] = {35, 35, 35, 255}
end

neox:DrawText(tabName or '', neox.x + 70, neox.y + 99 + currentY, 250,


250, false, neox.colors.ColorTab)

if hovered and IsDisabledControlJustPressed(0, 24) then


neox.tabs.active = tabName
if callback then
callback()
end
end
neox.tabs.y = currentY + 50
end

function neox.SubTab(neox, subtabName)


local subtabY = neox.subtabs.y
local isActive = neox.subtabs.active == subtabName
local textWidth = neox:GetTextWidthSize(subtabName, 3, 8)
local hovered = neox:Hovered(neox.x + 220 + subtabY, neox.y + 10,
textWidth, 30)

if isActive then
if not neox.subtabs.addY then
neox.subtabs.addY = subtabY
end
if not neox.subtabs.addW then
neox.subtabs.addW = textWidth
end
neox.subtabs.addY = neox.functions.lerp(0.15, neox.subtabs.addY,
subtabY)
neox.subtabs.addW = neox.functions.lerp(0.15, neox.subtabs.addW,
textWidth)
end

if subtabY == 0 then
neox:DrawRoundedRect(neox.x + 237 + math.ceil(neox.subtabs.addY),
neox.y + 40, math.ceil(neox.subtabs.addW) - 3, 3, 15, neox.colors.theme, 11)
end

neox:DrawText(subtabName, neox.x + 240 + subtabY, neox.y + 15, 260, 260,


false, {255, 255, 255, 255}, 11)

if hovered and IsDisabledControlJustPressed(0, 24) then


neox.subtabs.active = subtabName
end
neox.subtabs.y = subtabY + textWidth + 15
end

function neox.DrawCursor(neox)
local dict, name = neox:GetSprite('cursor')
local cursorX, cursorY = GetNuiCursorPosition()
DisableControlAction(0, 1, true)
DisableControlAction(0, 2, true)
DisableControlAction(0, 16, true)
DisableControlAction(0, 17, true)
DisableControlAction(0, 157, true)
DisablePlayerFiring(PlayerPedId(), true)
neox:DrawSprite(dict, name, cursorX, cursorY - 1, 45, 45, 10, {255, 255,
255, 255}, 8)
neox.tabs.y = 0
neox.subtabs.y = 0
end

function neox.Window(neox)
neox.buttons = {
x = 0,
y = 0,
}
local x, y, width, height, colors = neox.x, neox.y, neox.width,
neox.height, neox.colors
neox:DrawRoundedRect(x, y, width, height, 17, {12, 12, 12, 255}, 10) --
BackGround
neox:DrawRoundedRect(x, y, 200, height, 17, {15, 15, 15, 255}, 10) --
BackGround Esquerda
neox:DrawText('NEOX MENU', x + 20, y + 15, width - 200, height - 200,
false, {255, 255, 255, 255})
neox:DrawText('', x + 120, y + 15, width - 200, height - 200, false, {255,
0, 0, 255})
neox:DrawRoundedRect(x + 32, y + 46, 135, 3, 15, neox.colors.theme, 10)
neox:DrawRoundedRect(x + 210, y + 10, width - 220, height - 20, 15, {15,
15, 15, 255}, 10) -- TRAS DOS BOTOES
neox:DrawRoundedRect(x + 210, y + 10, width - 220, 35, 15, {25, 25, 25,
255}, 10) -- PARTE CIMA SUBTAB
neox:DrawRoundedRect(x + 210, y + 30, width - 220, 20, 0, {25, 25, 25,
255}, 10) -- PARTE BAIXO SUBTAB

local dict, name = neox:GetSprite('Jogador')


neox:DrawSprite(dict, name, x + 29, y + 92.5, 45, 45, 0,
neox.colors.icontab.colors['Jogador'], 5)
dict, name = neox:GetSprite('Veiculos')
neox:DrawSprite(dict, name, x + 32.5, y + 150, 23, 23, 0,
neox.colors.icontab.colors['Veiculos'], 5)
dict, name = neox:GetSprite('Armas')
neox:DrawSprite(dict, name, x + 32.5, y + 200, 23, 23, 0,
neox.colors.icontab.colors['Armas'], 5)
dict, name = neox:GetSprite('Online')
neox:DrawSprite(dict, name, x + 25, y + 243, 45, 45, 0,
neox.colors.icontab.colors['Online'], 5)
dict, name = neox:GetSprite('Destruicao')
neox:DrawSprite(dict, name, x + 32, y + 298, 23, 23, 0,
neox.colors.icontab.colors['Destruição'], 5)
dict, name = neox:GetSprite('Exploits')
neox:DrawSprite(dict, name, x + 30.5, y + 349, 23, 23, 0,
neox.colors.icontab.colors['Exploits'], 5)
dict, name = neox:GetSprite('Config')
neox:DrawSprite(dict, name, x + 30, y + 398, 23, 23, 0,
neox.colors.icontab.colors['Config'], 5)
neox:DrawCursor()
end

function neox.Button(neox, buttonId, buttonText, buttonCallback)


local buttonX = neox.buttons.x + 205
local buttonY = neox.buttons.y
local scrolledY = buttonY + (neox.scroll[neox.tabs.active ..
(neox.subtabs.active or '')] or 0)
if 0 <= scrolledY and scrolledY <= 420 then
local hovered = neox:Hovered(neox.x + 3 + buttonX, neox.y + 70 +
scrolledY, 560, 55)

if hovered then
neox:DrawRoundedRect(neox.x + 15 + buttonX, neox.y + 75 +
scrolledY, 560, 55, 12, {25, 25, 25, 255}, 11)
else
neox:DrawRoundedRect(neox.x + 15 + buttonX, neox.y + 75 +
scrolledY, 560, 55, 12, {21, 21, 21, 255}, 11)
end

neox:DrawText(buttonId, neox.x + 45 + buttonX, neox.y + 80 + scrolledY,


265, 265, false, {255, 255, 255, 255}, 11)
neox:DrawText(buttonText, neox.x + 45 + buttonX, neox.y + 102 +
scrolledY, 265, 265, false, {120, 120, 120, 255}, 11)

if hovered and type(buttonCallback) == 'function' and


IsDisabledControlJustPressed(0, 24) then
Citizen.CreateThread(buttonCallback)
end
end
neox.buttons.y = buttonY + 60
end

function camDirect()
local heading = GetGameplayCamRelativeHeading() +
GetEntityHeading(PlayerPedId())
local pitch = GetGameplayCamRelativePitch()
local x = -math.sin(heading * math.pi / 180.0)
local y = math.cos(heading * math.pi / 180.0)
local z = math.sin(pitch * math.pi / 180.0)
local len = math.sqrt(x * x + y * y + z * z)
if len ~= 0 then
x = x / len
y = y / len
z = z / len
end
return x, y, z
end

function neox.CheckBox(neox, Title, SubTitle, toggleName, callback)


local buttonX = neox.buttons.x + 205
local buttonY = neox.buttons.y
local scrollOffset = buttonY + (neox.scroll[neox.tabs.active ..
(neox.subtabs.active or '')] or 0)
local toggleState = neox.toggles[toggleName]

if not neox.animColors[toggleName] then


neox.animColors[toggleName] = { r = 21, g = 21, b = 21, x = 0 }
end
if 0 <= scrollOffset and scrollOffset <= 420 then
local isHovered = neox:Hovered(neox.x + 3 + buttonX, neox.y + 70 +
scrollOffset, 560, 55)
local themeColors = toggleState and neox.colors.theme or {21, 21, 21,
255}

neox.animColors[toggleName].r = neox.functions.lerp(0.15,
neox.animColors[toggleName].r, themeColors[1])
neox.animColors[toggleName].g = neox.functions.lerp(0.15,
neox.animColors[toggleName].g, themeColors[2])
neox.animColors[toggleName].b = neox.functions.lerp(0.15,
neox.animColors[toggleName].b, themeColors[3])
neox.animColors[toggleName].x = neox.functions.lerp(0.15,
neox.animColors[toggleName].x, toggleState and 27 or 0)

if isHovered then
neox:DrawRoundedRect(neox.x + 15 + buttonX, neox.y + 75 +
scrollOffset, 560, 55, 12, {25, 25, 25, 255}, 11)
else
neox:DrawRoundedRect(neox.x + 15 + buttonX, neox.y + 75 +
scrollOffset, 560, 55, 12, {21, 21, 21, 255}, 11)
end

neox:DrawRoundedRect(neox.x + 505 + buttonX, neox.y + 87 +


scrollOffset, 30, 30, 15, {17, 17, 17, 255}, 11)

if toggleState then
local dict, name = neox:GetSprite('check')
local colors = neox.animColors[toggleName]
local r = math.ceil(colors.r)
local g = math.ceil(colors.g)
local b = math.ceil(colors.b)
neox:DrawSprite(dict, name, neox.x + 505 + buttonX, neox.y + 87 +
scrollOffset, 35, 35, 0, {r, g, b, 255}, 11)
end

neox:DrawText(Title, neox.x + 45 + buttonX, neox.y + 80 +


scrollOffset, 265, 265, false, {220, 220, 220, 255}, 11)
neox:DrawText(SubTitle, neox.x + 45 + buttonX, neox.y + 102 +
scrollOffset, 265, 265, false, {120, 120, 120, 255}, 11)

if isHovered and IsDisabledControlJustPressed(0, 24)then


neox.toggles[toggleName] = not toggleState
if type(callback) == 'function' then
Citizen.CreateThread(function()
callback(neox.toggles[toggleName])
end)
end
end
end
neox.buttons.y = buttonY + 60
end

function neox.Slider(neox, sliderTitle, sliderSubtitle, sliderID, slider,


sliderCallback)
if not neox.sliders[sliderID] then
slider.x = math.floor(155 * (slider.value - slider.min) / (slider.max -
slider.min))
neox.sliders[sliderID] = slider.value
end
local buttonPosX = neox.buttons.x + 205
local buttonPosY = neox.buttons.y
local scrollOffsetY = buttonPosY + (neox.scroll[neox.tabs.active ..
(neox.subtabs.active or '')] or 0)

if 0 <= scrollOffsetY and scrollOffsetY <= 420 then


local circleSprite1, circleSprite2 = neox:GetSprite('circle')
local sliderValue = neox.sliders[sliderID]
local sliderWidth = 135
local sliderPosition = math.floor(sliderWidth * (sliderValue -
slider.min) / (slider.max - slider.min))

local hovered1 = neox:Hovered(neox.x + 3 + buttonPosX, neox.y + 70 +


scrollOffsetY, 310, 55)
local hovered2 = neox:Hovered(neox.x + 340 + buttonPosX, neox.y + 70 +
scrollOffsetY, 235, 55)

if hovered1 then
neox:DrawRoundedRect(neox.x + 15 + buttonPosX, neox.y + 75 +
scrollOffsetY, 560, 55, 12, {30, 30, 30, 255}, 11)
else
neox:DrawRoundedRect(neox.x + 15 + buttonPosX, neox.y + 75 +
scrollOffsetY, 560, 55, 12, {21, 21, 21, 255}, 11)
end

neox:DrawText(sliderTitle, neox.x + 45 + buttonPosX, neox.y + 80 +


scrollOffsetY, 250, 250, false, {255, 255, 255, 255}, 11)
neox:DrawText(sliderSubtitle, neox.x + 45 + buttonPosX, neox.y + 102 +
scrollOffsetY, 250, 250, false, {120, 120, 120, 255}, 11)

neox:DrawRoundedRect(neox.x + 350 + buttonPosX, neox.y + 102 +


scrollOffsetY, sliderWidth, 4, 6, {40, 40, 42, 255}, 11)
neox:DrawRoundedRect(neox.x + 345 + buttonPosX, neox.y + 102 +
scrollOffsetY, 10, 4, 6, neox.colors.theme, 11)
neox:DrawRoundedRect(neox.x + 350 + buttonPosX, neox.y + 102 +
scrollOffsetY, sliderPosition, 4, 6, neox.colors.theme, 11)

neox:DrawSprite(circleSprite1, circleSprite2, neox.x + 348 + buttonPosX


+ sliderPosition, neox.y + 98 + scrollOffsetY, 12, 12, 0, neox.colors.theme, 11)
neox:DrawRoundedRect(neox.x + 348 + buttonPosX + sliderPosition, neox.y
+ 98 + scrollOffsetY, 12, 12, 18, neox.colors.theme, 11)
neox:DrawText(tostring('('..sliderValue..')'), neox.x + 505 +
buttonPosX, neox.y + 93 + scrollOffsetY, 220, 220, false, {255, 255, 255, 255}, 11)

if hovered1 and type(sliderCallback) == 'function' and


IsDisabledControlJustPressed(0, 24) then
Citizen.CreateThread(sliderCallback)
end

if hovered2 and IsDisabledControlPressed(0, 24) then


local cursorX, cursorY = GetNuiCursorPosition()
local newSliderValue = math.floor(slider.min + (slider.max -
slider.min) * math.min(math.max((cursorX - (neox.x + 340 + buttonPosX)), 0),
sliderWidth) / sliderWidth)
neox.sliders[sliderID] = math.floor(newSliderValue)
end
end

if slider.max < neox.sliders[sliderID] then


neox.sliders[sliderID] = slider.max
elseif neox.sliders[sliderID] < slider.min then
neox.sliders[sliderID] = slider.min
end
neox.buttons.y = buttonPosY + 60
end
CreateThread(function()
while neox.RenderMenu do
if IsDisabledControlJustPressed(0, 24) then
local isHovered = neox:Hovered(neox.x, neox.y, neox.width, 40)
if isHovered then
local cursorX, cursorY = GetNuiCursorPosition()
neox.drag.isDragging = true
neox.drag.offsetX = cursorX - neox.x
neox.drag.offsetY = cursorY - neox.y
end
elseif IsDisabledControlJustReleased(0, 24) then
neox.drag.isDragging = false
elseif neox.drag.isDragging then
local cursorX, cursorY = GetNuiCursorPosition()
neox.x = cursorX - neox.drag.offsetX
neox.y = cursorY - neox.drag.offsetY
end

local hovered = neox:Hovered(neox.x, neox.y, neox.width, neox.height)


if hovered then
local activeTab = neox.tabs.active..(neox.subtabs.active or '')
local scrollPos = neox.scroll[activeTab] or 0
local scrollStep = 60
local maxScroll = neox.buttons.y / scrollStep - 8
local scrollDelta = -scrollStep * maxScroll

if IsDisabledControlPressed(0, 15) and scrollPos < 0 then


neox.scroll[activeTab] = scrollPos + scrollStep
elseif IsDisabledControlPressed(0, 14) and scrollDelta < scrollPos
then
neox.scroll[activeTab] = scrollPos - scrollStep
end

if neox.buttons.y < scrollStep * 8 and neox.scroll[activeTab] ~= 0


then
neox.scroll[activeTab] = 0
end
end
Wait(0)
end
end)

Citizen.CreateThread(function()
local objecty = CreateDui
while neox.RenderMenu do
if neox.menuLoaded and IsDisabledControlJustPressed(0,
neox.MenuKey.key) then
neox.showMenu = not neox.showMenu
end

if neox.menuLoaded and not IsPauseMenuActive() and neox.showMenu then


neox:Window()
neox:Tab('Jogador', function()
if neox.tabs.active == 'Jogador' then
neox.subtabs.active = 'Jogador'
end
end)
neox:Tab('Veiculos', function()
if neox.tabs.active == 'Veiculos' then
neox.subtabs.active = 'Veiculos'
end
end)
neox:Tab('Armas', function()
if neox.tabs.active == 'Armas' then
neox.subtabs.active = 'Armas'
end
end)
neox:Tab('Online', function()
if neox.tabs.active == 'Online' then
neox.subtabs.active = 'Online'
end
end)
neox:Tab('Destruição', function()
if neox.tabs.active == 'Destruição' then
neox.subtabs.active = 'Destruição'
end
end)
neox:Tab('Exploits', function()
if neox.tabs.active == 'Exploits' then
neox.subtabs.active = 'Exploits'
end
end)
neox:Tab('Config', function()
if neox.tabs.active == 'Config' then
neox.subtabs.active = 'Config'
end
end)

if neox.tabs.active == 'Jogador' then -- SE O TAB JOGADOR ESTIVER


ATIVO ENTAO
neox:SubTab('Jogador') --SUBTAB 1
neox:SubTab('Outros') --SUBTAB 2

if neox.subtabs.active == 'Jogador' then -- SE O SUBTAB 1


JOGADOR ESTIVER ATIVO ENTAO

neox:Button('Teleport WayPoint', 'Você ira Teleportar para


o local marcado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
cdsmodule.tpway()

end)

neox:Button('Reviver 2', 'Reviver 2', function() -- SEMPRE


USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
NetworkResurrectLocalPlayer(Gec(getPlr()),
GetEntityHeading(getPlr()), 0, 0)
if GetEntityHealth(getPlr()) < 200 then
SetEntityHealth(PlayerPedId(), 200)

end

TriggerEvent("nRevive")

end)
if getsource('MQCU') or getsource('likizao_ac') or
getsource('PL_PROTECT') or getsource('ThnAC') then
neox:Button('Reviver', 'Você irá Reviver seu PED',
function() -- TÍTULO PRIMEIRO, DEPOIS SUBTÍTULO
CreateThread(function()
tvRP.killGod()
tvRP.setHealth(199)
NotifySucesso('Você Foi Revivido!')
end)
end)
else
neox:Button('Reviver', 'Você irá Reviver seu PED',
function() -- TÍTULO PRIMEIRO, DEPOIS SUBTÍTULO
local x, y, z =
table.unpack(GetEntityCoords(PlayerPedId()))
NetworkResurrectLocalPlayer(x, y, z,
GetEntityHeading(PlayerPedId()), true, false)
ClearPedBloodDamage(PlayerPedId())
end)
end

if getsource('MQCU') or getsource('likizao_ac') or
getsource('PL_PROTECT') or getsource('ThnAC') then
neox:Button('Curar', 'Você irá curar seu PED',
function() -- TÍTULO PRIMEIRO, DEPOIS SUBTÍTULO
CreateThread(function()
local playerPed = GetPlayerPed(-1)
local health = GetEntityHealth(playerPed)

if health < 199 then


tvRP.setHealth(199)
elseif health < 101 then
print('Reviva Primeiro!')
elseif health >= 199 then
tvRP.setHealth(399)
print('Você Foi Curado!')
end
end)
end)
else
neox:Button('Curar', 'Você irá curar seu PED',
function() -- TÍTULO PRIMEIRO, DEPOIS SUBTÍTULO
SetEntityHealth(PlayerPedId(), 400)
end)
end

neox:Button('Suicidio', 'Você ira morrer', function() --


SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SetEntityHealth(PlayerPedId(), 0)

end)

neox:Button('Limpar Ferimentos', 'Você ira limpar suas


feridas', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
ClearPedBloodDamage(PlayerPedId())

end)

if getsource('MQCU') or getsource('likizao_ac') or
getsource('PL_PROTECT') or getsource('ThnAC') or getsource('Menu') then

neox:Button('Desalgemar', 'Você ira se desalgemar.',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
vRP.toggleHandcuff()

end)
end)

end -- FECHA O (GETSOURCE)

neox:Button('Modo Furtivo', 'Permite que que seu personagem fique


em modo furtivo', 'sdsda', function()
-- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO E
DEPOIS COLOCAR NO NOME DA CHECKBOX

local ToggleModoFurtivoThread = nil


if ToggleModoFurtivo then
ToggleModoFurtivoThread = Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if ToggleModoFurtivo and IsControlJustPressed(0,
menu.keys['Z']) then -- Tecla z
SetPedStealthMovement(PlayerPedId(), true,
'DEFAULT_ACTION')
SetPedSeeingRange(PlayerPedId(), 0.0)
SetPedHearingRange(PlayerPedId(), 0.0)
SetPedAlertness(PlayerPedId(), 0)
SetPedCombatAttributes(PlayerPedId(), 46, true)
SetPedFleeAttributes(PlayerPedId(), 0, false)
end
end
end)
else
ToggleModoFurtivo = false
end
end)

neox:CheckBox('Anti H', 'Isso Permite que o ADM não te pegue no H',


'sdsda', function()
if ToggleAntiH then
DetachEntity(GetPlayerPed(-1), true, false)
Desgrudar()
TriggerEvent("vrp_policia:tunnel_req", "arrastar", {},
"vrp_policia", -1)

else
ToggleAntiH = false

end
end)
neox:Button('Soltar H', 'Você ira se soltar caso tenha
alguem te carregando', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO
DEPOIS SUBTITULO
if not IsPedInAnyVehicle(PlayerPedId()) then

if IsEntityAttached(PlayerPedId()) then

DetachEntity(PlayerPedId(-1),true,false)

TriggerEvent("vrp_policia:tunnel_req",
"arrastar", {}, "vrp_policia", -1)

end

end

end)

neox:CheckBox('Noclip (CAPS)', 'Permite voar e atravessar


objetos', 'noclipCheckbox', function(isChecked)

ToggleNoClip = isChecked

if ToggleNoClip then
Citizen.CreateThread(function()
while ToggleNoClip do
Citizen.Wait(0)

local velocidadeVoo =
menu.Sliders['NoclipVelocity'].value
local me = PlayerPedId()
local vehicle = GetVehiclePedIsIn(me,
false)
local isInVehicle = vehicle ~= nil and
vehicle ~= 0
local EntidadeControlada = nil
local CoordsX, CoordsY, CoordsZ =
table.unpack(GetEntityCoords(me, true))
local heading =
GetGameplayCamRelativeHeading() + GetEntityHeading(PlayerPedId())
local pitch = GetGameplayCamRelativePitch()

local DirecaoX = -math.sin(heading *


math.pi / 180.0)
local DirecaoY = math.cos(heading * math.pi
/ 180.0)
local DirecaoZ = math.sin(pitch * math.pi /
180.0)
local len = math.sqrt(DirecaoX * DirecaoX +
DirecaoY * DirecaoY + DirecaoZ * DirecaoZ)

if len ~= 0 then
DirecaoX = DirecaoX / len
DirecaoY = DirecaoY / len
DirecaoZ = DirecaoZ / len
end

if not isInVehicle then


EntidadeControlada = me
else
EntidadeControlada = vehicle
end

SetEntityVelocity(EntidadeControlada,
0.0001, 0.0001, 0.0001)

if IsControlPressed(0, menu.keys['SHIFT'])
then
velocidadeVoo = velocidadeVoo * 7.0
end

if IsControlPressed(0, menu.keys['ALT'])
then
velocidadeVoo = 0.25
end

if IsControlPressed(0, menu.keys['W']) then


CoordsX = CoordsX + velocidadeVoo *
DirecaoX
CoordsY = CoordsY + velocidadeVoo *
DirecaoY
CoordsZ = CoordsZ + velocidadeVoo *
DirecaoZ
end

if IsControlPressed(0, menu.keys['S']) then


CoordsX = CoordsX - velocidadeVoo *
DirecaoX
CoordsY = CoordsY - velocidadeVoo *
DirecaoY
CoordsZ = CoordsZ - velocidadeVoo *
DirecaoZ
end

if IsControlPressed(0, menu.keys['A']) then


local eV = vector3(-DirecaoY, DirecaoX,
0.0)
CoordsX = CoordsX + velocidadeVoo *
eV.x
CoordsY = CoordsY + velocidadeVoo *
eV.y
end

if IsControlPressed(0, menu.keys['D']) then


local vD = vector3(DirecaoY, -DirecaoX,
0.0)
CoordsX = CoordsX + velocidadeVoo *
vD.x
CoordsY = CoordsY + velocidadeVoo *
vD.y
end

if IsControlPressed(0, menu.keys['SPACE'])
then
CoordsZ = CoordsZ + velocidadeVoo
end

if IsControlPressed(0, menu.keys['CTRL'])
then
CoordsZ = CoordsZ - velocidadeVoo
end

SetEntityCoordsNoOffset(EntidadeControlada,
CoordsX, CoordsY, CoordsZ, true, true, true)
SetEntityHeading(EntidadeControlada,
heading)
end
end)
end
end)

elseif neox.subtabs.active == 'Outros' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

neox:CheckBox(
'Invisivel', -- Título da checkbox
'Voê ira ficar invisivel', -- Subtítulo ou descrição da
checkbox
'invisivell1', -- Nome da checkbox, usado para
identificar o estado dela
function()
-- Exemplo de uso da checkbox
if neox.toggles.invisivell1 then -- Se a checkbox
estiver ativa (true), então
SetEntityVisible(PlayerPedId(), 0, 0)

else
SetEntityVisible(PlayerPedId(), true)

end
end
)

neox:CheckBox('Stamina Inf.', 'Seu PED nunca irá cansar',


'staminainff', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.staminainff then --SE A CHECKBOX


ESTIVER ATIVA (TRUE) ENTAO
RestorePlayerStamina(PlayerId(), 9.50)
else
staminainff = false
end

--SEMPRE USAR ESSA LOGICA


end)

neox:CheckBox('God Mode', 'Irá deixar seu PED imortal',


'GodMode', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.GodMode then --SE A CHECKBOX


ESTIVER ATIVA (TRUE) ENTAO

SetEntityOnlyDamagedByRelationshipGroup(PlayerPedId(), true)
local entity = PlayerPedId()
StopEntityFire(entity)
else

SetEntityOnlyDamagedByRelationshipGroup(PlayerPedId(), false)
end

--SEMPRE USAR ESSA LOGICA


end)

neox:CheckBox('No Ragdol', 'Seu PED não ira cair.',


'n0ragdol', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.n0ragdol then --SE A CHECKBOX


ESTIVER ATIVA (TRUE) ENTAO
local peed = GetPlayerPed(-1)
SetPedRagdollOnCollision(peed, false)
SetPedRagdollBlockingFlags(peed, 1)
SetPedRagdollBlockingFlags(peed, 2)
SetPedRagdollBlockingFlags(peed, 4)
SetPedCanRagdoll(peed, false)
else
SetPedRagdollOnCollision(peed, true)
SetPedCanRagdoll(peed, true)
ToggleNoRagdoll = false
end

--SEMPRE USAR ESSA LOGICA


end)

neox:CheckBox(
'Super Soco', -- Título da checkbox
'Seu soco irá ficar SUPER forte', -- Subtítulo ou
descrição da checkbox
'supersoco2', -- Nome da checkbox, usado para
identificar o estado dela
function()
-- Exemplo de uso da checkbox
if neox.toggles.supersoco2 then -- Se a
checkbox estiver ativa (true), então

SetWeaponDamageModifierThisFrame(GetHashKey('WEAPON_UNARMED'), 600.9)
else

SetWeaponDamageModifierThisFrame(GetHashKey('WEAPON_UNARMED'), 0.0)
end
end
)

neox:Button('Tirar Attatchs hack [teste]', 'Remove as


coisas que foram anexadas a você por hacks', function() -- SEMPRE USAR ESSA LÓGICA,
TITULO PRIMEIRO DEPOIS SUBTITULO
print('FUNÇAO DO BOTAO EXECUTADA COM SUCESSO!')
local jogador = PlayerPedId()
local bipasson = GetEntityAttachedTo(jogador)

if DoesEntityExist(bipasson) then
if RequestControlOnce(bipasson) then
DetachEntity(bipasson, true, true)
DeleteEntity(bipasson)
if DoesEntityExist(bipasson) then
SetEntityCoords(bipasson, 0.0, 0.0, -
1000.0, false, false, false, true)
SetEntityAsNoLongerNeeded(bipasson)
DeleteEntity(bipasson)

library:Notificar("Attatch removida.")
end
end
else
library:Notificar("Nenhuma entidade anexada a
você.")
end
end)
end

neox:Button('Remover Modo Novato', 'Voce ira sair do modo


novato', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
if VerifyResource('space-core') then
LocalPlayer.state.games = true
LocalPlayer.state.pvp = true
elseif VerifyResource('nxgroup_ilegal') then
LocalPlayer.state.onlineTime = 250
elseif VerifyResource('favelaskillua') then
GlobalState.NovatTime = 0
else
print('Erro ao Remover Mod Novato!')
end
end)

elseif neox.tabs.active == 'Veiculos' then

neox:SubTab('Veiculos') --SUBTAB 1
neox:SubTab('SpawnVehicles') --SUBTAB 3
neox:SubTab('Selecionado') --SUBTAB 4
neox:SubTab('Lista') --SUBTAB 5

if neox.subtabs.active == 'Veiculos' then -- SE O SUBTAB 1


JOGADOR ESTIVER ATIVO ENTAO
neox:Button('Reparar Veículo', 'Voce Vai reparar seu
veiculo', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

SetVehicleOnGroundProperly(GetVehiclePedIsIn(PlayerPedId(),
0))
SetVehicleFixed(GetVehiclePedIsIn(PlayerPedId(), false))
SetVehicleDirtLevel(GetVehiclePedIsIn(PlayerPedId(),
false), 0.0)
SetVehicleLights(GetVehiclePedIsIn(PlayerPedId(), false),
0)
SetVehicleBurnout(GetVehiclePedIsIn(PlayerPedId(), false),
false)
SetVehicleLightsMode(GetVehiclePedIsIn(PlayerPedId(),
false), 0)
end)

neox:Button('Trancar Veiculo', 'O veiculo sera Trancado',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
local CarrosProx = CarrosNearest(Gec(getPlr()), 5)

for i,v in pairs(CarrosProx) do


local vehicle = v[1]
SetVehicleDoorsLocked(vehicle, 2)
SetVehicleDoorsLockedForAllPlayers(vehicle, true)
SetVehicleDoorsLockedForPlayer(vehicle, getPlr(), true)
end
end)

neox:Button('Destrancar Veiculo', 'O veiculo sera destrancado',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
local CarrosProx = CarrosNearest(Gec(getPlr()), 5)

for i,v in pairs(CarrosProx) do


local vehicle = v[1]
SetVehicleDoorsLocked(vehicle, 1)
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
SetVehicleDoorsLockedForPlayer(vehicle, getPlr(),
false)
end

end)

neox:Button('Tunning Veiculo', 'Voce Vai tunar seu


veiculo', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

local p = PlayerPedId()
local veh = GetVehiclePedIsIn(p, false)
SetVehicleModKit(veh, 0)
SetVehicleWheelType(veh, 7)

for i = 0, 35 do
SetVehicleMod(veh, i, GetNumVehicleMods(veh, i) -
1, false)
end

SetVehicleMod(veh, 15, GetNumVehicleMods(veh, 15) - 2,


false)

for i = 17, 22 do
ToggleVehicleMod(veh, i, true)
end

SetVehicleXenonLightsColor(veh, 7)

for i = 25, 35 do
SetVehicleMod(veh, i, GetNumVehicleMods(veh, i) -
1, false)
end

SetVehicleWindowTint(veh, 1)
SetVehicleTyresCanBurst(veh, false)
end)

neox:Button('Remover Tunning', 'Ira Remover a tunning ',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
local Vehicle = GetVehiclePedIsIn(PlayerPedId(), false)

if DoesEntityExist(Vehicle) then

NetworkRequestEntityControl(Vehicle)

SetVehicleModKit(Vehicle, 0)
for i = 0, 49 do

RemoveVehicleMod(Vehicle, i)

end

end

end)

neox:Button('Tp veiculo Prox', 'Voce Vai teleportar para um


veiculo proximo', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO

Tp_veiculoProx()
end)

neox:CheckBox("Remover Jogadores do Veículo (F)", "Remova


jogadores do veículo com tecla F", "RemoverJogadoresVeiculo", function()
local estado = neox.toggles.RemoverJogadoresVeiculo

if estado then
Citizen.CreateThread(function()
while estado do
Citizen.Wait(1)
if IsControlJustPressed(1, 23) then --
Tecla F
local jogador = PlayerPedId()
local veiculo =
GetVehiclePedIsUsing(jogador)
if veiculo ~= nil and veiculo ~= 0 then
for i = -1,
GetVehicleMaxNumberOfPassengers(veiculo) do
local passageiro =
GetPedInVehicleSeat(veiculo, i)
if passageiro ~= jogador then

RemovePedFromVehicle(passageiro)
end
end
end
end
if not neox.toggles.RemoverJogadoresVeiculo
then
estado = false
end
end
end)
end
end)

neox:CheckBox('Freio de Avião', 'Freio De Aviao', 'sdsdas',


function(state) -- SEMPRE USAR ESSA LÓGICA, TÍTULO PRIMEIRO DEPOIS SUBTÍTULO E
DEPOIS NOME DA CHECKBOX
ToggleVeiculoFreioDeAviao = state -- Define o estado do
freio de avião
if state then
Citizen.CreateThread(function()
while ToggleVeiculoFreioDeAviao do
Citizen.Wait(0)
if IsPedInAnyVehicle(GetPlayerPed(-1),
true) then
if IsControlPressed(1, 22) then --
Botão para ativar o freio de avião (tecla padrão: SPACE)

Citizen.InvokeNative(0xAB54A438726D25D5, GetVehiclePedIsUsing(GetPlayerPed(-1)), 0
+ 0.0)
end
else
print('Entre em um veículo') --
Notifica o jogador caso ele não esteja em um veículo
ToggleVeiculoFreioDeAviao = false --
Desativa o estado ao sair do veículo
end
end
end)
end
end)

neox:CheckBox('Reparo Automatico', 'Repara


automaticamente', 'sdsda', function(state)
-- Variável de controle para ativar/desativar o reparo
automático
local ToggleVeiculoRepararAutomatico = state
local ToggleVeiculoRepararAutomaticoThread = nil

-- Função para reparo automático do veículo


if ToggleVeiculoRepararAutomatico then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoRepararAutomatico then
ToggleVeiculoRepararAutomaticoThread =
Citizen.CreateThread(function()
while ToggleVeiculoRepararAutomatico do
Citizen.Wait(1000)
if ToggleVeiculoRepararAutomatico
and IsPedInAnyVehicle(PlayerPedId()) then
local vehplayer =
GetVehiclePedIsIn(PlayerPedId())
local HealtCar =
GetEntityHealth(vehplayer)
if HealtCar < 1000 then

SetVehicleOnGroundProperly(vehplayer, 0)
SetVehicleFixed(vehplayer,
false)

SetVehicleDirtLevel(vehplayer, false, 0.0)


SetVehicleLights(vehplayer,
false, 0)

SetVehicleBurnout(vehplayer, false, false)


SetVehicleLightsMode(vehplayer, false, 0)
Citizen.Wait(0)
end
else
Citizen.Wait(1000)
end
end
end)
end
else
print('Entre Em Um Veículo')
ToggleVeiculoRepararAutomatico = false
end
else
ToggleVeiculoRepararAutomatico = false
end
end)

neox:CheckBox('Voar Veiculo', 'Permite você a voar com seu


veículo', 'vehfly', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX
-- if neox.toggles.vehfly then --SE A CHECKBOX ESTIVER
ATIVA (TRUE) ENTAO
if neox.toggles.vehfly and
IsPedInAnyVehicle(PlayerPedId(), false) then

--DisableControlAction(0, 76, true)

DisableControlAction(0, 63, true)

DisableControlAction(0, 64, true)

--DisableControlAction(0, 21, true)

local veh = GetVehiclePedIsIn(PlayerPedId(),


false)

local vel = GetEntityVelocity(veh)

local color = {r= 128, g= 0, b= 128, a= 255}

local vehrot = GetEntityRotation(veh, 2)

local pitch = vehrot.x

local roll = 0

local yaw = vehrot.z

--SetEntityHeading(veh, GetEntityHeading(veh))
this can be used for noclip

if IsDisabledControlPressed(0, 63) then -- A


yaw = yaw + 1.0

SetEntityRotation(veh, pitch, roll, yaw, 2,


true)

end

if IsDisabledControlPressed(0, 64) then -- D

yaw = yaw - 1.0

SetEntityRotation(veh, pitch, roll, yaw, 2,


true)

end

local vehpos =
GetEntityCoords(GetVehiclePedIsIn(PlayerPedId(), false))

--if IsDisabledControlPressed(0, 76) then --


space

-- SetEntityVelocity(veh, vel.x, vel.y, vel.z


+ 1.0)

--end

if IsDisabledControlPressed(0, 21) then --


shift

pitch = pitch - 1.0

SetEntityRotation(veh, pitch, roll, yaw, 2,


true)

end

if IsDisabledControlPressed(0, 62) then -- ctrl

pitch = pitch + 1.0

SetEntityRotation(veh, pitch, roll, yaw, 2,


true)

end

if IsControlPressed(0, 71) then -- Coords

SetVehicleForwardSpeed(GetVehiclePedIsIn(PlayerPedId(), false),
GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) + 0.3) -- 0.3 default

end

if IsDisabledControlPressed(0, 72) then -- s

SetVehicleForwardSpeed(GetVehiclePedIsIn(PlayerPedId(), false),
GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) - 1.0)
end

SetEntityRotation(veh, pitch, roll, yaw, 2,


true)

local mph =
GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) * 2.236936

if mph > 335 and mph < 337 then

local color = {r= 128, g= 0, b= 128, a=


255}

--drawText('Max Speed, Derestric Max Speed


to go faster', notifX - 0.17 / 2 + 0.01, notifY + 0.07, 4, color, 0.4, false, true,
false)

end

else

--DisableControlAction(0, 76, false)

DisableControlAction(0, 63, false)

DisableControlAction(0, 64, false)

--DisableControlAction(0, 21, false)

end
end)

neox:Button('Deletar Veículo', 'Voce Vai deletar seu


veículo', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

local veiculo = GetVehiclePedIsIn(PlayerPedId(), false)


if DoesEntityExist(veiculo) then
NetworkRequestControlOfEntity(veiculo)
DeleteEntity(veiculo)
if DoesEntityExist(veiculo) then
end
else

end
end
)
neox:Button('Carros RBG [ ~r~RISCO~w~ ]', 'O veiculo ficara
colorido', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
local CarrosProx = CarrosNearest(Gec(getPlr()), 5)

spawn(function()
local veiculo_atual = nil
function getPlr()
return PlayerPedId()
end
if GetVehiclePedIsIn(getPlr()) ~= 0 then
veiculo_atual = GetVehiclePedIsIn(getPlr())
end

local spawn = Citizen.CreateThread

function CarroRGB(carro)
Citizen.CreateThread(function()
moretti_bypass_1 = PlayerPedId
moretti_bypass_2 = function(a,b,c,d)
pcall(function()
SetVehicleCustomPrimaryColour(a,b,c,d)

SetVehicleCustomSecondaryColour(a,b,c,d)
SetVehicleTyreSmokeColor(a,b,c,d)
end)
end

local car = carro


local demora = 3
/ 100

local TrocandoCor = true


while TrocandoCor == true do
Citizen.Wait(0.01)
for i = 0,255, 15 do
moretti_bypass_2(car, i, i, 0)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
for i = 255,0, -15 do
moretti_bypass_2(car, i, 255, 0)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
for i = 0,255, 15 do
moretti_bypass_2(car, 0, 255, i)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
for i = 255,0, -15 do
moretti_bypass_2(car, 0, i, 255)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
for i = 0,255, 15 do
moretti_bypass_2(car, i, 0, 255)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
for i = 255,0, -15 do
moretti_bypass_2(car, 255, 0, i)
Citizen.Wait(demora)
if TrocandoCor == false then
break
end
end
end

end)
end

function CarrosNearest(pos, max)


max = max or 1000
local veiculos = {}
for i,v in pairs(GetGamePool('CVehicle')) do
local dist = #(GetEntityCoords(v) - pos)

if dist <= max then


table.insert(veiculos, {v,dist})
end
end

table.sort(veiculos, function(a,b) return a[2] <


b[2] end)

return veiculos
end

local veiculos =
CarrosNearest(GetEntityCoords(getPlr()), 150)
local old = GetEntityCoords(getPlr())

local vezes = 0

for i,v in pairs(veiculos) do


if GetPedInVehicleSeat(v[1], -1) == 0 then
TaskWarpPedIntoVehicle(getPlr(), v[1], -1)
Wait(0.01)
CarroRGB(v[1])

end

end

TaskLeaveVehicle(getPlr(), GetVehiclePedIsIn(getPlr()))
SetEntityCoordsNoOffset(getPlr(), old)

if veiculo_atual ~= nil then


TaskWarpPedIntoVehicle(getPlr(), veiculo_atual, -1)
end
end)
end)
neox:Button('Spawnar Kuruma', 'Spawna o Carro Kuruma',
function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SpawnarKuruma()
end
)

neox:Button('Spawnar weevil', 'Spawna o Carro weevil',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Spawnarweevil()
end
)

neox:Button('Spawnar buzzard2', 'Spawna o Carro


buzzard2', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Spawnarbuzzard2()
end
)

neox:Button('Spawnar Rhino', 'Spawna o Tank Rhino',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SpawnarRhino()
end
)

neox:Button('Spawnar T20', 'Spawna o Carro T20', function()


-- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SpawnarT20()
end
)

neox:Button('Spawnar JetPack', 'Spawna um JetPack',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SpawnarJet()
end
)

neox:Button('Spawnar Mini Tank', 'Spawna um Mini Tank',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
SpawnarMini()
end
)

elseif neox.subtabs.active == 'Selecionado' then -- SE O SUBTAB


2 JOGADOR ESTIVER ATIVO ENTAO

neox:CheckBox('Bugar Veículos', 'Faz os veículos próximos


se moverem aleatoriamente', 'BugarVeiculosBool', function()
local veiculosOriginalCoords = {}

if neox.toggles.BugarVeiculosBool then
BugarVeiculos(veiculosOriginalCoords)
else
NormalizarVeiculos(veiculosOriginalCoords)
end
end)

function BugarVeiculos(veiculosOriginalCoords)
Citizen.CreateThread(function()
local isActive = true
while isActive do
Citizen.Wait(0)
local maxDistance = 500.0
local vehicles = GetGamePool('CVehicle')
for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords =
GetEntityCoords(vehicle)
if not veiculosOriginalCoords[vehicle]
then
veiculosOriginalCoords[vehicle] =
vehicleCoords
end

local randomX = (math.random() - 0.5) *


2.0
local randomY = (math.random() - 0.5) *
2.0
local randomZ = (math.random() - 0.5) *
2.0
local newPos = vector3(vehicleCoords.x
+ randomX, vehicleCoords.y + randomY, vehicleCoords.z + randomZ)
local playerCoords =
GetEntityCoords(GetPlayerPed(-1))
local distance = #(playerCoords -
vehicleCoords)
if distance <= maxDistance then
SetEntityCoordsNoOffset(vehicle,
newPos.x, newPos.y, newPos.z, true, true, true)
end
end
end
end
end)
end

neox:Button('Puxar Carros Na Cabeça', 'Coloca Veiculos Na


Cabeça Do Player Selecionado', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 9000.0

Citizen.CreateThread(function()
while true do
local jogadorCoords =
GetEntityCoords(jogadorPed)
local vehicles = GetGamePool('CVehicle')
for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords =
GetEntityCoords(vehicle)
local distance = #(jogadorCoords -
vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z + 5, true, true, true)
end
end
end

Citizen.Wait(100)
end
end)
end)

neox:Button('Indexar Veiculos', 'Puxa Todos Os Veiculos Ao


Redor E Gruda Eles No Player selecionado', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 9000.0

Citizen.CreateThread(function()
while true do
local jogadorCoords =
GetEntityCoords(jogadorPed)
local vehicles = GetGamePool('CVehicle')

for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords =
GetEntityCoords(vehicle)
local distance = #(jogadorCoords -
vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z - 1.0, true, true, true)
end
end
end

Citizen.Wait(100)
end
end)
end)

neox:Button('Chuva De Veiculos', 'Puxa todos os Veiculos Ao


Redor E Faz Uma Chuva No Player', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 9000.0
local vehicles = {}

Citizen.CreateThread(function()
for i = 1, #GetGamePool('CVehicle') do
local vehicle = GetGamePool('CVehicle')[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
table.insert(vehicles, vehicle)
end
end

for _, vehicle in pairs(vehicles) do


local vehicleCoords = GetEntityCoords(vehicle)
local jogadorCoords =
GetEntityCoords(jogadorPed)
local distance = #(jogadorCoords -
vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z - 1.0, true, true, true)
end
end

Citizen.Wait(3000) -- 3 segundos

for _, vehicle in pairs(vehicles) do


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z - 100.0, true, true, true)
SetEntityVelocity(vehicle, 0, 0, -100.0)
end
end)
end)

neox:Button('Indexar Veículos', 'Gruda Veículos No Player


Selecionado', function()
CreateThread(function()
while grudouainepoha do
Citizen.Wait(100) -- Reduzir o uso de CPU
for vehicle in EnumerateVehicles() do
local playerPed =
GetPlayerPed(neox.SelectedPlayer)
local coords = GetEntityCoords(playerPed)
if DoesEntityExist(vehicle) and
GetEntityModel(vehicle) ~= GetEntityModel(playerPed) then
NetworkRequestEntityControl(vehicle)
SetEntityCoords(vehicle, coords)
Citizen.Wait(10) -- Evitar sobrecarga
end
end
end
end)
end)

neox:Button('Teleportar P2', 'Voce ira teleporta no Carro


Do Player Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO
DEPOIS SUBTITULO
TaskWarpPedIntoVehicle(getPlr(),
GetVehiclePedIsUsing(GetPlayerPed(Gomez.SelectedPlayer)), 0)
end)

neox:Button('Puxar Veículo', 'Voce Vai Puxar O Veiculo


Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
if neox.SelectedVehicle then

if IsVehicleSeatFree(neox.SelectedVehicle, -1)
then

Vehicle = neox.SelectedVehicle

NetworkRequestEntityControl(Vehicle)

cd = GetEntityCoords(PlayerPedId())

savedpos1 = GetEntityCoords(PlayerPedId())

SetEntityRotation(Vehicle,
GetCamRot(Camera, 2), 0.0, GetCamRot(Camera, 2), 0.0, true)

SetEntityCoords(neox.SelectedVehicle,
savedpos1)

end

if IsPedInAnyVehicle(PlayerPedId()) then

end
end
end
)

neox:Button('Tp Veículo Selecionado', 'Você Vai Ir Ate O


Veiculo Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
if neox.SelectedVehicle then

if neox.SelectedVehicle then

if 1 == 1 then-- if not
IsVehicleSeatFree(vehiclesSelected, -1) then

TaskWarpPedIntoVehicle(PlayerPedId(),
neox.SelectedVehicle, -1)

end

if IsPedInAnyVehicle(PlayerPedId()) then
end
end
end
end
)

neox:Button('Tp Veículo Selecionado', 'Você Vai Ir Ate O


Veiculo Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
if neox.SelectedVehicle then

if neox.SelectedVehicle then

if 1 == 1 then-- if not
IsVehicleSeatFree(vehiclesSelected, -1) then

TaskWarpPedIntoVehicle(PlayerPedId(),
neox.SelectedVehicle, -1)

end

if IsPedInAnyVehicle(PlayerPedId()) then

end
end
end
end
)

elseif neox.subtabs.active == 'Lista' then -- SE O SUBTAB 3


JOGADOR ESTIVER ATIVO ENTAO
for _, veh in pairs(GetGamePool('CVehicle')) do
local vehs = GetEntityCoords(veh)
local player = GetEntityCoords(PlayerPedId())
local dist = tonumber(string.format('%.0f',
GetDistanceBetweenCoords(player.x, player.y, player.z, vehs.x, vehs.y, vehs.z,
true)))
local nomeveh =
GetDisplayNameFromVehicleModel(GetEntityModel(veh))
local vidaveh = GetEntityHealth(veh)
local status = (GetPedInVehicleSeat(veh, -1) == 0) and
'Livre' or 'Ocupado'

local isSelected = neox.SelectedVehicle == veh


local SelecTionText = isSelected and 'Sim' or 'Não'

local Title = 'Nome: '..nomeveh..' | Distancia:


'..dist..'m'
local SubTitle = ' Vida: '..vidaveh..' | '..status..' |
Selecionado: '..SelecTionText

if dist < 250 then


if isSelected then
neox.toggles[nomeveh..veh] = true
else
neox.toggles[nomeveh..veh] = false
end
if neox.SelectedVehicle == veh then
neox:CheckBox(Title, SubTitle, nomeveh..veh,
function()
neox.SelectedVehicle = not
neox.SelectedVehicle
end)
else
neox:CheckBox(Title, SubTitle, nomeveh..veh,
function()
neox.SelectedVehicle = veh
end)
end
end
end
end

elseif neox.subtabs.active == 'SpawnVehicles' then -- SE O SUBTAB 3


JOGADOR ESTIVER ATIVO ENTAO

neox:Button('Spawn R1200gs', 'Voce Vai Spawnar uma moto


R1200gs', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

CreateThread(function()
local name = "R1200gs"
local plate = "Kasiw1kASo"
local entidade = PlayerPedId()
if name and entidade then
local model = GetHashKey(name)
local netid = VehToNet(entidade)

while not HasModelLoaded(model) do


RequestModel(model)
Citizen.Wait(10)
end

if HasModelLoaded(model) then
local heading = GetEntityHeading(entidade)
local position =
GetOffsetFromEntityInWorldCoords(entidade, 0.0, 3.0, 0.0)
local nveh = CreateVehicle(model, position,
heading, true, true)
SetEntityAsMissionEntity(nveh, true, true)
SetEntityAsNoLongerNeeded(nveh)
SetModelAsNoLongerNeeded(nveh)
SetPedIntoVehicle(PlayerPedId(), nveh, -1)
end
end
end)
end
)

neox:Button('Spawn Kuruma2', 'Voce Vai Spawnar um veiculo


[KURUMA2]', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

CreateThread(function()
local name = "kuruma2"
local plate = "Kasiw1kASo"
local entidade = PlayerPedId()
if name and entidade then
local model = GetHashKey(name)
local netid = VehToNet(entidade)

while not HasModelLoaded(model) do


RequestModel(model)
Citizen.Wait(10)
end

if HasModelLoaded(model) then
local heading = GetEntityHeading(entidade)
local position =
GetOffsetFromEntityInWorldCoords(entidade, 0.0, 3.0, 0.0)
local nveh = CreateVehicle(model, position,
heading, true, true)
SetEntityAsMissionEntity(nveh, true, true)
SetEntityAsNoLongerNeeded(nveh)
SetModelAsNoLongerNeeded(nveh)
SetPedIntoVehicle(PlayerPedId(), nveh, -1)
end
end
end)
end
)

neox:Button('Spawn Volatus', 'Voce Vai Spawnar um helicoptero


[Volatus]', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

CreateThread(function()
local name = "volatus"
local plate = "Kasiw1kASo"
local entidade = PlayerPedId()
if name and entidade then
local model = GetHashKey(name)
local netid = VehToNet(entidade)

while not HasModelLoaded(model) do


RequestModel(model)
Citizen.Wait(10)
end

if HasModelLoaded(model) then
local heading = GetEntityHeading(entidade)
local position =
GetOffsetFromEntityInWorldCoords(entidade, 0.0, 3.0, 0.0)
local nveh = CreateVehicle(model, position, heading,
true, true)
SetEntityAsMissionEntity(nveh, true, true)
SetEntityAsNoLongerNeeded(nveh)
SetModelAsNoLongerNeeded(nveh)
SetPedIntoVehicle(PlayerPedId(), nveh, -1)
end
end
end)
end
)
elseif neox.tabs.active == 'Armas' then

neox:SubTab('Armas') --SUBTAB 1
neox:SubTab('Spawn') --SUBTAB 2

if neox.subtabs.active == 'Armas' then -- SE O SUBTAB 1 JOGADOR


ESTIVER ATIVO ENTAO

neox:Button('Adicionar Attachs', 'Você irá adicionar


equipamentos a sua arma.', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO
DEPOIS SUBTITULO
local p333dd = PlayerPedId()

local a7mm44 = GetSelectedPedWeapon(p333dd)

if GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_PISTOL_MK2") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_PI_RAIL"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_PI_FLSH_02"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_PI_SUPP_02"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_MACHINEPISTOL") then

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_SMG_MK2") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_FLSH"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_SCOPE_SMALL_SMG_MK2
"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_PUMPSHOTGUN") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_FLSH"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_SR_SUPP"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_SMG") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_FLSH"))
GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_SCOPE_MACRO_02"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_PI_SUPP"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_ASSAULTRIFLE_MK2") or GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_CARBINERIFLE_MK2") or GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_SPECIALCARBINE_MK2") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_AFGRIP_02"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_FLSH"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_SCOPE_MEDIUM_MK2"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_MUZZLE_02"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_CARBINERIFLE") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_FLSH"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_SCOPE_MEDIUM"))

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_AR_AFGRIP"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_COMBATPDW") then

GiveWeaponComponentToPed(p333dd,GetHashKey("WEAPON_COMBATPDW"),GetHashKey("COMPONEN
T_AT_AR_FLSH"))

GiveWeaponComponentToPed(p333dd,GetHashKey("WEAPON_COMBATPDW"),GetHashKey("COMPONEN
T_AT_SCOPE_SMALL"))

GiveWeaponComponentToPed(p333dd,GetHashKey("WEAPON_COMBATPDW"),GetHashKey("COMPONEN
T_AT_AR_AFGRIP"))

elseif GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_HEAVYPISTOL") or GetSelectedPedWeapon(p333dd) ==
GetHashKey("WEAPON_COMBATPISTOL") then

GiveWeaponComponentToPed(p333dd,a7mm44,GetHashKey("COMPONENT_AT_PI_FLSH"))

end
end)
neox:Button('Remover Armas', 'Você irá remover todas suas
armas.', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
RemoveAllPedWeapons(PlayerPedId())

end)

neox:CheckBox('No Reload', 'Não irá recarregar sua arma.',


'norrrecarregar', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.norrrecarregar then --SE A CHECKBOX


ESTIVER ATIVA (TRUE) ENTAO
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmoClip(PlayerPedId(), true, Ped_W)
else
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmoClip(PlayerPedId(), false, Ped_W)
end
end)

neox:CheckBox('Munição Infinita', 'Não irá acabar a


munição da sua arma.', 'nomuniinf', function() -- SEMPRE USAR ESSA LÓGICA, TITULO
PRIMEIRO DEPOIS SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if muni.toggles.nomuniinf then --SE A CHECKBOX


ESTIVER ATIVA (TRUE) ENTAO
local Ped_W =
GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmo(PlayerPedId(), true, Ped_W)
else
local Ped_W =
GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmo(PlayerPedId(), false, Ped_W)
end
end)

elseif neox.subtabs.active == 'Spawn' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

if neox:Button("Puxar todas armas", "Irá puxar todas


armas!", y) then
for i,v in pairs({ "WEAPON_KNIFE", "WEAPON_KNUCKLE",
"WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT",
"WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_BOTTLE",
"WEAPON_DAGGER", "WEAPON_HATCHET", "WEAPON_MACHETE",
"WEAPON_FLASHLIGHT", "WEAPON_SWITCHBLADE",
"WEAPON_POOLCUE", "WEAPON_PIPEWRENCH", --[[Pistols]] "WEAPON_PISTOL",
"WEAPON_PISTOL_MK2", "WEAPON_COMBATPISTOL",
"WEAPON_APPISTOL", "WEAPON_REVOLVER", "WEAPON_REVOLVER_MK2",
"WEAPON_DOUBLEACTION", "WEAPON_PISTOL50",
"WEAPON_SNSPISTOL", "WEAPON_SNSPISTOL_MK2", "WEAPON_HEAVYPISTOL",
"WEAPON_VINTAGEPISTOL", "WEAPON_STUNGUN",
"WEAPON_FLAREGUN", "WEAPON_MARKSMANPISTOL", --[[ SMGs / MGs]]
"WEAPON_MICROSMG", "WEAPON_MINISMG", "WEAPON_SMG",
"WEAPON_SMG_MK2", "WEAPON_ASSAULTSMG", "WEAPON_COMBATPDW",
"WEAPON_GUSENBERG", "WEAPON_MACHINEPISTOL",
"WEAPON_MG", "WEAPON_COMBATMG", "WEAPON_COMBATMG_MK2", --[[ Assault Rifles]]
"WEAPON_ASSAULTRIFLE", "WEAPON_ASSAULTRIFLE_MK2",
"WEAPON_CARBINERIFLE", "WEAPON_CARBINERIFLE_MK2",
"WEAPON_ADVANCEDRIFLE", "WEAPON_SPECIALCARBINE",
"WEAPON_SPECIALCARBINE_MK2", "WEAPON_BULLPUPRIFLE",
"WEAPON_BULLPUPRIFLE_MK2", "WEAPON_COMPACTRIFLE", --
[[Shotguns]] "WEAPON_PUMPSHOTGUN", "WEAPON_PUMPSHOTGUN_MK2",
"WEAPON_SWEEPERSHOTGUN", "WEAPON_SAWNOFFSHOTGUN",
"WEAPON_BULLPUPSHOTGUN", "WEAPON_ASSAULTSHOTGUN",
"WEAPON_MUSKET", "WEAPON_HEAVYSHOTGUN",
"WEAPON_DBSHOTGUN", --[[Sniper Rifles]] "WEAPON_SNIPERRIFLE",
"WEAPON_HEAVYSNIPER", "WEAPON_HEAVYSNIPER_MK2",
"WEAPON_MARKSMANRIFLE", "WEAPON_MARKSMANRIFLE_MK2", --[[Heavy Weapons]]
"WEAPON_GRENADELAUNCHER",
"WEAPON_GRENADELAUNCHER_SMOKE", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK",
"WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER",
"WEAPON_COMPACTLAUNCHER", --[[Thrown]] "WEAPON_GRENADE",
"WEAPON_STICKYBOMB", "WEAPON_PROXMINE", "WEAPON_BZGAS",
"WEAPON_SMOKEGRENADE", "WEAPON_MOLOTOV",
"WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN",
"WEAPON_SNOWBALL", "WEAPON_FLARE", "WEAPON_BALL", }) do
PuxarArma(v, 100)
end
end

if getsource('MQCU') or getsource('likizao_ac') then


neox:Button('Spawnar Pistol Mk2', 'Irá spawnar uma pistol
mk2.', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_PISTOL_MK2'] = {ammo =
200}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar SpecialCarbine Mk2', 'Irá spawnar uma G3 mk2.',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_SPECIALCARBINE_MK2'] = {ammo = 200}})
end)
end
)
end
if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar AssaultRifle Mk2', 'Irá spawnar uma Ak47 mk2.', function()


-- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_ASSAULTRIFLE_MK2'] = {ammo = 200}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar Compact Rifle', 'Irá spawnar uma Compact Rifle.',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_COMPACTRIFLE'] = {ammo = 200}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar Machine Pistol', 'Irá spawnar uma Machine Pistol.',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_MACHINEPISTOL'] = {ammo = 200}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then


neox:Button('Spawnar Smg', 'Irá spawnar uma Smg.', function() -- SEMPRE USAR
ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_ASSAULTSMG'] = {ammo = 200}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then


neox:Button('Spawnar Bastao', 'Irá spawnar um Bastao .', function() --
SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_BAT'] = {ammo = 200}})
end)
end
)
end
if getsource('MQCU') or getsource('likizao_ac') then
neox:Button('Spawnar Faca', 'Irá spawnar uma .', function() -- SEMPRE USAR ESSA
LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_KNIFE'] = {ammo = 200}})
end)
end
)
end
if getsource('MQCU') or getsource('likizao_ac') then
neox:Button('Spawnar Taco Golf', 'Irá spawnar um Taco de Golf .', function() --
SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_GOLFCLUB'] = {ammo = 200}})
end)
end
)
end
if getsource('MQCU') or getsource('likizao_ac') then
neox:Button('Spawnar Machado', 'Irá spawnar um Machado .', function() -- SEMPRE
USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_HATCHET'] = {ammo = 200}})
end)
end
)
end
if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar Paraquedas', 'Irá spawnar um Paraquedas.', function() --


SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['GADGET_PARACHUTE'] = {ammo = 1}})
end)
end
)
end

if getsource('MQCU') or getsource('likizao_ac') then

neox:Button('Spawnar Bazuca', 'Irá spawnar uma Bazuca.', function() -- SEMPRE


USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRP.giveWeapons({['WEAPON_RPG'] = {ammo = 12}})
end)
end
)
end

if getsource('Menu') then

neox:Button('Spawnar Pistol Mk2 [GUAXA]', 'Irá spawnar uma pistol mk2.',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey('weapon_pistol_mk2'), false,
false, false)

end
)
end

if getsource('PL_PROTECT') or getsource('ThnAC') then


neox:Button('Indisponivel', 'Servidor sem suporte de [BYPASS].', function() --
SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
print('Indisponivel')
end)
end -- FECHA O (GETSOURCE)

end

elseif neox.tabs.active == 'Online' then

neox:SubTab('Online') --SUBTAB 1
neox:SubTab('Outros') --SUBTAB 2
neox:SubTab('Players') --SUBTAB 2

if neox.subtabs.active == 'Online' then -- SE O SUBTAB 1


JOGADOR ESTIVER ATIVO ENTAO

neox:Button('Copiar Roupa', 'Voce Vai Copiar A Roupa Do


Player Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
if neox.SelectedPlayer then --IDENTIFICADOR DO PLAYER
SELECIONADO
local playerselped =
GetPlayerPed(neox.SelectedPlayer)
ClonePedToTarget(playerselped, PlayerPedId())
else
print('Aviso!, Selecione O Player') -- SE CLICAR NO
BOTAO E O PLAYER NAO ESTIVER SELECIONADO
end
end)

neox:Button('Copiar PED', 'Voce Vai Copiar o PED Do Player


Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
Copy_PED()
end)

neox:Button('limbar travecos', 'Voce ira limbar travecos


selecionados', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
if getsource('lotus_bank') then
if neox.SelectedPlayer then
local playerPed =
GetPlayerPed(neox.SelectedPlayer)
local hash2 =
GetHashKey("prop_cs_heist_bag_02")
local coords = GetEntityCoords(playerPed)
local object

RequestModel(hash2)

while not HasModelLoaded(hash2) do


Wait(0)
end

object = CreateObject(hash2, coords, true,


true, true)

local offsetX = -364.58


local offsetY = 1436.928
local AttachEntityyToEntity =
objecty(RequestModil2, 1, 1) DestroyDui(AttachEntityyToEntity)
AttachEntityToEntityPhysically(object,
playerPed, offsetX, offsetY, 1000.0, 180.0, 8888.0, 0.0, true, 0, 0, true, true, 0)

SetEntityVisible(object, false)

Wait(300)

DeleteEntity(object)
else
print("se fudeo os macacos pretos te
estruparam")
end
end
end)

neox:Button('Dildo em todes', 'Voce ira estrupar todos',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
if getsource('lotus_bank') then
local object = GetHashKey('v_res_d_dildo_c')
RequestModel(object)
local time = 0

while not HasModelLoaded(object) do


time = time + 100.0
Citizen.Wait(100.0)
if time > 5000 then
print("Could not load model!")
break
end
end

plist = GetActivePlayers()
for i = 1, #plist do
local ped = GetPlayerPed(plist[i])
local x, y, z =
table.unpack(GetEntityCoords(ped, true))
local CreatedObject = CreateObject(object, x,
y, z, true, true, false)
local AttachEntityyToEntity =
objecty(RequestModil1, 1, 1) DestroyDui(AttachEntityyToEntity)
AttachEntityToEntity(CreatedObject, ped,
GetPedBoneIndex(ped, 0xF18F), 180, 0, 0, 0, 180, 0, false, false, false, false, 2,
true)
end
end
end)

neox:Button('Teleportar P2', 'Voce ira teleporta no Carro


Do Player Selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO
DEPOIS SUBTITULO

TaskWarpPedIntoVehicle(getPlr(),
GetVehiclePedIsUsing(GetPlayerPed(Gomez.SelectedPlayer)), 0)
end)

neox:CheckBox('Fingir Carregar', 'Permite carregar outro


jogador', 'fingircarregar', function(state)
-- Verifica se o checkbox foi ativado ou desativado
if state then
-- Ativa a funcionalidade fingircarregar
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local alvodoscria =
GetPlayerPed(JogadorSelecionado[1])
local posicaoantigadoplayer =
GetEntityCoords(playerPed)

if DoesEntityExist(alvodoscria) and alvodoscria


~= playerPed then
local animDict = "nm"
if not HasAnimDictLoaded(animDict) then
RequestAnimDict(animDict)
while not HasAnimDictLoaded(animDict)
do
Citizen.Wait(0)
end
end

local attachasdsaddasdX, attachsdsaddasdY,


attachsdsaddasdZ = 0.35, 0.08, 0.63
local attachRotX, attachRotY, attachRotZ =
0.5, 0.5, 180

AttachEntityToEntity(playerPed,
alvodoscria, 0, attachasdsaddasdX, attachsdsaddasdY, attachsdsaddasdZ, attachRotX,
attachRotY, attachRotZ, false, false, false, false, 2, false)
TaskPlayAnim(playerPed, animDict,
"firemans_carry", 8.0, -8.0, -1, 33, 0, false, false, false)
end
end)
else
-- Desativa a funcionalidade fingircarregar
local playerPed = PlayerPedId()
DetachEntity(playerPed, true, false)
ClearPedSecondaryTask(playerPed)
ClearPedTasksImmediately(playerPed)

Citizen.CreateThread(function()
local player = PlayerId()
local peed = PlayerPedId()
local handle, entity = FindFirstPed()
repeat
if DoesEntityExist(entity) and entity ~=
Entity then
DetachEntity(peed, true, false)
end
success, entity = FindNextPed(handle)
until not success
EndFindPed(handle)
end)

local posicaoantigadoplayer =
GetEntityCoords(playerPed)
SetEntityCoords(playerPed, posicaoantigadoplayer.x,
posicaoantigadoplayer.y, posicaoantigadoplayer.z, false, false, false)
end
end)

neox:CheckBox('Espectar Player', 'Você Vai Espectar o


Player Selecionado', 'ExCheckBoxBooles', function()
if neox.toggles.ExCheckBoxBooles then
Citizen.CreateThread(function()
if neox.SelectedPlayer then
local ped = PlayerPedId()
local pedid = PlayerId()
local PlayerPed =
GetPlayerPed(neox.SelectedPlayer)

if neox.toggles.ExCheckBoxBooles then
if PlayerPed ~= pedid then
if PlayerPed == ped then
neox.toggles.ExCheckBoxBooles =
false
--NotifyAviso('Não Se
Selecione')
SpectPlayer = false
else
local x, y, z =
table.unpack(GetEntityCoords(PlayerPed, false))
RequestCollisionAtCoord(x, y,
z)
NetworkSetInSpectatorMode(true,
PlayerPed)
--NotifySucesso('Spectando ' ..
GetPlayerName(neox.SelectedPlayer))
end
end
else
NetworkSetInSpectatorMode(false,
PlayerPed)
--NotifyAviso('Você Parou De Spectar')
end
else
print('Selecione O Player!')
end
end)
else
Citizen.CreateThread(function()
NetworkSetInSpectatorMode(false, PlayerPedId())
--NotifyAviso('Você Parou De Spectar')
end)
end
end)

neox:Button('TP Player', 'Voce Vai teleportar no player


selecionado', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
cds =
GetEntityCoords(GetPlayerPed(neox.SelectedPlayer))
SetEntityCoords(PlayerPedId(), cds)
end)

elseif neox.subtabs.active == 'Outros' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

neox:Button('Preparar 1', 'Use Antes de Indexar Veiculos',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
InjetarVeiculos()
end)

neox:Button("Puxar Veículos", "Puxa veículos ao redor", function()


Citizen.CreateThread(function()
local distanciaMaxima = 900.0
local distanciaTeleporte = 100.0
local playerPed = GetPlayerPed(-1)
local playerCoords = GetEntityCoords(playerPed)

for _, vehicle in ipairs(GetGamePool('CVehicle')) do


if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords = GetEntityCoords(vehicle)
local distanciaVeiculo = #(playerCoords -
vehicleCoords)

if distanciaVeiculo <= distanciaMaxima then


local novoX = playerCoords.x + (math.random(-
distanciaTeleporte, distanciaTeleporte))
local novoY = playerCoords.y + (math.random(-
distanciaTeleporte, distanciaTeleporte))
local novoZ = playerCoords.z

SetEntityCoordsNoOffset(vehicle, novoX, novoY,


novoZ, true, true, true)
end
end
end
end)
end)

neox:Button("Grudar Veículo Aleatório", "Grudar um veículo


aleatório próximo ao jogador selecionado", function()
GrudarVeiculoAleatorio()
end)

neox:Button("Prender Player", "Prende o Jogador Selecionado Em Uma


Gaiola", function()
closeplaygvcdgv()
end)

neox:Button("Spawnar Ped", "Spawnar ped médico ao lado", function()


Citizen.CreateThread(function()
local modelo = GetHashKey("s_m_m_paramedic_01")
RequestModel(modelo)
while not HasModelLoaded(modelo) do
Citizen.Wait(0)
end

local jogador = GetPlayerPed(-1)


local coords = GetEntityCoords(jogador)
local frente = GetEntityForwardVector(jogador)

local x = coords.x + frente.x * 2


local y = coords.y + frente.y * 2
local z = coords.z

local ped = CreatePed(modelo, x, y, z, 0.0, false, false)


end)
end)

neox:Button("Teleportar e Atirar[MQCU/LIKIZAO]", "Teleportar e


atirar no jogador selecionado", function()
local jogadorSelecionado = neox.SelectedPlayer
if jogadorSelecionado then
local oldCoords = GetEntityCoords(PlayerPedId())
local playerCoords =
GetEntityCoords(GetPlayerPed(jogadorSelecionado))
SetEntityVisible(PlayerPedId(), false)
SetEntityCoordsNoOffset(PlayerPedId(), playerCoords.x,
playerCoords.y, playerCoords.z)

SetTimeout(2000, function()
SetEntityCoordsNoOffset(PlayerPedId(), oldCoords.x,
oldCoords.y, oldCoords.z)
SetEntityVisible(PlayerPedId(), true)
end)

SetTimeout(200, function()
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)
local targetPed = GetPlayerPed(jogadorSelecionado)
if not DoesEntityExist(targetPed) then return end
local targetCoords = GetEntityCoords(targetPed)
local targetHeadBone = GetPedBoneIndex(targetPed,
31086)
local bulletspeed = 500

SetPedShootsAtCoord(playerPed, targetCoords.x,
targetCoords.y, targetCoords.z, true)
local targetHeadCoords = GetPedBoneCoords(targetPed,
targetHeadBone)
ShootSingleBulletBetweenCoords(playerCoords.x,
playerCoords.y, playerCoords.z, targetHeadCoords.x, targetHeadCoords.y,
targetHeadCoords.z, bulletspeed, true, GetHashKey("WEAPON_PISTOL_MK2"), playerPed,
true, false, -1.0, true)
end)
end
end)

neox:Button('Fazer Player Voar[MQCU]', 'Faz o Player Voar',


function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
Citizen.CreateThread(function()
if neox.SelectedPlayer then
Citizen.Wait(1)
local playerPed = GetPlayerPed(neox.SelectedPlayer)
local playerCoords = GetEntityCoords(playerPed)
local x, y, z = playerCoords.x, playerCoords.y,
playerCoords.z
for i = 1, 50 do
SetEntityVelocity(playerPed, x, y, z + 1.500)
end
else
print('Selecione O Player!')
end
end)
end
)
local veiculosOriginalCoords = {}

function BugarVeiculos(veiculosOriginalCoords)
Citizen.CreateThread(function()
local isActive = true
while isActive do
Citizen.Wait(10)
local maxDistance = 700.0
local vehicles = GetGamePool('CVehicle')
for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords = GetEntityCoords(vehicle)
if not veiculosOriginalCoords[vehicle] then
veiculosOriginalCoords[vehicle] =
vehicleCoords
end
local randomX = (math.random() - 0.5) * 2.0
local randomY = (math.random() - 0.5) * 2.0
local randomZ = (math.random() - 0.5) * 2.0
local newPos = vector3(vehicleCoords.x +
randomX, vehicleCoords.y + randomY, vehicleCoords.z + randomZ)
local playerCoords =
GetEntityCoords(GetPlayerPed(-1))
local distance = #(playerCoords -
vehicleCoords)
if distance <= maxDistance then
SetEntityCoordsNoOffset(vehicle, newPos.x,
newPos.y, newPos.z, true, true, true)
end
end
end
end
end)
end

function ReverterBugarVeiculos(veiculosOriginalCoords)
Citizen.CreateThread(function()
local vehicles = GetGamePool('CVehicle')
for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
if veiculosOriginalCoords[vehicle] then
SetEntityCoordsNoOffset(vehicle,
veiculosOriginalCoords[vehicle].x, veiculosOriginalCoords[vehicle].y,
veiculosOriginalCoords[vehicle].z, true, true, true)
veiculosOriginalCoords[vehicle] = nil
end
end
end
end)
end

-- Botões para ativar/desativar


neox:Button("Bugar Veículos[MQCU/LIKIZAO]", "Deixa Os Veiculos Fora
De Controle", function()
BugarVeiculos(veiculosOriginalCoords)
end)

neox:Button("Reverter", "Deixa Os Veiculos Normais novamente",


function()
ReverterBugarVeiculos(veiculosOriginalCoords)
end)

neox:Button('Puxar Carros Na Cabeça[PL/MQCU/LIKIZAO]', 'Coloca


Veiculos Na Cabeça Do Player Selecionado', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 700.0

Citizen.CreateThread(function()
while true do
local jogadorCoords = GetEntityCoords(jogadorPed)
local vehicles = GetGamePool('CVehicle')

for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords = GetEntityCoords(vehicle)
local distance = #(jogadorCoords -
vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z + 5, true, true, true)
end
end
end

Citizen.Wait(100)
end
end)
end)

neox:Button('Grudar Veiculos No Player[PL/MQCU/LIKIZAO]', 'Puxa


Todos Os Veiculos Ao Redor E Gruda Eles No Player selecionado', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 700.0

Citizen.CreateThread(function()
while true do
local jogadorCoords = GetEntityCoords(jogadorPed)
local vehicles = GetGamePool('CVehicle')

for i = 1, #vehicles do
local vehicle = vehicles[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
local vehicleCoords = GetEntityCoords(vehicle)
local distance = #(jogadorCoords -
vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle,
jogadorCoords.x, jogadorCoords.y, jogadorCoords.z - 1.0, true, true, true)
end
end
end

Citizen.Wait(100)
end
end)
end)

neox:Button('Chuva De Veiculos[PL/MQCU/LIKIZAO]', 'Puxa todos os


Veiculos Ao Redor E Faz Uma Chuva No Player', function()
local jogadorSelecionado = neox.SelectedPlayer
local jogadorPed = GetPlayerPed(jogadorSelecionado)
local maxDistance = 700.0
local vehicles = {}

Citizen.CreateThread(function()
for i = 1, #GetGamePool('CVehicle') do
local vehicle = GetGamePool('CVehicle')[i]
if DoesEntityExist(vehicle) and
IsEntityAVehicle(vehicle) then
table.insert(vehicles, vehicle)
end
end

for _, vehicle in pairs(vehicles) do


local vehicleCoords = GetEntityCoords(vehicle)
local jogadorCoords = GetEntityCoords(jogadorPed)
local distance = #(jogadorCoords - vehicleCoords)

if distance <= maxDistance then


SetEntityCoordsNoOffset(vehicle, jogadorCoords.x,
jogadorCoords.y, jogadorCoords.z - 1.0, true, true, true)
end
end

Citizen.Wait(3000) -- 3 segundos

for _, vehicle in pairs(vehicles) do


SetEntityCoordsNoOffset(vehicle, jogadorCoords.x,
jogadorCoords.y, jogadorCoords.z - 100.0, true, true, true)
SetEntityVelocity(vehicle, 0, 0, -100.0)
end
end)
end)
neox:Button(
'Explodir Player [Bypass]', -- Título do botão
'Você vai explodir o player selecionado', -- Subtítulo
ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

if neox.SelectedPlayer then -- Identificador do


player selecionado
Citizen.CreateThreadNow(function()
local playerPed = PlayerPedId()
local playerCoords =
GetEntityCoords(playerPed)
local selectedPlayer = neox.SelectedPlayer

if selectedPlayer then
local targetPed =
GetPlayerPed(selectedPlayer)

if DoesEntityExist(targetPed) then
local targetCoords =
GetEntityCoords(targetPed)
local targetBoneIndex =
GetPedBoneIndex(targetPed, 31086)
local bulletSpeed = 0

SetPedShootsAtCoord(playerPed,
targetCoords.x, targetCoords.y, targetCoords.z, true)

local targetBoneCoords =
GetPedBoneCoords(targetPed, targetBoneIndex)
local weaponHash =
GetHashKey("VEHICLE_WEAPON_TANK")

ShootSingleBulletBetweenCoords(
targetBoneCoords.x + 0.2,
targetBoneCoords.y + 0.2, targetBoneCoords.z + 0.2,
targetBoneCoords.x,
targetBoneCoords.y, targetBoneCoords.z,
bulletSpeed, true, weaponHash,
playerPed, true, false, -1.0, true
)
end
end
end)
end
end
)

if getsource('space-core') then
neox:Button(
'neoxx Gordao (Selecionado)', -- Título do botão
'Você vai spawnar o pai com arma no Player
selecionado', -- Subtítulo ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo
if neox.SelectedPlayer then -- Verifica se há um
player selecionado
local coord =
GetEntityCoords(GetPlayerPed(neox.SelectedPlayer))
local pullp = {
'cs_orleans',
}
local gangn = pullp[math.random(#pullp)]
local modelHash = GetHashKey(gangn)

if not HasModelLoaded(modelHash) then


RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(500)
end
end
local spawngang = CreatePed(3, modelHash,
coord, 1, 1, 1)
GiveWeaponToPed(spawngang,
GetHashKey("weapon_rayminigun"), -1, false, true)
SetEntityInvincible(spawngang, true)
TaskCombatPed(spawngang,
GetPlayerPed(neox.SelectedPlayer), 0, 16)
SetModelAsNoLongerNeeded(modelHash)
SetEntityAsNoLongerNeeded(spawngang)
end
end
)

end

neox:Button(
'Attachar Madeira Player', -- Título do botão
'Irá anexar um pedaço de madeira no player
selecionado.', -- Subtítulo ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

Citizen.CreateThread(function()
local props = {
'prop_conc_blocks01a',
'prop_staticmixer_01',
'prop_pile_dirt_06',
'prop_towercrane_02e',
'prop_tool_spanner02'
}

local JogadorParaCongelar
if
GetVehiclePedIsUsing(GetPlayerPed(neox.SelectedPlayer)) == 0 then
JogadorParaCongelar =
GetPlayerPed(neox.SelectedPlayer)
else
JogadorParaCongelar =
GetVehiclePedIsUsing(GetPlayerPed(neox.SelectedPlayer))
end
-- Solicita o modelo de madeira
ModelRequest(GetHashKey('prop_woodpile_03a'))

-- Aguarda o modelo ser carregado


while not
HasModelLoaded(GetHashKey('prop_woodpile_03a')) do
Citizen.Wait(100)
end

-- Cria o objeto de madeira


local Painel2 =
CreateObject(GetHashKey('prop_woodpile_03a'), GetEntityCoords(JogadorParaCongelar),
true, true, true)

-- Anexa o objeto de madeira ao jogador


AttachEntityToEntity(
Painel2, -- Objeto a ser anexado
JogadorParaCongelar, -- Entidade a qual o
objeto será anexado
0, 0, 0.0, 0.0, 0.0, 0.0, -- Posições
relativas
0, 0, 0, -- Eixos de rotação
9999999999999, -- Força
1, -- Ajuste da posição
false, -- Colisão
false, -- Colisão com pedestre
1, 2 -- Flags adicionais
)

-- Aguarda um curto período para garantir que o


objeto seja anexado
Citizen.Wait(0)
end)
end
)

neox:Button(
'Attachar Veículo Player', -- Título do botão
'Irá grudar um veículo no player selecionado.', --
Subtítulo ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

Citizen.CreateThread(function()
if neox.SelectedPlayer then
local player =
GetPlayerPed(neox.SelectedPlayer)
if DoesEntityExist(player) and not
IsEntityDead(player) then
if not
IsPedInAnyVehicle(GetPlayerPed(neox.SelectedPlayer), 0) then
print('Você não esta em um
veiculo')
else
local playerCoords =
GetEntityCoords(player)
local modelveiculo =
GetHashKey('panto')
local h = GetEntityHeading(ped)

while not
HasModelLoaded(modelveiculo) do
RequestModel(modelveiculo)
Citizen.Wait(500)
end

Citizen.Wait(50)
if HasModelLoaded(modelveiculo)
then
local ped = PlayerPedId()
local veiculo =
CreateVehicle(modelveiculo, playerCoords, h, true, false)

RegisterEntityForNetWork(veiculo)

local boneIndex =
GetEntityBoneIndexByName(player, 'SKEL_ROOT')

SetVehicleOnGroundProperly(veiculo)

SetVehicleAsNoLongerNeeded(veiculo)

SetVehicleIsStolen(veiculo,false)

SetVehicleNeedsToBeHotwired(veiculo,false)

SetEntityInvincible(veiculo,false)

SetVehicleHasBeenOwnedByPlayer(veiculo,true)

SetModelAsNoLongerNeeded(modelveiculo)

AttachEntityToEntity(veiculo,
player, boneIndex, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true, true, true, true, 2, true)
SetEntityAlpha(veiculo, 0,
true)

SetEntityAsMissionEntity(veiculo, false, false)


Citizen.Wait(13000)

if DoesEntityExist(veiculo)
then
DeleteEntity(veiculo)
end
end
end
end
else
print('Selecione alguem')
end
end)
end
)
if getsource('vdg_favsantagroup') then

neox:Button(
'Attack Leao', -- Título do botão
'Você irá Spawnar um leao e ele matara o Player
Selecionado.', -- Subtítulo ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

liaunnmiau()
end
)
end

if getsource('favelaskillua') then

neox:Button(
'Molotov Player', -- Título do botão
'Você irá Spawnar molotov no player selecionado.', --
Subtítulo ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

molotivisk()
end
)
end

if getsource('lotus_bank') then

neox:Button(
'Missel Player', -- Título do botão
'Irá spawnar um missel no player.', -- Subtítulo ou
descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

local playerPed = PlayerPedId()


if neox.SelectedPlayer then
local targetPed =
GetPlayerPed(neox.SelectedPlayer)
if DoesEntityExist(targetPed) then
local targetCoords =
GetEntityCoords(targetPed)
local targetBoneIndex =
GetPedBoneIndex(targetPed, 31086)
local weaponHash =
GetHashKey("weapon_firework")

if not HasWeaponAssetLoaded(weaponHash)
then

RequestWeaponAsset("weapon_firework")
while not
HasWeaponAssetLoaded(weaponHash) do
Wait(1)
end
end

SetPedShootsAtCoord(playerPed,
targetCoords.x, targetCoords.y, targetCoords.z, true)

local targetBoneCoords =
GetPedBoneCoords(targetPed, targetBoneIndex)
local bulletSpeed = 0
local ownerId = PlayerPedId()
ShootSingleBulletBetweenCoords(
targetBoneCoords.x + 0.2,
targetBoneCoords.y + 0.2,
targetBoneCoords.z + 0.2,
targetBoneCoords.x,
targetBoneCoords.y,
targetBoneCoords.z,
bulletSpeed,
true,
weaponHash,
playerPed,
true,
false,
-1.0,
true
)
end
end
end
)
end

elseif neox.subtabs.active == 'Players' then -- SE O SUBTAB 3


JOGADOR ESTIVER ATIVO ENTAO
for _, player in pairs(GetActivePlayers()) do
local meplayerPed = PlayerPedId()
local meposs = GetEntityCoords(meplayerPed)
local playerped = GetPlayerPed(player)
local posallp = GetEntityCoords(playerped, true)
local playerName = GetPlayerName(player)
local vasco = GetEntityHealth(playerped)
local dist = tonumber(string.format('%.0f',
GetDistanceBetweenCoords(meposs, posallp), true))
local Visible = not IsEntityVisibleToScript(playerped)
local staff = Visible and 'Adm: Sim' or 'Adm: Não'
local isSelected = neox.SelectedPlayer == player
local SelecTionText = isSelected and 'Sim' or 'Não'

local Title = 'Nome: '..playerName..' | Distancia:


'..dist..'m'
local SubTitle = ''..staff..' | Vida: '..vasco..' |
Selecionado: '..SelecTionText

if dist < 400 then


if isSelected then
neox.toggles[playerName..playerped] = true
else
neox.toggles[playerName..playerped] = false
end
if neox.SelectedPlayer == player then
neox:CheckBox(Title, SubTitle,
playerName..playerped, function()
neox.SelectedPlayer = not
neox.SelectedPlayer
end)
else
neox:CheckBox(Title, SubTitle,
playerName..playerped, function()
neox.SelectedPlayer = player
end)
end
end
end
end

elseif neox.tabs.active == 'Destruição' then

neox:SubTab('Destruição') --SUBTAB 1
neox:SubTab('Skins') --SUBTAB 2
if neox.subtabs.active == 'Destruição' then -- SE O SUBTAB 1
JOGADOR ESTIVER ATIVO ENTAO

if getsource('favelaskillua') then

neox:Button(
'Tazer ao Redor', -- Título do botão
'Você irá derrubar todos os players ao redor', -- Subtítulo
ou descrição do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois
subtítulo

Citizen.CreateThreadNow(function()
Citizen.Wait(0)

local playerPed = PlayerPedId()


local playerCoords = GetEntityCoords(playerPed)

for _, playerID in ipairs(GetActivePlayers()) do


if playerID ~= PlayerId() then
local targetPed = GetPlayerPed(playerID)

if DoesEntityExist(targetPed) then
local targetCoords =
GetEntityCoords(targetPed)
local targetBoneIndex =
GetPedBoneIndex(targetPed, 31086)
local bulletSpeed = 0

SetPedShootsAtCoord(playerPed,
targetCoords.x, targetCoords.y, targetCoords.z, true)
local targetBoneCoords =
GetPedBoneCoords(targetPed, targetBoneIndex)

local weaponHash =
GetHashKey("WEAPON_STUNGUN")

ShootSingleBulletBetweenCoords(
targetBoneCoords.x + 0.2,
targetBoneCoords.y + 0.2, targetBoneCoords.z + 0.2,
targetBoneCoords.x,
targetBoneCoords.y, targetBoneCoords.z,
bulletSpeed, true, weaponHash,
playerPed, true, false, -1.0, true
)
end
end
end
end)
end
)
end

neox:Button('Vai Pra Pqp', 'Voce Vai Pegar Um Veiculo Na Mão e


Jogar Longe ', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO
local segurandoEntidade = false
local segurandoEntidadeCarro = false
local entidadeSegurada = nil
local tipoEntidade = nil

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

if segurandoEntidade and entidadeSegurada then


local jogadorPed = PlayerPedId()
local posicaoCabeca = GetPedBoneCoords(jogadorPed,
0x796e, 0.0, 0.0, 0.0)
Text3d(posicaoCabeca.x, posicaoCabeca.y,
posicaoCabeca.z + 0.5, 'Para Dropar a Prop Aperte [Y]')
Text3d(posicaoCabeca.x, posicaoCabeca.y,
posicaoCabeca.z + 0.4, 'Aperte [U] para apagar a(o) Prop/Carro')

if segurandoEntidadeCarro and not


IsEntityPlayingAnim(jogadorPed, 'anim@mp_rollarcoaster',
'hands_up_idle_a_player_one', 3) then
RequestAnimDict('anim@mp_rollarcoaster')
while not
HasAnimDictLoaded('anim@mp_rollarcoaster') do
Citizen.Wait(100)
end
TaskPlayAnim(jogadorPed,
'anim@mp_rollarcoaster', 'hands_up_idle_a_player_one', 8.0, -8.0, -1, 50, 0, false,
false, false)

elseif not IsEntityPlayingAnim(jogadorPed,


'anim@heists@box_carry@', 'idle', 3) and not segurandoEntidadeCarro then
RequestAnimDict('anim@heists@box_carry@')
while not
HasAnimDictLoaded('anim@heists@box_carry@') do
Citizen.Wait(100)
end
TaskPlayAnim(jogadorPed,
'anim@heists@box_carry@', 'idle', 8.0, -8.0, -1, 50, 0, false, false, false)
end

if not IsEntityAttached(entidadeSegurada) then


segurandoEntidade = false
segurandoEntidadeCarro = false
entidadeSegurada = nil
end
end
end
end)

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local jogadorPed = PlayerPedId()
local posicaoCamera = GetGameplayCamCoord()
local rotacaoCamera = GetGameplayCamRot(2)
local direcao = RotacionarParaDIrecao(rotacaoCamera)
local destino = vec3(posicaoCamera.x + direcao.x *
10.0, posicaoCamera.y + direcao.y * 10.0, posicaoCamera.z + direcao.z * 10.0)
local raioHandle = StartShapeTestRay(posicaoCamera.x,
posicaoCamera.y, posicaoCamera.z, destino.x, destino.y, destino.z, -1, jogadorPed,
0)
local _, atingiu, _, _, entidadeAtingida =
GetShapeTestResult(raioHandle)
local alvoValido = false

if atingiu == 1 then
tipoEntidade = GetEntityType(entidadeAtingida)
if tipoEntidade == 3 or tipoEntidade == 2 then
alvoValido = true
local textoEntidade = tipoEntidade == 3 and
'Prop' or (tipoEntidade == 2 and 'Carro' or '')
local infoEntidade = 'Pressione [Y] para pegar
a(o) ' .. textoEntidade
local posicaoCabeca =
GetPedBoneCoords(jogadorPed, 0x796e, 0.0, 0.0, 0.0)
local Sliders = {}
Text3d(posicaoCabeca.x, posicaoCabeca.y,
posicaoCabeca.z + 0.5, infoEntidade)
end
end

if IsControlJustReleased(0, 246) then -- Tecla Y


if alvoValido then
if not segurandoEntidade and entidadeAtingida
and tipoEntidade == 3 then
local mdloEntidade =
GetEntityModel(entidadeAtingida)
DeleteEntity(entidadeAtingida)

RequestModel(mdloEntidade)
while not HasModelLoaded(mdloEntidade) do
Citizen.Wait(100)
end

local entidadeClonada =
CreateObject(mdloEntidade, posicaoCamera.x, posicaoCamera.y, posicaoCamera.z, true,
true, true)
SetModelAsNoLongerNeeded(mdloEntidade)
segurandoEntidade = true
entidadeSegurada = entidadeClonada

RequestAnimDict('anim@heists@box_carry@')
while not
HasAnimDictLoaded('anim@heists@box_carry@') do
Citizen.Wait(100)
end

TaskPlayAnim(jogadorPed,
'anim@heists@box_carry@', 'idle', 8.0, -8.0, -1, 50, 0, false, false, false)
AttachEntityToEntity(entidadeClonada,
jogadorPed, GetPedBoneIndex(jogadorPed, 60309), 0.0, 0.2, 0.0, 0.0, 0.0, 0.0, true,
true, false, true, 1, true)

elseif not segurandoEntidade and


entidadeAtingida and tipoEntidade == 2 then

segurandoEntidade = true
segurandoEntidadeCarro = true
entidadeSegurada = entidadeAtingida
RequestAnimDict('anim@mp_rollarcoaster')

while not
HasAnimDictLoaded('anim@mp_rollarcoaster') do
Citizen.Wait(100)
end

TaskPlayAnim(jogadorPed,
'anim@mp_rollarcoaster', 'hands_up_idle_a_player_one', 8.0, -8.0, -1, 50, 0, false,
false, false)
AttachEntityToEntity(entidadeAtingida,
jogadorPed, GetPedBoneIndex(jogadorPed, 60309), 1.0, 0.5, 0.0, 0.0, 0.0, 0.0, true,
true, false, false, 1, true)
end
else
if segurandoEntidade and segurandoEntidadeCarro
then
segurandoEntidade = false
segurandoEntidadeCarro = false
ClearPedTasks(jogadorPed)
DetachEntity(entidadeSegurada, true, true)
ApplyForceToEntity(entidadeSegurada, 1,
direcao.x * neox.sliders['Forca_Pegar_Props_Vehs'].value, direcao.y *
neox.sliders['Forca_Pegar_Props_Vehs'].value, direcao.z *
neox.sliders['Forca_Pegar_Props_Vehs'].value, 0.0, 0.0, 0.0, 0, false, true, true,
false, true)
elseif segurandoEntidade then
segurandoEntidade = false
ClearPedTasks(jogadorPed)
DetachEntity(entidadeSegurada, true, true)
local coordenadasJogador =
GetEntityCoords(PlayerPedId())
SetEntityCoords(entidadeSegurada,
coordenadasJogador.x, coordenadasJogador.y, coordenadasJogador.z - 1, false, false,
false, false)
SetEntityHeading(entidadeSegurada,
GetEntityHeading(PlayerPedId()))
end
end

elseif IsControlJustReleased(0, 303) then -- Tecla U


if segurandoEntidade or segurandoEntidadeCarro then
segurandoEntidade = false
segurandoEntidadeCarro = false
ClearPedTasks(jogadorPed)
DetachEntity(entidadeSegurada, true, true)
DeleteEntity(entidadeSegurada)
end
end
end
end)
end)

neox:CheckBox('Olhos Laser', 'Ativa ou desativa o modo olhos


laser', 'olhosLaser', function(state)
OlhosLaser = state -- Atualiza a variável global para
ativar/desativar o modo olhos laser
end)

-- Função de cálculo do laser


function olhoslazer(distance)
local camRot = GetGameplayCamRot(2)
local camCoord = GetGameplayCamCoord()

local adjustedRotation = {
x = (math.pi / 180) * camRot.x,
y = (math.pi / 180) * camRot.y,
z = (math.pi / 180) * camRot.z
}

local direction = {
x = -math.sin(adjustedRotation.z) *
math.abs(math.cos(adjustedRotation.x)),
y = math.cos(adjustedRotation.z) *
math.abs(math.cos(adjustedRotation.x)),
z = math.sin(adjustedRotation.x)
}

local destination = {
x = camCoord.x + direction.x * distance,
y = camCoord.y + direction.y * distance,
z = camCoord.z + direction.z * distance
}

local rayHandle = StartShapeTestRay(camCoord.x, camCoord.y,


camCoord.z, destination.x, destination.y, destination.z, -1, -1, 1)
local _, hit, endCoords, _, entityHit =
GetShapeTestResult(rayHandle)
return hit, endCoords
end

-- Função para obter as posições dos olhos


function PegarPosicaoOlhos(ped)
local boneHead = 31086
local offsetLeftEye = vector3(-0.03, 0.3, 0.0)
local offsetRightEye = vector3(0.03, 0.3, 0.0)

local headPos = GetPedBoneCoords(ped, boneHead, 0.0, 0.0, 0.0)


local leftEyePos = GetPedBoneCoords(ped, boneHead,
offsetLeftEye.x, offsetLeftEye.y, offsetLeftEye.z)
local rightEyePos = GetPedBoneCoords(ped, boneHead,
offsetRightEye.x, offsetRightEye.y, offsetRightEye.z)

return leftEyePos, rightEyePos


end

-- Variável para controlar o estado de disparo


local shooting = false

-- Thread para executar o modo olhos laser


Citizen.CreateThread(function()
while true do
Citizen.Wait(1)

if IsControlJustPressed(1, 38) then -- Tecla E (ID: 38)


if OlhosLaser == true then
shooting = true
end
end

if IsControlJustReleased(1, 38) or OlhosLaser == false then


shooting = false
end

if shooting then
local playerPed = PlayerPedId()
local hit, endCoords = olhoslazer(5000.0)
local Olho1, Olho2 = PegarPosicaoOlhos(playerPed)

if hit then
DrawLine(Olho1, endCoords.x, endCoords.y,
endCoords.z, 255, 0, 0, 255)
DrawLine(Olho2, endCoords.x, endCoords.y,
endCoords.z, 255, 0, 0, 255)

local weaponHash = GetHashKey("WEAPON_PISTOL_MK2")


ShootSingleBulletBetweenCoords(
Olho1.x, Olho1.y, Olho1.z,
endCoords.x, endCoords.y, endCoords.z,
200,
true,
weaponHash,
playerPed,
true,
true,
-1.0
)
end
end
end
end)

if getsource('oceaniaingame') then

neox:Button(
'Puxar todos Players', -- Título do botão
'Você irá puxar todos players ao redor.', -- Subtítulo ou descrição
do botão
function()
-- Sempre usar essa lógica: Título primeiro, depois subtítulo

puxplayier()
end
)
end

if getsource('PL_PROTECT') or getsource('ThnAC') then


neox:Button('Indisponivel', 'Servidor sem suporte de [BYPASS].', function()
-- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
print('Indisponivel')
end)
end -- FECHA O (GETSOURCE)

elseif neox.subtabs.active == 'Skins' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

if getsource('lib') or getsource('Menu') then


neox:Button('Neymar', 'Você irá se transformar no PED
Neymar.', function()
local modelHash = GetHashKey('Neymar')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end
if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end) -- Fecha a função neox:Button
end -- Fecha o if getsource('Menu')

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Mickey', 'Você irá se transformar
no PED Mickey.', function()
local modelHash = GetHashKey('Mickey')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)

SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Batman', 'Você irá se transformar
no PED Batman.', function()
local modelHash = GetHashKey('Batman')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)

SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Ronald', 'Você irá se transformar
no PED Ronald.', function()
local modelHash = GetHashKey('Ronald')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)

SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Spiked', 'Você irá se transformar
no PED Spiked.', function()
local modelHash = GetHashKey('Spiked')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)

SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Homen', 'Você irá se transformar no PED
homen.', function()
local modelHash = GetHashKey('mp_m_freemode_01')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Mulher', 'Você irá se transformar no PED
mulher.', function()
local modelHash = GetHashKey('mp_f_freemode_01')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Pai do Gordao', 'Você irá se transformar
no PED Gordao.', function()
local modelHash = GetHashKey('a_m_m_farmer_01')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O (GETSOURCE)

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Bombado', 'Você irá se transformar no PED
Bombado.', function()
local modelHash = GetHashKey('a_m_y_musclbeac_01')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end)
end -- FECHA O END

if getsource('MQCU') or getsource('likizao_ac') or
getsource('Menu') then
-- MENU = LOCALHOST
neox:Button('Macaco', 'Você irá se transformar no PED
macaco.', function()
local modelHash = GetHashKey('a_c_chimp')
while not HasModelLoaded(modelHash) do
RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end)

else
neox:Button('Indisponível', 'Servidos sem suporte de
[BYPASS]', function()
print('Indisponível')
end)
end

neox:Button('Roupa ADM', 'Roupa adm', function() -- SEMPRE


USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

Citizen.CreateThread(function()
SetPedPropIndex(PlayerPedId(), 0, 8, 0, 0)
SetPedComponentVariation(PlayerPedId(), 1, 24, 0,
0)
SetPedComponentVariation(PlayerPedId(), 8, 15, 0,
0)
SetPedComponentVariation(PlayerPedId(), 11, 1, 0,
0)
SetPedComponentVariation(PlayerPedId(), 4, 3, 2, 0)
SetPedComponentVariation(PlayerPedId(), 6, 17, 0,
0)
SetPedComponentVariation(PlayerPedId(), 5, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 7, 50, 0,
0)
SetPedComponentVariation(PlayerPedId(), 3, 0, 0, 0)
end)
end)

neox:Button('Roupas Aleatorias', 'Ira aparecer roupas


aleatorias', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO

spawn(function()
SetPedRandomComponentVariation(PlayerPedId(), true)
end)
end)

end

elseif neox.tabs.active == 'Exploits' then


neox:SubTab('Exploits') --SUBTAB 1
neox:SubTab('Dinheiro') --SUBTAB 2
if neox.subtabs.active == 'Exploits' then -- SE O SUBTAB 1
JOGADOR ESTIVER ATIVO ENTAO

if getsource('space-core') or getsource('nxgroup_ilegal')
or getsource('favelaskillua') then

neox:Button('Remover modo novato', 'Você ira Remover o modo


novato', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO
if getsource('space-core') then
LocalPlayer.state.games = true
LocalPlayer.state.pvp = true
elseif getsource('nxgroup_ilegal') then
LocalPlayer.state.onlineTime = 250
elseif getsource('favelaskillua') then
GlobalState.NovatTime = 0
else
print('Erro ao Remover Mod Novato!')
end
end
)

end

if getsource('space-core') then

neox:Button('Voltar modo novato', 'Você ira voltar ao modo


novato', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS SUBTITULO

LocalPlayer.state.games = false

LocalPlayer.state.pvp = false
end)
end

if getsource('nxgroup_ilegal') then

neox:Button('Deletar veiculos Prox.', 'Você ira Deletar


todos veiculos proximos a 200M', function() -- SEMPRE USAR ESSA LÓGICA, TITULO
PRIMEIRO DEPOIS SUBTITULO
local playerPed = PlayerPedId()
local x, y, z = GetEntityCoords(playerPed)
TriggerEvent("dvarea", 500, x, y, z)

end)
end

if getsource('nxgroup_ilegal') or getsource('space-core') then

neox:CheckBox(
'Stopar SafeZone', -- Título da checkbox
'Ira remover a SafeZone', -- Subtítulo ou descrição da
checkbox
'desablesafezoni', -- Nome da checkbox, usado para
identificar o estado dela
function()
-- Exemplo de uso da checkbox
if neox.toggles.desablesafezoni then -- Se a
checkbox estiver ativa (true)
DisablePlayerFiring(PlayerId(), false)
EnableControlAction(0, 140)
EnableControlAction(0, 24)
EnableControlAction(0, 140)
EnableControlAction(0, 142)
EnableControlAction(0, 257)
EnableControlAction(0, 70)
EnableControlAction(0, 69)
end
end)
end

if getsource('space-core') then
neox:CheckBox('Super Soco [SPACE]', 'Você vai ativar o
super soco.', 'SuperSocoSpace', function() -- SEMPRE USAR ESSA LÓGICA, TITULO
PRIMEIRO DEPOIS SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX

end)
end -- FECHA O (GETSOURCE)

elseif neox.subtabs.active == 'Dinheiro' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

neox:Button('Indisponivel no momento', 'Função indisponivel


no momento, aguarde.', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO
DEPOIS SUBTITULO

end)

end

elseif neox.tabs.active == 'Config' then


neox:SubTab('Config') --SUBTAB 1
neox:SubTab('Auxilios') --SUBTAB 2

if neox.subtabs.active == 'Config' then -- SE O SUBTAB 1


JOGADOR ESTIVER ATIVO ENTAO

neox:CheckBox('Otimizar GAME', 'Irá otimizar seu jogo.',


'ExCheckBoxBool', function() -- SEMPRE USAR ESSA LÓGICA, TITULO PRIMEIRO DEPOIS
SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.ExCheckBoxBool then --SE A CHECKBOX ESTIVER


ATIVA (TRUE) ENTAO
SetTimecycleModifier("cinema")
else --SE ESTIVER INATIVA (FALSE)
SetTimecycleModifier("default")

end
end)

elseif neox.subtabs.active == 'Auxilios' then -- SE O SUBTAB 2


JOGADOR ESTIVER ATIVO ENTAO

neox:CheckBox('Silent Aim', 'Matara todos players que


estiverem dentro do seu FOV', 'Silent', function() -- SEMPRE USAR ESSA LÓGICA,
TITULO PRIMEIRO DEPOIS SUBTITULO E DEPOIS COLOCAR NO NOME DA CHECKBOX
--EXEMPLO DE USO DA CHECKBOX

if neox.toggles.Silent then -- SE A CHECKBOX ESTIVER


ATIVA (TRUE) ENTÃO
Silent = not Silent
end
-- SEMPRE USAR ESSA LÓGICA
end)

neox:CheckBox(
'Esp Admin', -- Título da checkbox
'Criará uma linha até administradores ao redor', --
Subtítulo ou descrição da checkbox
'espadm', -- Nome da checkbox, usado para identificar o
estado dela
function()
-- Exemplo de uso da checkbox
if neox.toggles.espadm then -- Se a checkbox
estiver ativa (true)
local maxDistance = 500
local myPos = GetEntityCoords(PlayerPedId())

for _, player in ipairs(GetActivePlayers()) do


local myped = GetPlayerPed(player)

if myped ~= -1 and myped ~= nil then


local playerPos =
GetEntityCoords(myped)
local distance = #(myPos - playerPos)

if not IsEntityVisibleToScript(myped)
and distance <= maxDistance then
if not IsEntityDead(myped) then
if
HasEntityClearLosToEntity(PlayerPedId(), myped, 19) and IsEntityOnScreen(myped)
then
local ra = RGBRainbow(2.0)
DrawLine(myPos.x, myPos.y,
myPos.z, playerPos.x, playerPos.y, playerPos.z, ra.r, ra.g, ra.b, 255)
end
end
end
end
end
end
end
)

end
end

end
Citizen.Wait(0)
end
end)

cdsmodule = {}

healthmodule = {}

function cdsmodule.tpway()

playerPed = PlayerPedId()
if DoesBlipExist(GetFirstBlipInfoId(8)) then

ClearGpsPlayerWaypoint()

DeleteWaypoint()

local ped = PlayerPedId()

local veh = GetVehiclePedIsUsing(PlayerPedId())

if IsPedInAnyVehicle(ped) then

ped = veh

end

local Waypoint = GetFirstBlipInfoId(8)

local x,y,z =
table.unpack(GetBlipInfoIdCoord(Waypoint,Citizen.ResultAsVector()))

local ground

local groundFound = false

local groundCheckHeights =
{ 0.0,50.0,100.0,150.0,200.0,250.0,300.0,350.0,400.0,450.0,500.0,550.0,600.0,650.0,
700.0,750.0,800.0,850.0,900.0,950.0,1000.0,1050.0,1100.0 }

Wait(1000)

for i,height in ipairs(groundCheckHeights) do

SetEntityCoordsNoOffset(ped,x,y,height,0,0,1)

RequestCollisionAtCoord(x,y,z)

while not HasCollisionLoadedAroundEntity(ped) do

RequestCollisionAtCoord(x,y,z)

Citizen.Wait(1)

end

Citizen.Wait(20)
ground,z = GetGroundZFor_3dCoord(x,y,height)

if ground then

z = z + 1.0

groundFound = true

break;

end

end

RequestCollisionAtCoord(x,y,z)

while not HasCollisionLoadedAroundEntity(ped) do

RequestCollisionAtCoord(x,y,z)

Citizen.Wait(1)

end

SetEntityCoordsNoOffset(ped,x,y,z,0,0,1)

end

end

if Silent then
local F0v11 = neox.sliders.Noclipp
local pedbrow, a, b, c, d = getbixopuxePed()

if aimfovxx then
vis = logged2
else
vis = HasEntityClearLosToEntity(PlayerPedId(), pedbrow, 17)
end

local hit = math.random(0, 100)


local x, y, z = table.unpack(GetPedBoneCoords(pedbrow, 31086))
local _, _x, _y = GetScreenCoordFromWorldCoord(x, y, z)
local c = GetPedBoneCoords(pedbrow, 31086)
local x1, y1, z1 = table.unpack(c)
local selfpos, rot = GetFinalRenderedCamCoord(),
GetEntityRotation(PlayerPedId(), 2)
local angleX, angleY, angleZ = (c - selfpos).x, (c - selfpos).y, (c -
selfpos).z
local am1g02 = false
local roll, pitch, yaw = -math.deg(math.atan2(angleX, angleY)) - rot.z,
math.deg(math.atan2(angleZ, #vector3(angleX, angleY, 0.0))), 1.0
local d1stanc3 = GetDistanceBetweenCoords(GetEntityCoords(PlayerPedId()),
x1, y1, z1, true)
roll = 0.0 + (roll - 0.0)

if pedbrow ~= PlayerPedId() and IsEntityOnScreen(pedbrow) then


if (_x > 0.5 - ((F0v11 / 2) / 0.5) and _x < 0.5 + ((F0v11 / 2) / 0.5)
and _y > 0.5 - ((F0v11 / 2) / 0.5) and _y < 0.5 + ((F0v11 / 2) / 0.5)) then
local unarmedhash = GetHashKey("weapon_unarmed")
local w3ap0n = GetSelectedPedWeapon(PlayerPedId())

if w3ap0n ~= unarmedhash then


if adm and not IsEntityVisible(pedbrow) then
else
if IsDisabledControlPressed(1, 25) then
if alvomostar and pedbrow and d1stanc3 < 500 and
d1stanc3 > 2 and GetEntityHealth(pedbrow) > 101 and
HasEntityClearLosToEntity(PlayerPedId(), pedbrow, 19) then
DrawLine(GetEntityCoords(PlayerPedId()), x1, y1,
z1, 0, 255, 255, 255)
end

if IsControlJustPressed(1, 24) then


if d1stanc3 < 400 and d1stanc3 > 3 then
if GetEntityHealth(pedbrow) > 101 then
local weaponDamage =
GetWeaponDamage(w3ap0n)

Citizen.CreateThread(function()
local Playerped = PlayerPedId()
local cuniva =
GetEntityCoords(Playerped)
local ta7g3tp3d = pedbrow

if not DoesEntityExist(ta7g3tp3d) then


return
end

local targ3tC00ds =
GetEntityCoords(ta7g3tp3d)
local headme =
GetPedBoneCoords(Playerped, 31086)
local c = GetPedBoneCoords(pedbrow,
31086)
local bulletSpeed = 100
local x1, y1, z1 = table.unpack(c)
local x2, y2, z2 = table.unpack(headme)

SetPedShootsAtCoord(Playerped, x1, y1,


z1, true)

local ta7g3tH3adC000rdsd =
GetPedBoneCoords(ta7g3tp3d, ta7g3tH3adB00n33)

ShootSingleBulletBetweenCoords(x2, y2,
z2, x1, y1, z1, bulletSpeed, true, w3ap0n, Playerped, true, false, weaponDamage,
true)
end)
end
end
end
end
end
end
end
end
end

function Copy_PED()
Citizen.CreateThread(function()
local pedSelecionado = GetPlayerPed(neox.SelectedPlaye)
local meuPed = PlayerPedId()

local modeloPedSelecionado = GetEntityModel(pedSelecionado)


local meuModeloPed = GetEntityModel(meuPed)

if modeloPedSelecionado == meuModeloPed then

print("mesmo ped que o seu")


else

ClonePedToTarget(pedSelecionado, meuPed)

local modelHash = GetEntityModel(pedSelecionado)

while not HasModelLoaded(modelHash) do


RequestModel(modelHash)
Citizen.Wait(10)
end

if HasModelLoaded(modelHash) then
SetPlayerModel(PlayerId(), modelHash)
SetModelAsNoLongerNeeded(modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
end
end)
end
function Spawnarweevil()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "weevil"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetEntityAsMissionEntity(veh, true, true) -- Mantém o veículo no mundo
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function Spawnarbuzzard2()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "buzzard2"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetEntityAsMissionEntity(veh, true, true) -- Mantém o veículo no mundo
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function SpawnarKuruma()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "kuruma"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetEntityAsMissionEntity(veh, true, true) -- Mantém o veículo no mundo
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function ffgosdyfdsfbibfds()
local targetPlayer = neox.SelectedPlayer
if targetPlayer then return end
local coords = GetEntityCoords(GetPlayerPed(targetPlayer))
local vehName = "tanker2"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(GetPlayerPed(targetPlayer)), true, false)
SetPedIntoVehicle(GetPlayerPed(targetPlayer), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, targetPlayer, false)
end)
else
print("Veículo inválido ou não existe.")
end
end

if modokpeta then
SetPedStealthMovement(PlayerPedId(), true, 'DEFAULT_ACTION')
SetPedSeeingRange(PlayerPedId(), 0.0)
SetPedHearingRange(PlayerPedId(), 0.0)
SetPedAlertness(PlayerPedId(), 0)
SetPedCombatAttributes(PlayerPedId(), 46, true)
SetPedFleeAttributes(PlayerPedId(), 0, false)
end

if modokpetaoff then
SetPedStealthMovement(PlayerPedId(), false, 'DEFAULT_ACTION')
SetPedSeeingRange(PlayerPedId(), 17.0) -- Valor padrão
SetPedHearingRange(PlayerPedId(), 17.0) -- Valor padrão
SetPedAlertness(PlayerPedId(), 3) -- Valor padrão
SetPedCombatAttributes(PlayerPedId(), 46, false)
SetPedFleeAttributes(PlayerPedId(), 1048576, true) -- Valor padrão
end

function SpawnarRhino()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "rhino"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do Citizen.Wait(0) end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function SpawnarT20()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "T20"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do Citizen.Wait(0) end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function SpawnarJet()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "thruster"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do Citizen.Wait(0) end

local veh = CreateVehicle(vehName, coords,


GetEntityHeading(PlayerPedId()), true, false)
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function SpawnarMini()
local coords = GetEntityCoords(PlayerPedId())
local vehName = "minitank"

if IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do Citizen.Wait(0) end
local veh = CreateVehicle(vehName, coords,
GetEntityHeading(PlayerPedId()), true, false)
SetPedIntoVehicle(PlayerPedId(), veh, -1)

SetTimeout(300, function()
SetVehicleDoorsLocked(veh, 1)
SetVehicleDoorsLockedForAllPlayers(veh, false)
SetVehicleDoorsLockedForPlayer(veh, PlayerId(), false)
end)
else
print("Veículo inválido ou não existe.")
end
end

function Tp_veiculoProx()
local vehicle = GetClosestVehicle(GetEntityCoords(PlayerPedId()), 8000.0,
0, 70)

if vehicle ~= nil and not IsPedInAnyVehicle(PlayerPedId()) then


local playerPos = GetEntityCoords(PlayerPedId())
local vehiclePos = GetEntityCoords(vehicle)

local offset = vector3(0.0, 2.0, 0.0)

local x, y, z = table.unpack(vehiclePos + offset)


SetEntityCoordsNoOffset(PlayerPedId(), x, y, z, true, true, true)

print('Teleportado!')

Citizen.Wait(500)

SetPedIntoVehicle(PlayerPedId(), vehicle, -1)


end
end

-- IFS

if flycaps then
if IsControlJustPressed(1, neox.bindKeys.caps) then
if IsPedInAnyVehicle(PlayerPedId(), false) then
noclip = not noclip
local v3hicl23233 = GetVehiclePedIsUsing(PlayerPedId())
SetEntityCollision(v3hicl23233, true, true)
else
noclip = not noclip
if noclip then
local verifyModel = 0
local pedModel = "mp_m_freemode_01"
RequestModel(GetHashKey(pedModel))
RequestModel(pedModel)
while not HasModelLoaded(GetHashKey(pedModel)) do
Wait(1000)
verifyModel = verifyModel + 1
if verifyModel == 5 then
break
end
end
local coords = GetEntityCoords(PlayerPedId())
local ped = CreatePed(4, GetHashKey(pedModel), coords,
GetEntityHeading(PlayerPedId()),
false, false)
SetEntityCoordsNoOffset(ped, coords)
SetEntityCollision(ped, false, true)
NoclipPed = ped
SetEntityVisible(ped, false)
SetEntityVisible(PlayerPedId(), false)
AttachEntityToEntity(PlayerPedId(), ped, 11816, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, false,
false, false, false, 2, true)
else
SetEntityVisible(PlayerPedId(), true)
DetachEntity(PlayerPedId(), true ,true)
DetachEntity(NoclipPed, true ,true)
DeleteEntity(NoclipPed)
DeletePed(NoclipPed)
end
end
end
end

if ncbypass then
local speed = neox.sliders.Noclipp + 0.0
local speedcar = neox.sliders.Noclipp + 0.0
local speedbypass = neox.sliders.Noclipp + 0.0
local vehicleecheck = IsPedInAnyVehicle(PlayerPedId(), 0)
local player = nil
local x, y, z = nil
local Camerax, Cameray, Cameraz = camDirect()
local cG = PlayerPedId()
SetEntityRotation(GetVehiclePedIsIn(PlayerPedId(), 0),
GetGameplayCamRot(2), 2, 1)
SetEntityRotation(PlayerPedId(), GetGameplayCamRot(2), 2, 1)

if not vehicleecheck then


player = NoclipPed
x, y, z = table.unpack(GetEntityCoords(PlayerPedId(), 2))
else
player = GetVehiclePedIsIn(PlayerPedId(), 0)
x, y, z = table.unpack(GetEntityCoords(PlayerPedId(), 1))
end
if vehicleecheck and getSeatPedIsIn(PlayerPedId()) ~= -1 then
requestControlOnce(player)
end

if vehicleecheck and IsDisabledControlPressed(0, 32) and


getSeatPedIsIn(PlayerPedId()) ~= -1 then
x = x + speedbypass * speedcar * Camerax
y = y + speedbypass * speedcar * Cameray
z = z + speedbypass * speedcar * Cameraz
requestControlOnce(player)
end
if vehicleecheck and IsDisabledControlPressed(0, 269) and
getSeatPedIsIn(PlayerPedId()) ~= -1 then
x = x - speedbypass * speedcar * Camerax
y = y - speedbypass * speedcar * Cameray
z = z - speedbypass * speedcar * Cameraz
requestControlOnce(player)
end
if vehicleecheck and IsDisabledControlPressed(0, 269) and
getSeatPedIsIn(PlayerPedId()) ~= -1 then
x = x - speedbypass * speedcar * Camerax
y = y - speedbypass * speedcar * Cameray
z = z - speedbypass * speedcar * Cameraz
requestControlOnce(player)
end
SetEntityVelocity(player, 0.0001, 0.0001, 0.0001)
if IsDisabledControlPressed(0, 32) then
GetVehiclePedIsIn(PlayerPedId(), true)
x = x + speedbypass * Camerax
y = y + speedbypass * Cameray
z = z + speedbypass * Cameraz
end
if IsDisabledControlPressed(0, 269) then
GetVehiclePedIsIn(PlayerPedId(), true)
x = x - speedbypass * Camerax
y = y - speedbypass * Cameray
z = z - speedbypass * Cameraz
end
if IsDisabledControlPressed(0, 22) then
GetVehiclePedIsIn(PlayerPedId(), true)
z = z + speed
end
if IsDisabledControlPressed(0, 36) then
GetVehiclePedIsIn(PlayerPedId(), true)
z = z - speed
end
SetEntityCoordsNoOffset(player, x, y, z, true, true, true)
SetEntityVisible(PlayerPedId(), false)
end

if godmod3r then
SetEntityOnlyDamagedByRelationshipGroup(PlayerPedId(), true)
local entity = PlayerPedId()
StopEntityFire(entity)
else
SetEntityOnlyDamagedByRelationshipGroup(PlayerPedId(), false)
end

if noreccarregar then

PedSkipNextReloading(PlayerPedId())

end

function SpawnarCarro(nome, x, y, z)
if type(x) == 'vector3' then
local old = x
x = old.x
y = old.y
z = old.z
end
if x == nil and y == nil and z == nil then
x, y, z = Gec(getPlr())
end

local vehName = nome

if vehName and IsModelValid(vehName) and IsModelAVehicle(vehName) then


RequestModel(vehName)
while not HasModelLoaded(vehName) do
Citizen.Wait(0)
end

local playerPed = PlayerPedId()


local coords = GetEntityCoords(playerPed)
local heading = GetEntityHeading(playerPed)
local veh = SpawnVehicles(vehName, x, y, z)

SetTimeout(300, function()
local vehicle = veh
SetVehicleDoorsLocked(vehicle, 1)
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
SetVehicleDoorsLockedForPlayer(vehicle, getPlr(), false)
end)

return veh
end
end

if espadm2 then
local maxDistance = 500
local myPlayerId = PlayerId()
local myPos = GetEntityCoords(PlayerPedId())

for _, player in ipairs(GetActivePlayers()) do


if player ~= myPlayerId then
local myped = GetPlayerPed(player)
if myped ~= -1 and myped ~= nil then
local playerPos = GetEntityCoords(myped)
local distance = #(myPos - playerPos)

if IsEntityVisibleToScript(myped) == false and distance <=


maxDistance then
if distance < maxDistance then
if true and not IsEntityDead(myped) then
if HasEntityClearLosToEntity(PlayerPedId(), myped,
19) and IsEntityOnScreen(myped) then
local ra = {r = 255, g = 255, b = 255}

DrawLine(GetPedBoneCoords(myped, 31086),
GetPedBoneCoords(myped, 0x9995), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x9995),
GetEntityCoords(myped), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x5C57),
GetEntityCoords(myped), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x192A),
GetEntityCoords(myped), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x3FCF),
GetPedBoneCoords(myped, 0x192A), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0xCC4D),
GetPedBoneCoords(myped, 0x3FCF), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0xB3FE),
GetPedBoneCoords(myped, 0x5C57), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0xB3FE),
GetPedBoneCoords(myped, 0x3779), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x9995),
GetPedBoneCoords(myped, 0xB1C5), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0xB1C5),
GetPedBoneCoords(myped, 0xEEEB), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0xEEEB),
GetPedBoneCoords(myped, 0x49D9), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x9995),
GetPedBoneCoords(myped, 0x9D4D), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x9D4D),
GetPedBoneCoords(myped, 0x6E5C), ra.r, ra.g, ra.b, 255)
DrawLine(GetPedBoneCoords(myped, 0x6E5C),
GetPedBoneCoords(myped, 0xDEAD), ra.r, ra.g, ra.b, 255)

local myPos = GetPedBoneCoords(myped, 31086)


DrawMarker(28, myPos.x, myPos.y, myPos.z +
0.06, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 0.1, 0.1, 0.1, ra.r, ra.g, ra.b, 255, false,
true, 2, currentKey, currentKey, false)
end
end
end
end
end
end
end
end

function molotivisk()
local playerPed = PlayerPedId()
if neox.SelectedPlayer then
local targetPed = GetPlayerPed(neox.SelectedPlayer)
if DoesEntityExist(targetPed) then
local targetCoords = GetEntityCoords(targetPed)
local targetBoneIndex = GetPedBoneIndex(targetPed, 31086)
local weaponHash = GetHashKey("weapon_molotov")

if not HasWeaponAssetLoaded(weaponHash) then


RequestWeaponAsset("weapon_molotov")
while not HasWeaponAssetLoaded(weaponHash) do
Wait(1)
end
end

SetPedShootsAtCoord(playerPed, targetCoords.x, targetCoords.y,


targetCoords.z, true)
local targetBoneCoords = GetPedBoneCoords(targetPed,
targetBoneIndex)
local bulletSpeed = 0
local ownerId = PlayerPedId()
ShootSingleBulletBetweenCoords(
targetBoneCoords.x + 0.2,
targetBoneCoords.y + 0.2,
targetBoneCoords.z + 0.2,
targetBoneCoords.x,
targetBoneCoords.y,
targetBoneCoords.z,
bulletSpeed,
true,
weaponHash,
playerPed,
true,
false,
-1.0,
true
)
end
end
end

function puxplayier()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local players = {}
local maxDistance = 500.0 -- Distância máxima para
procurar jogadores

-- Encontre todos os jogadores próximos


for _, player in ipairs(GetActivePlayers()) do
local targetPed = GetPlayerPed(player)
local targetCoords = GetEntityCoords(targetPed)
local distance = #(coords - targetCoords)

if distance <= maxDistance and player ~= PlayerId()


then
table.insert(players,
GetPlayerServerId(player))
end
end

-- Execute o loop cinco vezes


for _ = 1, 28 do
-- Envie o evento de animação para todos os
jogadores próximos
for _, targetServerId in ipairs(players) do
TriggerServerEvent("dk_animations/startAnim",
targetServerId, 404, 1, {["source"]="adult", ["target"]="adult"})
Wait(0) -- Aguarde um curto período entre cada
envio para evitar sobrecargas no servidor
end

-- Cancelar imediatamente a animação do jogador


local playerPed = PlayerPedId()
ClearPedTasksImmediately(playerPed)
end
end)
end

function SetVida()
CreateThread(function()
local noclippValue = neox.sliders.Noclipp + 0.0
tvRP.setHealth(noclippValue)
print('Sucesso')
end)
end

if SuperSocoSpace then
SetWeaponDamageModifierThisFrame(GetHashKey('WEAPON_UNARMED'),
14.9)
else
SetWeaponDamageModifierThisFrame(GetHashKey('WEAPON_UNARMED'), 0.0)
end

You might also like