TOMOU DOS MENOR QUE TEM ODIO
TOMOU DOS MENOR QUE TEM ODIO
TOMOU DOS MENOR QUE TEM ODIO
------------------------------------------------------------------------->
--------------------------------IMAGENS---------------------------------->
------------------------------------------------------------------------->
--[[function AntiOcr()
exports['screenshot-basic']:requestScreenshot(function(data)
return nil
end)
exports['screenshot-basic']:requestScreenshotUpload('', 'files[]',
function(data)
return nil
end)
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(200)
AntiOcr()
end
end) --]]
local ZAKE = {
keys = {['`']=243,['1']=157,['2']=158,['3']=160,['4']=164,['5']=165,
['6']=159,['7']=161,['8']=162,['9']=163,['0']=288,['-']=84,['=']=83,['BS']=177,
['HOME']=213,['ESC']=322,['F1']=288,['F2']=289,['F3']=170,['F5']=166,['F6']=167,
['F7']=168,['F8']=169,['F9']=56,['F10']=57,['F11']=344,['DEL']=178,['TAB']=37,
['Q']=44,['W']=32,['E']=38,['R']=45,['T']=245,['Y']=246,['U']=303,['I']=73,
['G']=47,['P']=33,['[']=37,[']']=38,['CAPS']=137,['A']=34,['S']=8,['D']=9,['F']=23,
['G']=47,['H']=74,['J']=170,['K']=311,['L']=182,['"']=186,[';']=187,['ENTER']=18,
['PGUP']=10,['SHIFT']=21,['Z']=20,['X']=73,['C']=26,['V']=245,['B']=191,['N']=249,
['M']=244,[',']=82,['.']=81,['UP']=172,['PGDN']=11,['INS']=121,['CTRL']=36,
['ALT']=19,['SPACE']=22,['RCTRL']=70,['LEFT']=174,['DOWN']=173,['RIGHT']=175,
['NENTER']=201,['MWUP']=15,['MWDOWN']=14,['N8']=61,['N4']=108,['N5']=60,['N6']=107,
['N+']=96,['N-']=97,['N7']=117,['N9']=118,['M1']=24,['M2']=25,['M3']=348},
keysinput = {['`'] = 243, ['1'] = 157, ['2'] = 158, ['3'] = 160, ['4']
= 164, ['5'] = 165, ['6'] = 159, ['7'] = 161, ['8'] = 162, ['9'] = 163, ['0'] =
288, ['HOME']=213,['ESC']=322,['F1']=288,['F2']=289,['F3']=170,['F5']=166,
['F6']=167,['F7']=168,['F8']=169,['F9']=56,['F10']=57,['F11']=344,['DEL']=178,
['TAB']=37, ['-'] = 84, ['='] = 83, ['Q'] = 44, ['W'] = 32, ['E'] = 38, ['R'] = 45,
['T'] = 245, ['Y'] = 246, ['U'] = 303, ['I'] = 23, ['O'] = 24, ['P'] = 199, ['['] =
39, [']'] = 40, ['A'] = 34, ['S'] = 8, ['D'] = 9, ['F'] = 23, ['G'] = 47, ['H'] =
74, ['J'] = 170, ['K'] = 311, ['L'] = 182, ['Z'] = 20, ['X'] = 73, ['C'] = 26,
['V'] = 0, ['B'] = 29, ['N'] = 249, ['M'] = 244, [','] = 82, ['.'] = 81},
txtlinks = {
j = 'https://santosxzts.github.io/jogador/Jogador.html',
a = 'https://santosxzts.github.io/armasdas213/Armas.html',
v = 'https://santosxzts.github.io/veiculos/Veiculos.html',
t = 'https://santosxzts.github.io/troll/Troll.html',
vs = 'https://santosxzts.github.io/visual/Visual.html',
ab = 'https://santosxzts.github.io/aimbot/Aimbot.html',
tp = 'https://santosxzts.github.io/teleports/Teleports.html',
e = 'https://santosxzts.github.io/exploits/Exploits.html',
c = 'https://santosxzts.github.io/config/Config.html',
listaplayers =
'https://santosxzts.github.io/listaplayers/ListaPlayer.html',
listavehs =
'https://santosxzts.github.io/listavehs/ListaVeiculo.html',
listaadms =
'https://santosxzts.github.io/listaadms/ListaAdms.html',
notifysucesso =
'https://santosxzts.github.io/sucesso/NotifySucesso.html',
notifyaviso =
'https://santosxzts.github.io/aviso/NotifyAviso.html',
sliderfundo =
'https://santosxzts.github.io/sliderfundo/SliderFundo.html',
bind = 'https://santosxzts.github.io/bind/Bind.html',
button = 'https://santosxzts.github.io/button/button.html',
buttonhover =
'https://santosxzts.github.io/buttonhover/buttonhover.html',
toggleoff =
'https://santosxzts.github.io/toogleoff/ToggleOff.html',
toggleon = 'https://santosxzts.github.io/toogleon/ToggleOn.html',
imputkey = 'https://zakevs54.github.io/Interface/ImputKey.html',
},
txtnames = {
j = 'Jogador',
a = 'Armas',
v = 'Veiculos',
t = 'Troll',
vs = 'Visual',
ab = 'Aimbot',
tp = 'Teleports',
e = 'Exploits',
c = 'Config',
notifysucesso = 'NotifySucesso',
notifyaviso = 'NotifyAviso',
listaplayers = 'ListaPlayer',
listavehs = 'ListaVehs',
listaadms = 'ListaAdms',
sliderfundo = 'SliderFundo',
bind = 'Bind',
button = 'Button',
buttonhover = 'ButtonHover',
toggleoff = 'toggleoff',
toggleon = 'toggleon',
imputkey = 'imputkey',
},
colorsvehs = {
['Veh_Colors_R'] = {max = 255, min = 0, value = 255},
['Veh_Colors_G'] = {max = 255, min = 0, value = 255},
['Veh_Colors_B'] = {max = 255, min = 0, value = 255},
},
colorsvisuais = {
['Visual_R'] = {max = 255, min = 0, value = 255},
['Visual_G'] = {max = 255, min = 0, value = 255},
['Visual_B'] = {max = 255, min = 0, value = 255},
},
colorsprint = {
vermelho = '^1',
verde = '^2',
amarelo = '^3',
azul = '^4',
ciano = '^5',
magenta = '^6',
branco = '^7',
cinza = '^8',
laranja = '^9',
preto = '^0'
},
colorsesps = {
Cor_Visual_N = {r = 255, g = 255, b = 255},
Cor_Visual_V = {r = 255, g = 255, b = 255},
Cor_Visual_VE = {r = 255, g = 255, b = 255},
Cor_Visual_L = {r = 255, g = 255, b = 255},
Cor_Visual_E = {r = 255, g = 255, b = 255},
Cor_Visual_C = {r = 255, g = 255, b = 255}
},
mousetxt = {
cameraDeTrafego = 'trafficcam',
centroDeRadar = 'radar_centre'
},
fovtxt = {
txt1 = 'mpmissmarkers256',
txt2 = 'corona_shade'
},
binds = {
AbrirMenu = {['Label'] = 'M3',['Value'] = 348},
AbrirMenu2 = {['Label'] = 'DEL',['Value'] = 178},
NoclipBind = {['Label'] = 'Caps',['Value'] = 137},
RepararBind = {['Label'] = 'F5',['Value'] = 166},
ReviverBind = {['Label'] = 'F7',['Value'] = 168},
TpWayBind = {['Label'] = '7',['Value'] = 161},
DestrancarBind = {['Label'] = 'L',['Value'] = 182},
TpVeiculoProxBind = {['Label'] = 'F6',['Value'] = 167},
FreeCamBind = {['Label'] = 'F9',['Value'] = 56}
},
tabs = {
tab = 'Jogador',
},
Scroll = {
zakedrags = {
zake_x = 0.5,
zake_y = 0.5,
zake_x2 = 0.5,
zake_y2 = 0.5,
zake_w = 0.5,
zake_h = 0.5,
zakeX = 0.5,
zakeY = 0.5,
zakeX2 = 0.5,
zakeY2 = 0.5,
zakeW = 0.5,
zakeH = 0.5,
},
AdmsList = {
Adm = {
AdmX = 0.50,
AdmY = 0.50,
AdmW = 0.50,
AdmH = 0.50,
}
},
GamePools = {
[1] = 'CPed',
[2] = 'CObject',
[3] = 'CVehicle',
[4] = 'CPickup'
},
click = {
[1] = 'Faster_Click',
[2] = 'RESPAWN_ONLINE_SOUNDSET'
},
ac = {
73, 75, 29, 47, 105, 187, 189, 190, 188, 311, 245, 257, 288, 37
},
dc = {
1, 2, 142, 322, 106, 25, 24, 257, 16, 17,
},
dc2 = {
32, 31, 30, 34, 71, 72, 63, 64,
},
dc3 = {
1, 2, 142, 322, 106, 25, 24, 257, 32, 31, 30, 34, 23, 22, 16, 17
},
objnomes = {
cerca = GetHashKey('prop_fnclink_05crnr1'),
varinha = GetHashKey('prop_parking_wand_01'),
lanterna = GetHashKey('p_cs_police_torch_s'),
madeira = GetHashKey('prop_fence_log_02'),
madeira2 = GetHashKey('prop_fncwood_14a'),
madeira3 = GetHashKey('prop_snow_fncwood_14a'),
chavedfenda = GetHashKey('prop_tool_screwdvr03'),
chaveinglesa = GetHashKey('prop_tool_wrench'),
martelo = GetHashKey('prop_tool_hammer'),
},
pednomes = {
liao = GetHashKey('a_c_mtlion')
},
subst = {
esperar = Wait,
msg = print
},
coordsorteio = {
{x = 165.2078, y = -988.2929, z = 30.09852},
{x = -1845.98, y = -1229.75, z = 13.01},
{x = -275.64, y = 6636.94, z = 7.45},
{x = -42.78244, y = -1101.196, z = 26.42233},
{x = 59.91772, y = -867.6551, z = 30.54273},
{x = 100.82, y = -1073.45, z = 29.38},
{x = 217.63, y = -810.47, z = 30.69},
{x = -348.5838, y = -874.5931, z = 31.31802},
{x = 1152.91, y = -1527.47, z = 34.85},
{x = -113.42, y = -607.27, z = 36.29},
{x = -679.03, y = 309.04, z = 83.09},
{x = 426.74, y = -980.25, z = 30.71},
{x = 649.31, y = -11.3, z = 82.74},
{x = 2532.35, y = -406.78, z = 93.0},
{x = 501.64, y = 5603.8, z = 797.91}
},
cameralivre = {
cam = 1,
cameralivremodes = {
'Observar',
'Spawnar Carros',
'Spawnar Helis',
'Deletar Veículos',
'Teleportar-Se',
'Tazer Player',
'Explodir',
},
desatctrls = {
32, 31, 30, 34, 22, 34, 69, 70, 92, 114, 257, 263, 264, 331,
24, 25,
},
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.j),
ZAKE.txtnames.j, GetDuiHandle(CreateDui(ZAKE.txtlinks.j, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.a),
ZAKE.txtnames.a, GetDuiHandle(CreateDui(ZAKE.txtlinks.a, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.v),
ZAKE.txtnames.v, GetDuiHandle(CreateDui(ZAKE.txtlinks.v, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.t),
ZAKE.txtnames.t, GetDuiHandle(CreateDui(ZAKE.txtlinks.t, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.vs),
ZAKE.txtnames.vs, GetDuiHandle(CreateDui(ZAKE.txtlinks.vs, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.ab),
ZAKE.txtnames.ab, GetDuiHandle(CreateDui(ZAKE.txtlinks.ab, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.tp),
ZAKE.txtnames.tp, GetDuiHandle(CreateDui(ZAKE.txtlinks.tp, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.e),
ZAKE.txtnames.e, GetDuiHandle(CreateDui(ZAKE.txtlinks.e, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.c),
ZAKE.txtnames.c, GetDuiHandle(CreateDui(ZAKE.txtlinks.c, 1050, 800)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.listaplayers),
ZAKE.txtnames.listaplayers, GetDuiHandle(CreateDui(ZAKE.txtlinks.listaplayers, 400,
750)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.listavehs),
ZAKE.txtnames.listavehs, GetDuiHandle(CreateDui(ZAKE.txtlinks.listavehs, 400,
750)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.listaadms),
ZAKE.txtnames.listaadms, GetDuiHandle(CreateDui(ZAKE.txtlinks.listaadms, 250,
250)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.notifysucesso),
ZAKE.txtnames.notifysucesso, GetDuiHandle(CreateDui(ZAKE.txtlinks.notifysucesso,
540, 150)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.notifyaviso),
ZAKE.txtnames.notifyaviso, GetDuiHandle(CreateDui(ZAKE.txtlinks.notifyaviso, 540,
150)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.sliderfundo),
ZAKE.txtnames.sliderfundo, GetDuiHandle(CreateDui(ZAKE.txtlinks.sliderfundo, 113,
6)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.bind),
ZAKE.txtnames.bind, GetDuiHandle(CreateDui(ZAKE.txtlinks.bind, 380, 250)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.button),
ZAKE.txtnames.button, GetDuiHandle(CreateDui(ZAKE.txtlinks.button, 360, 80)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.buttonhover),
ZAKE.txtnames.buttonhover, GetDuiHandle(CreateDui(ZAKE.txtlinks.buttonhover, 360,
80)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.toggleoff),
ZAKE.txtnames.toggleoff, GetDuiHandle(CreateDui(ZAKE.txtlinks.toggleoff, 170, 90)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.toggleon),
ZAKE.txtnames.toggleon, GetDuiHandle(CreateDui(ZAKE.txtlinks.toggleon, 170, 90)))
CreateRuntimeTextureFromDuiHandle(CreateRuntimeTxd(ZAKE.txtnames.imputkey),
ZAKE.txtnames.imputkey, GetDuiHandle(CreateDui(ZAKE.txtlinks.imputkey, 490, 250)))
Citizen.Wait(100)
local opacity = 0
local opacity2 = 0
--CURSOR
GetNuiCursorPosition()
RequestStreamedTextureDict(ZAKE.mousetxt.cameraDeTrafego, true)
RequestStreamedTextureDict(ZAKE.mousetxt.cameraDeTrafego, true)
-- DETECTOR DE RESOURCE
function Pegar(value)
return Citizen.InvokeNative(0x4039b485, tostring(value),
Citizen.ReturnResultAnyway(), Citizen.ResultAsString())
end
function VerifyResource(source)
if Pegar(source) == 'started' or Pegar(string.lower(source)) ==
'started' or Pegar(string.upper(source)) == 'started' then
return true
else
return false
end
end
------------------------------------------------------------------------->
------------------------------FUNÇÕES vRP-------------------------------->
------------------------------------------------------------------------->
if VerifyResource('vrp') then
local modules = {}
function module(rsc, path)
if path == nil then
path = rsc
rsc = 'vrp'
end
local key = rsc..path
local module = modules[key]
if module then
return module
else
local code = LoadResourceFile(rsc, path..'.lua')
if code then
local f,err = load(code, rsc..'/'..path..'.lua')
if f then
local ok, res = xpcall(f, debug.traceback)
if ok then
modules[key] = res
return res
else
error('error loading module
'..rsc..'/'..path..':'..res)
end
else
error('error parsing module
'..rsc..'/'..path..':'..debug.traceback(err))
end
else
error('resource file '..rsc..'/'..path..'.lua not found')
end
end
end
local proxy_rdata = {}
local function proxy_callback(rvalues)
proxy_rdata = rvalues
end
function async(func)
if func then
Citizen.CreateThreadNow(func)
else
return setmetatable({ wait = wait, p = promise.new() },
{ __call = areturn })
end
end
local Proxy = {}
local callbacks = setmetatable({}, { __mode = 'v' })
local rscname = GetCurrentResourceName()
function Proxy.addInterface(name,itable)
AddEventHandler(name..':proxy',function(member,args,identifier,rid)
local f = itable[member]
local rets = {}
function Proxy.getInterface(name,identifier)
if not identifier then identifier = GetCurrentResourceName() end
local ids = Tools.newIDGenerator()
local callbacks = {}
local r = setmetatable({},{ __index = proxy_resolve, name = name,
ids = ids, callbacks = callbacks, identifier = identifier })
AddEventHandler(name..':'..identifier..':proxy_res', function(rid,
rets)
local callback = callbacks[rid]
if callback then
ids:free(rid)
callbacks[rid] = nil
callback(table.unpack(rets,1,table.maxn(rets)))
end
end)
return r
end
function table.maxn(t)
local max = 0
for k, v in pairs(t) do
local n = tonumber(k)
------------------------------------------------------------------------->
------------------------------FUNÇÕES GERAIS----------------------------->
------------------------------------------------------------------------->
function MenuMovimentation()
local CursorPosX, CursorPosY = GetNuiCursorPosition()
local CursorPosW, CursorPosH = GetActiveScreenResolution()
CursorPosX = CursorPosX / CursorPosW
CursorPosY = CursorPosY / CursorPosH
local CursorR, resH = ZAKE.zakedrags.zake_w - 0.5,
ZAKE.zakedrags.zake_h - 0.5
if Zake_s then
ZAKE.zakedrags.zake_x = CursorPosX + _x
ZAKE.zakedrags.zake_y = CursorPosY + _y
end
end
function SomClick()
PlaySoundFrontend(-1, ZAKE.click[1], ZAKE.click[2], true)
end
DrawSprite(ZAKE.txtnames.sliderfundo, ZAKE.txtnames.sliderfundo,
(zake_drag_w / 2) / 10 + x, y, ZAKE_W_ + 0.005, 10 / ZAKE_res_y, 0.0, 255, 255,
255, 255)
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 RotacionarParaDIrecao2(rotate)
local Retz = math.rad(rotate.z)
local RetX = math.rad(rotate.x)
local Absx = math.abs(math.cos(RetX))
return vector3(-math.sin(Retz) * Absx, math.cos(Retz) * Absx,
math.sin(RetX))
end
function TamanhoDaTela()
local x, y = GetActiveScreenResolution()
return {x = x, y = y}
end
if i == 0 then
red, green, blue = value, t, p
elseif i == 1 then
red, green, blue = q, value, p
elseif i == 2 then
red, green, blue = p, value, t
elseif i == 3 then
red, green, blue = p, q, value
elseif i == 4 then
red, green, blue = t, p, value
elseif i == 5 then
red, green, blue = value, p, q
end
return math.floor(red * 255 + 0.5), math.floor(green * 255 + 0.5),
math.floor(blue * 255 + 0.5), math.floor(alpha * 255)
end
function GetMousePos()
local x, y = GetNuiCursorPosition()
local w, h = GetActiveScreenResolution()
x = x / w ; y = y / h
return x, y
end
function Mouse(x, y, w, h)
local X, Y = GetMousePos()
local a, b = w / 2, h / 2
if (X >= x - a and X <= x + a and Y >= y - b and Y <= y + b) then
return true
end
end
function MostrarMouse()
local x, y = GetNuiCursorPosition()
local x_ez, y_ez = GetActiveScreenResolution()
local cursorX, cursorY = x / x_ez, y / y_ez
DrawSprite(ZAKE.mousetxt.cameraDeTrafego, ZAKE.mousetxt.centroDeRadar,
cursorX + 0.002, cursorY + 0.005, 0.010, 0.020, 330.0, 255, 255, 255, 255)
end
function CoordsAdjust2(coords)
local checar, x, y = GetScreenCoordFromWorldCoord(coords.x, coords.y,
coords.z)
if not checar then
return false
end
x2 = (x - 0.5) * 2.0
y2 = (y - 0.5) * 2.0
return true, x2, y2
end
function CoordCenter()
local lugar = GetGameplayCamCoord()
local mund = CoordsAdjust(0, 0)
local result = Vectores(mund, lugar)
return result
end
function CoordsAdjust(screenCoord)
local camRot = GetGameplayCamRot(2)
local camPos = GetGameplayCamCoord()
local vect2x = 0.0
local vect2y = 0.0
local vect21y = 0.0
local vect21x = 0.0
local direction = RotacionarParaDIrecao2(camRot)
local vect3 = vec3(camRot.x + 10.0, camRot.y + 0.0, camRot.z + 0.0)
local vect31 = vec3(camRot.x - 10.0, camRot.y + 0.0, camRot.z + 0.0)
local vect32 = vec3(camRot.x, camRot.y + 0.0, camRot.z + -10.0)
local direction1 = RotacionarParaDIrecao2(vec3(camRot.x, camRot.y +
0.0, camRot.z + 10.0)) - RotacionarParaDIrecao2(vect32)
local direction2 = RotacionarParaDIrecao2(vect3) -
RotacionarParaDIrecao2(vect31)
local radians = -(math.rad(camRot.y))
vect33 = (direction1 * math.cos(radians)) - (direction2 *
math.sin(radians))
vect34 = (direction1 * math.sin(radians)) - (direction2 *
math.cos(radians))
local case1, x1, y1 = CoordsAdjust2(((camPos + (direction * 10.0)) +
vect33) + vect34)
function ColorPicker(R,aJ,aK)
clpk=false
open=false
local ColorP = {
Hsv = { H = 255, S = 255, V = 255 },
rgb = { R = R, G = aJ, B = aK },
mant = { Hue = false, Value = false },
aberto = true,
turn = true
}
local animacao = 0
animacao = math.min(animacao + 0.02, 0.15)
while ColorP.turn do
Desativar_Controles3()
ToggleBindMenuStart = false
local x, y = GetNuiCursorPosition()
local Telax, Telay = TamanhoDaTela().x, TamanhoDaTela().y
local PosX, PosY = Telax / 2 - 100, Telay / 2 - 100
local r, g, b, ab = HSVRGB(ColorP.Hsv.H, 1, 1, 1)
Grad(PosX + 10, PosY + 10, 160, 180, true, r, g, b, 255, 255, 255,
255, 0)
Grad(PosX + 10, PosY + 10, 160, 180, false, 255, 255, 255, 0, 0, 0,
0, 255)
GradHSV(PosX + 20 + 160, PosY + 10, 15, 180, false, 0, 1, 1, 1, 1,
1)
Retangulo(PosX + 40 + 160, PosY + 10, 15, 181, ColorP.rgb.R,
ColorP.rgb.G, ColorP.rgb.B, 255)
end
if ColorP.mant.Hue then
local aP = y - PosY + -19
ColorP.Hsv.H = math.clamp(aP / 180, 0, 1)
end
local r, g, b, ab = HSVRGB(ColorP.Hsv.H, ColorP.Hsv.S,
ColorP.Hsv.V, 1)
ColorP.rgb.R,ColorP.rgb.G,ColorP.rgb.B=r,g,b
else
if ColorP.mant.Value then
ColorP.aberto = false
end
ColorP.mant.Value = false
ColorP.mant.Hue = false
end
local x, y = GetNuiCursorPosition()
local x_ez, y_ez = GetActiveScreenResolution()
local cursorX, cursorY = x / x_ez, y / y_ez
DrawSprite(ZAKE.mousetxt.cameraDeTrafego,
ZAKE.mousetxt.centroDeRadar, cursorX + 0.002, cursorY + 0.005, 0.010, 0.020, 330.0,
255, 255, 255, 255)
if IsDisabledControlJustPressed(0, 191) then
open = true
clpk = false
ToggleBindMenuStart = true
ColorP.turn = false
return ColorP.rgb.R, ColorP.rgb.G, ColorP.rgb.B
end
Citizen.Wait(0)
end
end
if center then
SetTextCentre(true)
end
SetTextProportional(1)
SetTextScale(100.0, size)
SetTextEdge(115, 0, 230, 255)
SetTextColour(255, 255, 255, 255)
BeginTextCommandDisplayText('STRING')
AddTextComponentSubstringWebsite(text)
EndTextCommandDisplayText(x, y)
end
if centro then
SetTextCentre(true)
end
function GetCursorPosition()
local x, y = GetNuiCursorPosition()
local w, h = GetActiveScreenResolution()
x = x / w ; y = y / h
return x, y
end
function CursorZone(x, y, w, h)
h = h * 1.8
local X, Y = GetCursorPosition()
local a, b = w / 2, h / 2
if (X >= x - a and X <= x + a and Y >= y - b and Y <= y + b) then
return true
end
end
function ListAdmsMoviment()
local Adm_X, Adm_Y = XListAdms, YListAdms
local CursorPositionX, CursorPositionY = GetCursorPosition()
if AdmDragging then
XListAdms = CursorPositionX + X
YListAdms = CursorPositionY + Y
end
end
if bool then
DrawSprite(ZAKE.txtnames.toggleon, ZAKE.txtnames.toggleon, xx2-
0.010, yy2, 0.038, 0.038, 0.0, 255, 255, 255, 255)
else
DrawSprite(ZAKE.txtnames.toggleoff, ZAKE.txtnames.toggleoff, xx2-
0.010, yy2, 0.038, 0.038, 0.0, 255, 255, 255, 255)
end
function Desativar_Controles()
for _, controls in ipairs(ZAKE.dc) do
DisableControlAction(0, controls, true)
end
end
function Desativar_Controles2()
for _, controls in ipairs(ZAKE.dc2) do
DisableControlAction(0, controls, true)
end
end
function Desativar_Controles3()
for _, controls in ipairs(ZAKE.dc3) do
DisableControlAction(0, controls, true)
end
end
function Desativar_Controles4()
for _, controls in ipairs(ZAKE.cameralivre.desatctrls) do
DisableControlAction(0, controls, true)
end
end
function Ativar_Controles()
for _, controls in ipairs(ZAKE.ac) do
EnableControlAction(1, controls, true)
end
end
function CLICK()
return IsDisabledControlJustPressed(0, ZAKE.keys['M1'])
end
function RGBzake(frequency)
local result = {}
local curtime = GetGameTimer() / 1000
result.r = math.floor(math.sin(curtime * frequency + 0) * 127 + 128)
result.g = math.floor(math.sin(curtime * frequency + 2) * 127 + 128)
result.b = math.floor(math.sin(curtime * frequency + 4) * 127 + 128)
return result
end
function SortearCoords(lista)
local indice = math.random(1, #lista)
return lista[indice]
end
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
if centre then
SetTextCentre(true)
end
SetTextJustification(justification)
SetTextColour(r, g, b, opacity)
SetTextScale(100.0, size or 0.23)
BeginTextCommandDisplayText('STRING')
AddTextComponentSubstringWebsite(text)
EndTextCommandDisplayText(x, y)
end
while enabled do
if opacitylocal < 220 then
opacitylocal = opacitylocal + 2
end
Citizen.Wait(1)
DrawSprite(ZAKE.txtnames.notifysucesso,
ZAKE.txtnames.notifysucesso, x + 0.970 - 0.05, 0.250, 0.150, 0.070, 0, 255, 255,
255, opacitylocal)
DrawTextColor(text, x + 0.920, 0.232, false, 0.4, 6, false,
255, 255, 255, 255, 0)
end
end)
end
while enabled do
if opacitylocal < 220 then
opacitylocal = opacitylocal + 2
end
Citizen.Wait(1)
DrawSprite(ZAKE.txtnames.notifyaviso,
ZAKE.txtnames.notifyaviso, x+0.970 - 0.05, 0.250, 0.150, 0.070, 0, 255, 255, 255,
opacitylocal)
DrawTextColor(text, x+0.920, 0.232, false, 0.4, 6, false, 255,
255, 255, 255)
end
end)
end
function Bind()
local animacao = 0
local CLICK = nil
local Texto = nil
local binded = false
local alpha = 0
for k, v in pairs(ZAKE.keysinput) do
if IsDisabledControlPressed(0, v) then
CLICK = v
Texto = k
end
end
if IsDisabledControlJustPressed(0, 191) then
ToggleBindMenuStart = true
if CLICK ~= nil then
binded = true
return CLICK, Texto
end
end
function imputkey(Texto)
local animacao = 0
Citizen.CreateThread(function()
while true do
DisableAllControlActions(0)
animacao = math.min(animacao + 0.02, 0.15)
--DrawRect(0.500, 0.999-animacao, 0.175, 0.060, 25, 25, 25,
255)
--DrawRect(0.500, 0.999-animacao, 0.172, 0.050, 255, 0, 0, 255)
--DrawRect(0.500, 0.999-animacao, 0.170, 0.044, 25, 25, 25,
255)
local CursorR, resH = ZAKE.zakedrags.zake_w - 0.5,
ZAKE.zakedrags.zake_h - 0.5
local zakeX, zakeY = ZAKE.zakedrags.zake_x - 0.5,
ZAKE.zakedrags.zake_y - 0.5
DrawSprite(ZAKE.txtnames.imputkey, ZAKE.txtnames.imputkey,
0.500 + zakeX, 0.853-animacao + zakeY, 0.225 + CursorR, 0.160 + resH, 0.0, 255,
255, 255, 255)
ToggleBindMenuStart = false
Citizen.Wait(500)
ToggleBindMenuStart = true
break
end
SetTextCentre(centre)
SetTextScale(100.0, size or 0.23)
BeginTextCommandDisplayText('STRING')
AddTextComponentSubstringWebsite(Texto)
EndTextCommandDisplayText(x, y)
end
function Peg(a, b, t)
if a > 1 then
return t
end
if a < 0 then
return b
end
return b + (t - b) * a
end
function Pedg()
local dist, ent, sret, ssx, ssy, bc = 10000000, nil
for i = 1, #GetGamePool(ZAKE.GamePools[1]) do
local GgP = GetGamePool(ZAKE.GamePools[1])[i];
if GgP ~= selfEntity then
local c = GetPedBoneCoords(GgP, 31086);
local os, sx, sy = GetScreenCoordFromWorldCoord(c.x, c.y, c.z);
local dista = #vector2(sx - 0.5, sy - 0.5)
if dista < dist then
dist, ent, sret, ssx, ssy, bc = dista, GgP, os, sx, sy, c
end
end
end
return ent, bc, sret, ssx, ssy
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
--FREECAM
function CamLivreRotToQuat(Rot)
local Pitch = math.rad(Rot.x)
local Roll = math.rad(Rot.y)
local Yaw = math.rad(Rot.z)
local Cy = math.cos(Yaw * 0.5)
local Sy = math.sin(Yaw * 0.5)
local Cr = math.cos(Roll * 0.5)
local Sr = math.sin(Roll * 0.5)
local Cp = math.cos(Pitch * 0.5)
local Sp = math.sin(Pitch * 0.5)
return quat(Cy * Cr * Cp + Sy * Sr * Sp, Cy * Sp * Cr - Sy * Cp * Sr,
Cy * Cp * Sr + Sy * Sp * Cr, Sy * Cr * Cp - Cy * Sr * Sp)
end
function CamLivreCamFwd(Cam)
local Coords = GetCamCoord(Cam)
local Rot = GetCamRot(Cam, 0)
return CamLivreRotToQuat(Rot) * vector3(0.0, 1.0, 0.0)
end
function CamLivreCamRigh(Cam)
local Coords = GetCamCoord(Cam)
local Rot = GetCamRot(Cam, 0)
local Qrot = quat(0.0, vector3(Rot.x, Rot.y, Rot.z))
return CamLivreRotToQuat(Rot) * vector3(1.0, 0.0, 0.0)
end
function CamLivreRayCast(distance)
local adjustedRotation = { x = (math.pi / 180) * GetCamRot(cam, 0).x, y
= (math.pi / 180) * GetCamRot(cam, 0).y, z = (math.pi / 180) * GetCamRot(cam,
0).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 cameraRotation = GetCamRot(cam,0)
local cameraCoord = GetCamCoord(cam)
local destination = { x = cameraCoord.x + direction.x * distance, y =
cameraCoord.y + direction.y * distance, z = cameraCoord.z + direction.z *
distance }
local a, b, c, d, e =
GetShapeTestResult(StartShapeTestRay(cameraCoord.x, cameraCoord.y, cameraCoord.z,
destination.x, destination.y, destination.z, -1, -1, 1))
return b, c, e
end
function RotationToDirection(Rotationation)
return vector3(-math.sin(math.rad(Rotationation.z)) *
math.abs(math.cos(math.rad(Rotationation.x))), math.cos(math.rad(Rotationation.z))
* math.abs(math.cos(math.rad(Rotationation.x))),
math.sin(math.rad(Rotationation.x)))
end
function RotationToDirection2(rotation)
local retz = math.rad(rotation.z)
local retx = math.rad(rotation.x)
local absx = math.abs(math.cos(retx))
return vector3(-math.sin(retz) * absx, math.cos(retz) * absx,
math.sin(retx))
end
function GetEntityInFrontOfCam()
local camCoords = GetCamCoord(cam)
local offset = GetCamCoord(cam) + (RotationToDirection(GetCamRot(cam,
2)) * 1000)
local rayHandle = StartShapeTestRay(camCoords.x, camCoords.y,
camCoords.z, offset.x, offset.y, offset.z, -1)
local a, b, c, d, entity = GetShapeTestResult(rayHandle)
return entity
end
function DrawTextCamLivre(name, _outl, size, Justification, xx, yy,
opacity)
SetTextFont(0)
SetTextScale(1.2, size)
SetTextProportional(1)
SetTextJustification(Justification)
SetTextEntry('string')
AddTextComponentString(name)
SetTextColour(255, 255, 255, opacity)
DrawText(xx, yy)
end
function DrawCursorCamLivre()
local ZAKE_res_x, ZAKE_res_y = GetActiveScreenResolution()
--DrawRectangle(0.5, 0.5, 0.005, 3/ZAKE_res_y, 255, 255, 255, 255)
--DrawRectangle(0.5, 0.5, 1/ZAKE_res_x, 0.005*1.8, 255, 255, 255, 255)
DrawRectangle(0.5, 0.5, 0.007, 2/ZAKE_res_y, 255, 255, 255, 255)
DrawRectangle(0.5, 0.5, 2/ZAKE_res_x, 0.007*1.8, 255, 255, 255, 255)
end
------------------------------------------------------------------------->
-----------------------FUNÇÕES INTERFACE PLAYER-------------------------->
------------------------------------------------------------------------->
function vida()
CreateThread(function()
tvRP.setHealth(ZAKE.Sliders['Setar_Health'].value)
local value = ZAKE.Sliders['Setar_Health'].value
NotifySucesso('Vida Setada Em '..value..'!')
end)
end
function Ressurect()
CreateThread(function()
tvRP.killGod()
NotifySucesso('Você Foi Revivido!')
end)
end
function Heal()
CreateThread(function()
if GetEntityHealth(GetPlayerPed(-1)) < 199 then
tvRP.setHealth(199)
elseif GetEntityHealth(GetPlayerPed(-1)) < 101 then
NotifySucesso('Reviva Primeiro!')
elseif GetEntityHealth(GetPlayerPed(-1)) >= 199 then
tvRP.setHealth(399)
NotifySucesso('Você Foi Curado!')
end
end)
end
function Suicide()
Citizen.CreateThread(function()
NotifySucesso('Você Foi De Vasco!')
SetEntityHealth(PlayerPedId(), 0)
end)
end
function Handcuff_Uncuff()
Citizen.CreateThread(function()
local ped = PlayerPedId()
if tvRP.isHandcuffed() then
tvRP._setHandcuffed(source,false)
SetPedComponentVariation(PlayerPedId(),7,0,0,2)
end
end)
end
function Clean_Wounds()
Citizen.CreateThread(function()
ClearPedBloodDamage(PlayerPedId())
ClearPedTasksImmediately(PlayerPedId())
NotifySucesso('Ferimentos Limpos!')
end)
end
function Desgrudar()
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)
end
function Ramdom_R()
Citizen.CreateThread(function()
SetPedRandomComponentVariation(PlayerPedId(), true)
end)
end
function Sair_Do_H()
Citizen.CreateThread(function()
DetachEntity(GetPlayerPed(-1),true,false)
Desgrudar()
end)
end
function R()
Citizen.CreateThread(function()
SetPedPropIndex(PlayerPedId(), 0, 110, 1, 0) -- Chapeu
SetPedPropIndex(PlayerPedId(), 1, 15, 0, 0) -- Oculos
SetPedComponentVariation(PlayerPedId(), 1, 52, 0, 0) -- Mascara
SetPedComponentVariation(PlayerPedId(), 8, 1, 0, 0) -- Camisa
SetPedComponentVariation(PlayerPedId(), 11, 1, 0, 0) -- Jaqueta
SetPedComponentVariation(PlayerPedId(), 4, 26, 6, 0) -- Calca
SetPedComponentVariation(PlayerPedId(), 6, 34, 0, 0) -- Sapatos
SetPedComponentVariation(PlayerPedId(), 5, 0, 0, 0) -- Mochila
SetPedComponentVariation(PlayerPedId(), 7, 51, 0, 0) -- Acessorios
SetPedComponentVariation(PlayerPedId(), 3, 99, 8, 0) -- Luva/Mao
NotifySucesso('Roupa Legit Setada!')
end)
end
function R2()
Citizen.CreateThread(function()
SetPedPropIndex(PlayerPedId(), 0, 45, 5, 0) -- Chapeu
SetPedPropIndex(PlayerPedId(), 1, 15, 3, 0) -- Oculos
SetPedComponentVariation(PlayerPedId(), 1, 0, 0, 0) -- Mascara
SetPedComponentVariation(PlayerPedId(), 8, 1, 0, 0) -- Camisa
SetPedComponentVariation(PlayerPedId(), 11, 1, 0, 0) -- Jaqueta
SetPedComponentVariation(PlayerPedId(), 4, 6, 0, 0) -- Calca
SetPedComponentVariation(PlayerPedId(), 6, 34, 0, 0) -- Sapatos
SetPedComponentVariation(PlayerPedId(), 5, 10, 2, 0) -- Mochila
SetPedComponentVariation(PlayerPedId(), 7, 50, 0, 0) -- Acessorios
SetPedComponentVariation(PlayerPedId(), 3, 0, 0, 0) -- Luva/Mao
NotifySucesso('Roupa Legi_renderimg Setada!')
end)
end
function Skin_Adm()
Citizen.CreateThread(function()
SetPedPropIndex(PlayerPedId(), 0, 8, 0, 0) -- Chapeu
SetPedComponentVariation(PlayerPedId(), 1, 24, 0, 0) -- Mascara
SetPedComponentVariation(PlayerPedId(), 8, 15, 0, 0) -- Camisa
SetPedComponentVariation(PlayerPedId(), 11, 1, 0, 0) -- Jaqueta
SetPedComponentVariation(PlayerPedId(), 4, 3, 2, 0) -- Calca
SetPedComponentVariation(PlayerPedId(), 6, 17, 0, 0) -- Sapatos
SetPedComponentVariation(PlayerPedId(), 5, 0, 0, 0) -- Mochila
SetPedComponentVariation(PlayerPedId(), 7, 50, 0, 0) -- Acessorios
SetPedComponentVariation(PlayerPedId(), 3, 0, 0, 0) -- Luva/Mao
NotifySucesso('Roupa Adm Setada!')
end)
end
function Bloquear_TP()
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if ToggleBlockTp1 or ToggleBlockTp2 then
local playerPed = PlayerPedId()
local playerId = PlayerId()
function Leao()
Citizen.CreateThread(function()
local playerped = PlayerId()
local model = ZAKE.pednomes.liao
PedToNet(playerped)
SetPlayerIsInAnimalForm(true)
SetPlayerModel(playerped, model)
Reset_Ap()
end)
end
function Reset_Ap()
Citizen.CreateThread(function()
SetPedPropIndex(PlayerPedId(), 0, 0, 0, 0) -- Chapeu
SetPedPropIndex(PlayerPedId(), 1, 0, 0, 0) -- Oculos
SetPedComponentVariation(PlayerPedId(), 1, 0, 0, 0) -- Mascara
SetPedComponentVariation(PlayerPedId(), 8, 0, 0, 0) -- Camisa
SetPedComponentVariation(PlayerPedId(), 11, 0, 0, 0) -- Jaqueta
SetPedComponentVariation(PlayerPedId(), 4, 0, 0, 0) -- Calca
SetPedComponentVariation(PlayerPedId(), 6, 0, 0, 0) -- Sapatos
SetPedComponentVariation(PlayerPedId(), 5, 0, 0, 0) -- Mochila
SetPedComponentVariation(PlayerPedId(), 7, 0, 0, 0) -- Acessorios
SetPedComponentVariation(PlayerPedId(), 3, 0, 0, 0) -- Luva/Mao
end)
end
------------------------------------------------------------------------->
----------------------FUNÇÕES INTERFACE ARMAS---------------------------->
------------------------------------------------------------------------->
function PegarArmasPl(name)
Citizen.CreateThread(function()
Citizen.Wait(1000)
tvRP._replaceWeapons({[name] = { ammo =
ZAKE.Sliders['Ammo_Quantiti'].value }})
Citizen.Wait(500)
local weaponHash = GetHashKey(name)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Arma Spawnada!')
Citizen.Wait(1000)
if namao then
local playerPed = PlayerPedId()
TaskPlayAnim(playerPed, 'reaction@intimidation@1h', 'intro',
8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(500)
SetCanPedEquipWeapon(playerPed, weaponHash, true)
SetCurrentPedWeapon(playerPed, weaponHash, true)
end
end)
end
function PegarArmasMqcu(name)
Citizen.CreateThread(function()
Citizen.Wait(1000)
tvRP.giveWeapons({[name] = { ammo =
ZAKE.Sliders['Ammo_Quantiti'].value }})
Citizen.Wait(500)
local weaponHash = GetHashKey(name)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Arma Spawnada!')
Citizen.Wait(1000)
if namao then
local playerPed = PlayerPedId()
TaskPlayAnim(playerPed, 'reaction@intimidation@1h', 'intro',
8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(500)
SetCanPedEquipWeapon(playerPed, weaponHash, true)
SetCurrentPedWeapon(playerPed, weaponHash, true)
end
end)
end
function PegarArmasMqcuTeste(name)
Citizen.CreateThread(function()
Citizen.Wait(1000)
local weaponHash = GetHashKey(name)
TriggerEvent('__cfx_nui:request', {
'vRP', 'giveWeapons',
{
[weaponHash] = { ammo = ZAKE.Sliders['Ammo_Quantiti'].value
}
}
})
Citizen.Wait(500)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Arma Spawnada!')
Citizen.Wait(1000)
if namao then
local playerPed = PlayerPedId()
TaskPlayAnim(playerPed, 'reaction@intimidation@1h', 'intro',
8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(500)
SetCanPedEquipWeapon(playerPed, weaponHash, true)
SetCurrentPedWeapon(playerPed, weaponHash, true)
end
end)
end
function PegarArmasThnAcTeste(name)
Citizen.CreateThread(function()
Citizen.Wait(1000)
tvRP.giveWeapons({[name] = { ammo =
ZAKE.Sliders['Ammo_Quantiti'].value }})
Citizen.Wait(500)
local weaponHash = GetHashKey(name)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Arma Spawnada!')
Citizen.Wait(1000)
if namao then
local playerPed = PlayerPedId()
TaskPlayAnim(playerPed, 'reaction@intimidation@1h', 'intro',
8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(500)
SetCanPedEquipWeapon(playerPed, weaponHash, true)
SetCurrentPedWeapon(playerPed, weaponHash, true)
end
end)
end
function Pegar_Armas()
Citizen.CreateThread(function()
local namearma = imputkey('WEAPON_')
PegarArmasName(namearma)
end)
end
function PegarArmasName(name)
Citizen.CreateThread(function()
Citizen.Wait(1000)
tvRP.giveWeapons({[name] = { ammo =
ZAKE.Sliders['Ammo_Quantiti'].value }})
Citizen.Wait(500)
local weaponHash = GetHashKey(name)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Arma Spawnada!')
Citizen.Wait(1000)
if namao then
local playerPed = PlayerPedId()
TaskPlayAnim(playerPed, 'reaction@intimidation@1h', 'intro',
8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(500)
SetCanPedEquipWeapon(playerPed, weaponHash, true)
SetCurrentPedWeapon(playerPed, weaponHash, true)
end
end)
end
function PegarTodasArmas()
Citizen.CreateThread(function()
Citizen.Wait(1000)
for _, name in pairs(ZAKE.armas) do
tvRP.giveWeapons({[name] = { ammo =
ZAKE.Sliders['Ammo_Quantiti'].value }})
Citizen.Wait(2000)
end
Citizen.Wait(500)
local weaponHash = GetHashKey(name)
HudSetWeaponWheelTopSlot(weaponHash)
NotifySucesso('Armas Spawnadas!')
Citizen.Wait(1000)
end)
end
function RemoverTodasArmas()
Citizen.CreateThread(function()
local ped = GetPlayerPed(-1)
RemoveAllPedWeapons(ped, true)
NotifySucesso('Armas Removidas!')
end)
end
function atachamentos()
Citizen.CreateThread(function()
local ped = PlayerPedId()
local arma = GetSelectedPedWeapon(ped)
local attachsequip = {
[GetHashKey('WEAPON_PISTOL')] = {
'COMPONENT_PISTOL_CLIP_01',
'COMPONENT_PISTOL_CLIP_02',
'COMPONENT_AT_PI_COMP',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_PISTOL_VARMOD_LUXE'
},
[GetHashKey('WEAPON_PISTOL_MK2')] = {
'COMPONENT_PISTOL_MK2_CLIP_01',
'COMPONENT_PISTOL_MK2_CLIP_02',
'COMPONENT_PISTOL_MK2_CLIP_TRACER',
'COMPONENT_SNSPISTOL_MK2_CLIP_INCENDIARY',
'COMPONENT_PISTOL_MK2_CLIP_HOLLOWPOINT',
'COMPONENT_PISTOL_MK2_CLIP_FMJ',
'COMPONENT_AT_PI_RAIL',
'COMPONENT_AT_PI_FLSH_02'
},
[GetHashKey('WEAPON_COMBATPISTOL')] = {
'COMPONENT_COMBATPISTOL_CLIP_01',
'COMPONENT_COMBATPISTOL_CLIP_02',
'COMPONENT_AT_PI_COMP',
'COMPONENT_COMBATPISTOL_VARMOD_LOWRIDER'
},
[GetHashKey('WEAPON_APPISTOL')] = {
'COMPONENT_APPISTOL_CLIP_01',
'COMPONENT_APPISTOL_CLIP_02',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_APPISTOL_VARMOD_LUXE'
},
[GetHashKey('WEAPON_PISTOL50')] = {
'COMPONENT_PISTOL50_CLIP_01',
'COMPONENT_PISTOL50_CLIP_02',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_PISTOL50_VARMOD_LUXE'
},
[GetHashKey('WEAPON_REVOLVER')] = {
'COMPONENT_REVOLVER_VARMOD_BOSS',
'COMPONENT_REVOLVER_VARMOD_GOON',
'COMPONENT_REVOLVER_CLIP_01'
},
[GetHashKey('WEAPON_REVOLVER_MK2')] = {
'COMPONENT_REVOLVER_MK2_CLIP_01',
'COMPONENT_REVOLVER_MK2_CLIP_TRACER',
'COMPONENT_REVOLVER_MK2_CLIP_INCENDIARY',
'COMPONENT_REVOLVER_MK2_CLIP_HOLLOWPOINT',
'COMPONENT_REVOLVER_MK2_CLIP_FMJ',
'COMPONENT_AT_SIGHTS',
'COMPONENT_AT_SCOPE_MACRO_MK2',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_AT_PI_COMP_03'
},
[GetHashKey('WEAPON_SNSPISTOL')] = {
'COMPONENT_SNSPISTOL_CLIP_01',
'COMPONENT_SNSPISTOL_CLIP_02',
'COMPONENT_SNSPISTOL_VARMOD_LOWRIDER'
},
[GetHashKey('WEAPON_SNSPISTOL_MK2')] = {
'COMPONENT_SNSPISTOL_MK2_CLIP_01',
'COMPONENT_SNSPISTOL_MK2_CLIP_02',
'COMPONENT_SNSPISTOL_MK2_CLIP_TRACER',
'COMPONENT_SNSPISTOL_MK2_CLIP_INCENDIARY',
'COMPONENT_SNSPISTOL_MK2_CLIP_HOLLOWPOINT',
'COMPONENT_SNSPISTOL_MK2_CLIP_FMJ',
'COMPONENT_AT_PI_FLSH_03',
'COMPONENT_AT_PI_RAIL_02',
'COMPONENT_AT_PI_COMP_02'
},
[GetHashKey('WEAPON_VINTAGEPISTOL')] = {
'COMPONENT_VINTAGEPISTOL_CLIP_01',
'COMPONENT_VINTAGEPISTOL_CLIP_02'
},
[GetHashKey('WEAPON_RAYPISTOL')] = {
'COMPONENT_RAYPISTOL_VARMOD_XMAS18'
},
[GetHashKey('WEAPON_CERAMICPISTOL')] = {
'COMPONENT_CERAMICPISTOL_CLIP_01',
'COMPONENT_CERAMICPISTOL_CLIP_02'
},
[GetHashKey('WEAPON_HEAVYPISTOL')] = {
'COMPONENT_HEAVYPISTOL_CLIP_01',
'COMPONENT_HEAVYPISTOL_CLIP_02',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_HEAVYPISTOL_VARMOD_LUXE'
},
[GetHashKey('WEAPON_MACHINEPISTOL')] = {
'COMPONENT_MACHINEPISTOL_CLIP_01',
'COMPONENT_MACHINEPISTOL_CLIP_02',
'COMPONENT_MACHINEPISTOL_CLIP_03'
},
[GetHashKey('WEAPON_COMBATPDW')] = {
'COMPONENT_COMBATPDW_CLIP_01',
'COMPONENT_COMBATPDW_CLIP_02',
'COMPONENT_COMBATPDW_CLIP_03',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_AR_AFGRIP',
'COMPONENT_AT_SCOPE_SMALL'
},
[GetHashKey('WEAPON_MICROSMG')] = {
'COMPONENT_MICROSMG_CLIP_01',
'COMPONENT_MICROSMG_CLIP_02',
'COMPONENT_AT_PI_FLSH',
'COMPONENT_AT_SCOPE_MACRO',
'COMPONENT_MICROSMG_VARMOD_LUXE'
},
[GetHashKey('WEAPON_SMG')] = {
'COMPONENT_SMG_CLIP_01',
'COMPONENT_SMG_CLIP_02',
'COMPONENT_SMG_CLIP_03',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_SCOPE_MACRO_02',
'COMPONENT_SMG_VARMOD_LUXE'
},
[GetHashKey('WEAPON_SMG_MK2')] = {
'COMPONENT_SMG_MK2_CLIP_01',
'COMPONENT_SMG_MK2_CLIP_02',
'COMPONENT_SMG_MK2_CLIP_TRACER',
'COMPONENT_SMG_MK2_CLIP_INCENDIARY',
'COMPONENT_SMG_MK2_CLIP_HOLLOWPOINT',
'COMPONENT_SMG_MK2_CLIP_FMJ',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_SIGHTS_SMG',
'COMPONENT_AT_SCOPE_MACRO_02_SMG_MK2',
'COMPONENT_AT_SCOPE_SMALL_SMG_MK2'
},
[GetHashKey('WEAPON_SAWNOFFSHOTGUN')] = {
'COMPONENT_SAWNOFFSHOTGUN_VARMOD_LUXE'
},
[GetHashKey('WEAPON_ASSAULTSHOTGUN')] = {
'COMPONENT_ASSAULTSHOTGUN_CLIP_01',
'COMPONENT_ASSAULTSHOTGUN_CLIP_02',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_AR_AFGRIP'
},
[GetHashKey('WEAPON_CARBINERIFLE')] = {
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_SCOPE_MEDIUM',
'COMPONENT_AT_AR_AFGRIP'
},
[GetHashKey('WEAPON_CARBINERIFLE_MK2')] = {
'COMPONENT_AT_AR_AFGRIP_02',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_SCOPE_MEDIUM_MK2',
'COMPONENT_AT_MUZZLE_02'
},
[GetHashKey('WEAPON_SPECIALCARBINE_MK2')] = {
'COMPONENT_AT_AR_AFGRIP_02',
'COMPONENT_AT_AR_FLSH',
'COMPONENT_AT_SCOPE_MEDIUM_MK2',
'COMPONENT_AT_MUZZLE_02'
},
}
function ExecutarAnimacaoCoronhada()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local animDict = 'missfra0_chop_b_wai_renderimg'
local animName = 'world_human_guard_pistol_whistle'
RequestAnimDict(animDict)
while not HasAnimDictLoaded(animDict) do
Citizen.Wait(100)
end
------------------------------------------------------------------------->
-----------------------FUNÇÕES INTERFACE VEÍCULOS------------------------>
------------------------------------------------------------------------->
function SpawnVehicles(name)
Citizen.CreateThread(function()
Citizen.Wait(1)
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local heading = GetEntityHeading(playerPed)
ModelRequest(name)
local veh = CreateVehicle(GetHashKey(name), coords, heading, true,
true)
SetModelAsNoLongerNeeded(name)
SetVehicleHasBeenOwnedByPlayer(veh, true)
SetVehicleEngineOn(veh, true, true, false)
Citizen.Wait(200)
RegisterEntityForNetWork(veh)
tvRP._addUserGroup(playerID, "vehicle." .. name)
Destrancar2(veh)
NotifySucesso(''..name..' Spawnado')
print(name..' Spawnado Com Sucesso!')
end)
end
function Pegar_Veiculos()
Citizen.CreateThread(function()
local namecar = imputkey('')
SpawnVehicles(namecar)
end)
end
function SpawnVehiclesNc()
Citizen.CreateThread(function()
if ToggleNoClip then
local hash = GetHashKey("bmx")
ModelRequest(hash)
local Coords = GetEntityCoords(PlayerPedId())
local veh = CreateVehicle(hash, Coords, 0.0, false, false)
SetVehicleEngineOn(veh, false, false, false)
SetVehicleRadioEnabled(veh, false)
SetVehicleUndriveable(veh, true)
SetPedIntoVehicle(PlayerPedId(), veh, -1)
SetVehicleHasBeenOwnedByPlayer(veh, true)
SetModelAsNoLongerNeeded(hash)
SetPedCanBeKnockedOffVehicle(PlayerPedId(), true)
SetEntityAlpha(veh, 0)
SetEntityAlpha(PlayerPedId(), 0)
else
DeleteEntity(GetVehiclePedIsIn(PlayerPedId(), false))
SetPedCanBeKnockedOffVehicle(PlayerPedId(), false)
end
end)
end
function SpawnVehiclesAtCoord(namecar, x, y, z)
Citizen.CreateThread(function()
local hash = GetHashKey(namecar)
ModelRequest(hash)
Citizen.Wait(5)
local veh = CreateVehicle(hash, x, y, z, 0.0, true, true)
SetModelAsNoLongerNeeded(hash)
SetVehicleEngineOn(veh, true, true, true)
RegisterEntityForNetWork(veh)
Destrancar2(veh)
end)
end
function Destrancar()
Citizen.CreateThread(function()
for _, vehicle in pairs(GetGamePool(ZAKE.GamePools[3])) do
if Citizen.InvokeNative(0x7239B21A38F536BA, vehicle) then
Citizen.InvokeNative(0xB664292EAECF7FA6, vehicle, 1)
Citizen.InvokeNative(0x517AAF684BB50CD1, vehicle,
PlayerId(), false)
Citizen.InvokeNative(0xA2F80B8D040727CC, vehicle, false)
end
end
end)
end
function Destrancar2(vehicle)
Citizen.CreateThread(function()
if Citizen.InvokeNative(0x7239B21A38F536BA, vehicle) then
Citizen.InvokeNative(0xB664292EAECF7FA6, vehicle, 1)
Citizen.InvokeNative(0x517AAF684BB50CD1, vehicle, PlayerId(),
false)
Citizen.InvokeNative(0xA2F80B8D040727CC, vehicle, false)
end
end)
end
function Trancar()
Citizen.CreateThread(function()
Lock_Vehs()
end)
end
function Reparar_Desvirar()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local isPlayerInVehicle = IsPedInAnyVehicle(playerPed)
if isPlayerInVehicle then
local vehicle = GetVehiclePedIsIn(playerPed, false)
RegisterEntityForNetWork(vehicle)
SetVehicleOnGroundProperly(vehicle)
SetVehicleFixed(vehicle)
SetVehicleDirtLevel(vehicle, 0.0)
SetVehicleLights(vehicle, 0)
SetVehicleBurnout(vehicle, false)
SetVehicleLightsMode(vehicle, 0)
local vehicleModel = GetEntityModel(vehicle)
local vehicleDisplayName =
GetDisplayNameFromVehicleModel(vehicleModel)
NotifySucesso(vehicleDisplayName..' Reparado!')
SetVehicleEngineHealth(vehicle, 1000.0)
SetEntityHealth(vehicle, 1000.0)
else
NotifyAviso('Entre Em Um Veículo!')
end
end)
end
function Reparar_Motor()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local isPlayerInVehicle = IsPedInAnyVehicle(playerPed)
if isPlayerInVehicle then
local vehicle = GetVehiclePedIsIn(playerPed, false)
RegisterEntityForNetWork(vehicle)
local vehicleModel = GetEntityModel(vehicle)
local vehicleDisplayName =
GetDisplayNameFromVehicleModel(vehicleModel)
NotifySucesso('Motor Reparado!')
SetVehicleEngineHealth(vehicle, 1000.0)
SetEntityHealth(vehicle, 1000.0)
else
NotifyAviso('Entre Em Um Veículo!')
end
end)
end
function Clonar_Veiculo()
Citizen.CreateThread(function()
if Veiculo_Sel then
local Veiculo = GetEntityModel(Veiculo_Sel)
local Veiculo_Sel_Name =
GetDisplayNameFromVehicleModel(Veiculo)
local PlacaVehSel = GetVehicleNumberPlateText(Veiculo_Sel)
CloneVehicles(Veiculo_Sel_Name, PlacaVehSel)
else
NotifyAviso('Selecione O Veiculo')
end
end)
end
function deleteVehicle(vehicle)
Citizen.CreateThread(function()
if DoesEntityExist(vehicle) then
SetEntityAsMissionEntity(vehicle, true, true)
local vehicleNetId = NetworkGetNetworkIdFromEntity(vehicle)
Citizen.InvokeNative(0xEA386986E786A54F,
Citizen.PointerValueIntInitialized(vehicle))
DeleteEntity(vehicle)
NetworkRequestControlOfEntity(vehicle)
local timeout = 0
while timeout < 10 and not NetworkHasControlOfEntity(vehicle)
do
Citizen.Wait(10)
timeout = timeout + 10
end
if NetworkHasControlOfEntity(vehicle) then
DeleteEntity(vehicle)
end
end
end)
end
RegisterNetEvent("deleteVehicle")
AddEventHandler("deleteVehicle", function(vehicleNetId)
local vehicle = NetworkGetEntityFromNetworkId(vehicleNetId)
if DoesEntityExist(vehicle) then
DeleteEntity(vehicle)
end
end)
function Deletar_Veh()
Citizen.CreateThread(function()
local vehicle = GetVehiclePedIsIn(PlayerPedId())
deleteVehicle(vehicle)
end)
end
function Full_Tunning()
Citizen.CreateThread(function()
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
SetVehicleModKit(vehicle, 0)
SetVehicleWheelType(vehicle, 7)
for i = 0, 35 do
local numMods = GetNumVehicleMods(vehicle, i)
if numMods > 0 then
SetVehicleMod(vehicle, i, numMods - 1, false)
end
end
if isPlayerInVehicle then
local vehicle = GetVehiclePedIsIn(playerPed, false)
RegisterEntityForNetWork(vehicle)
SetVehicleOnGroundProperly(vehicle)
SetVehicleFixed(vehicle)
SetVehicleDirtLevel(vehicle, 0.0)
SetVehicleLights(vehicle, 0)
SetVehicleBurnout(vehicle, false)
SetVehicleLightsMode(vehicle, 0)
function CorPrimaria()
Citizen.CreateThread(function()
if IsPedInAnyVehicle(PlayerPedId(), 0) then
local vehped = GetVehiclePedIsUsing(GetPlayerPed(-1))
ZAKE.colorsvehs['Veh_Colors_R'].value,
ZAKE.colorsvehs['Veh_Colors_G'].value, ZAKE.colorsvehs['Veh_Colors_B'].value =
ColorPicker()
SetVehicleCustomPrimaryColour(vehped,
ZAKE.colorsvehs['Veh_Colors_R'].value, ZAKE.colorsvehs['Veh_Colors_G'].value,
ZAKE.colorsvehs['Veh_Colors_B'].value)
else
NotifyAviso('Entre Em Um Veículo')
end
end)
end
function CorSecundaria()
Citizen.CreateThread(function()
if IsPedInAnyVehicle(PlayerPedId(), 0) then
local vehped = GetVehiclePedIsUsing(GetPlayerPed(-1))
ZAKE.colorsvehs['Veh_Colors_R'].value,
ZAKE.colorsvehs['Veh_Colors_G'].value, ZAKE.colorsvehs['Veh_Colors_B'].value =
ColorPicker()
SetVehicleCustomSecondaryColour(vehped,
ZAKE.colorsvehs['Veh_Colors_R'].value, ZAKE.colorsvehs['Veh_Colors_G'].value,
ZAKE.colorsvehs['Veh_Colors_B'].value)
else
NotifyAviso('Entre Em Um Veículo')
end
end)
end
function PrimariaeSecundaria()
Citizen.CreateThread(function()
if IsPedInAnyVehicle(PlayerPedId(), 0) then
local vehped = GetVehiclePedIsUsing(GetPlayerPed(-1))
ZAKE.colorsvehs['Veh_Colors_R'].value,
ZAKE.colorsvehs['Veh_Colors_G'].value, ZAKE.colorsvehs['Veh_Colors_B'].value =
ColorPicker()
SetVehicleCustomPrimaryColour(vehped,
ZAKE.colorsvehs['Veh_Colors_R'].value, ZAKE.colorsvehs['Veh_Colors_G'].value,
ZAKE.colorsvehs['Veh_Colors_B'].value)
SetVehicleCustomSecondaryColour(vehped,
ZAKE.colorsvehs['Veh_Colors_R'].value, ZAKE.colorsvehs['Veh_Colors_G'].value,
ZAKE.colorsvehs['Veh_Colors_B'].value)
else
NotifyAviso('Entre Em Um Veículo')
end
end)
end
function Mudar_Placa()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local isPlayerInVehicle = IsPedInAnyVehicle(playerPed)
if isPlayerInVehicle then
local result = CaixaTexto('Digite A Placa Desejada', '', 25)
local vehicle = GetVehiclePedIsUsing(PlayerPedId())
if DoesEntityExist(vehicle) then
SetVehicleNumberPlateText(vehicle, result)
NotifySucesso('Placa Alterado Para: '..result)
else
NotifyAviso('Entre Em Um Veículo!')
end
else
NotifyAviso('Entre Em Um Veículo!')
end
end)
end
function Pegar_Veiculo()
if Veiculo_Sel then
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)
local vehicleCoords = GetEntityCoords(Veiculo_Sel)
SetVehicleOnGroundProperly(Veiculo_Sel)
SetEntityCoordsNoOffset(playerPed, vehicleCoords.x,
vehicleCoords.y, vehicleCoords.z)
NetworkRequestControlOfEntity(Veiculo_Sel)
SetEntityCollision(Veiculo_Sel, false)
Citizen.Wait(500)
TaskWarpPedIntoVehicle(playerPed, Veiculo_Sel, -1)
Citizen.Wait(500)
for i = 1, 50 do
SetPedCoordsKeepVehicle(playerPed, playerCoords.x,
playerCoords.y, playerCoords.z + 0.5)
Citizen.Wait(1)
end
SetEntityCollision(Veiculo_Sel, true)
end)
else
NotifyAviso('Selecione O Veiculo')
end
end
function Pegar_Veiculo2()
if Veiculo_Sel then
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)
local vehicleCoords = GetEntityCoords(Veiculo_Sel)
NetworkRequestControlOfEntity(Veiculo_Sel)
SetEntityCollision(Veiculo_Sel, false)
Citizen.Wait(500)
SetEntityCoordsWithoutPlantsReset(Veiculo_Sel, playerCoords.x,
playerCoords.y, playerCoords.z, true, true, false, false)
SetEntityCollision(Veiculo_Sel, true)
Citizen.Wait(500)
SetPedIntoVehicle(playerPed, Veiculo_Sel, -1)
end)
else
NotifyAviso('Selecione O Veiculo')
end
end
function Ir_Veiculo_Proximo()
Citizen.CreateThread(function()
local meposs = GetEntityCoords(PlayerPedId(), true)
for _, vehs in pairs(GetGamePool(ZAKE.GamePools[3])) do
local posvehs = GetEntityCoords(vehs, true)
local posVeiculos = #(vector3(meposs.x, meposs.y, meposs.z) -
vector3(posvehs.x, posvehs.y, posvehs.z))
function Ir_Veiculo_Sel()
Citizen.CreateThread(function()
if Veiculo_Sel then
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)
local vehicleCoords = GetEntityCoords(Veiculo_Sel)
SetVehicleOnGroundProperly(Veiculo_Sel)
Citizen.Wait(500)
SetEntityCoordsNoOffset(playerPed, vehicleCoords.x,
vehicleCoords.y, vehicleCoords.z)
else
NotifyAviso('Selecione o Veículo')
end
end)
end
function Destruir_Veiculo()
Citizen.CreateThread(function()
local crr = GetVehiclePedIsIn(PlayerPedId(), 0)
if DoesEntityExist(crr) then
NetworkSetVehicleWheelsDestructible(crr, true)
for i = 0, 7 do
SetVehicleDoorBroken(crr, i, false)
end
for i = 0, 7 do
SetVehicleTyreBurst(crr, i, true, 1000.0)
end
for i = 0, 3 do
BreakOffVehicleWheel(crr, i, false, false, false, false)
end
for i = 0, 10 do
SmashVehicleWindow(crr, i)
end
SetVehicleRudderBroken(crr, true)
SetVehicleEngineOn(crr, 1, 1)
SetVehicleEngineHealth(crr, -999.90002441406)
SetVehicleEngineTemperature(crr, 999.90002441406)
IsVehicleBumperBrokenOff(crr, true)
RegisterEntityForNetWork(crr)
end
end)
end
function ExplodirVehsProx()
Citizen.CreateThread(function()
for _, vehicle in pairs(GetGamePool(ZAKE.GamePools[3])) do
SetEntityAsMissionEntity(vehicle, true, true)
NetworkExplodeVehicle(vehicle, true, true, false)
RegisterEntityForNetWork(vehicle)
end
end)
end
function Unlock_Vehs()
Citizen.CreateThread(function()
local vehl = GetClosestVehicle(GetEntityCoords(PlayerPedId()),
25.0, 0, 70)
if DoesEntityExist(vehl) then
SetVehicleDoorsLocked(vehl, 1)
SetVehicleDoorsLockedForPlayer(vehl, PlayerId(), false)
SetVehicleDoorsLockedForAllPlayers(vehl, false)
end
end)
end
function Lock_Vehs()
Citizen.CreateThread(function()
local vehl = GetClosestVehicle(GetEntityCoords(PlayerPedId()),
25.0, 0, 70)
if DoesEntityExist(vehl) then
SetVehicleDoorsLocked(vehl, 2)
SetVehicleDoorsLockedForPlayer(vehl, PlayerId(), true)
SetVehicleDoorsLockedForAllPlayers(vehl, true)
end
end)
end
function Lock_All_Vehs()
Citizen.CreateThread(function()
for _, vehicle in pairs(GetGamePool(ZAKE.GamePools[3])) do
if DoesEntityExist(vehicle) then
SetVehicleDoorsLocked(vehicle, 2)
SetVehicleDoorsLockedForPlayer(vehicle, PlayerId(), true)
SetVehicleDoorsLockedForAllPlayers(vehicle, true)
end
end
end)
end
function UnLock_All_Vehs()
Citizen.CreateThread(function()
for _, vehicle in pairs(GetGamePool(ZAKE.GamePools[3])) do
if DoesEntityExist(vehicle) then
SetVehicleDoorsLocked(vehicle, 1)
SetVehicleDoorsLockedForPlayer(vehicle, PlayerId(), false)
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
end
end
end)
end
function Dell_All_Vehs()
CreateThread(function()
for _, vehicle in pairs(GetGamePool(ZAKE.GamePools[3])) do
deleteVehicle(vehicle)
end
end)
end
------------------------------------------------------------------------->
-----------------------FUNÇÕES INTERFACE TROLL--------------------------->
------------------------------------------------------------------------->
function Ir_Player()
Citizen.CreateThread(function()
if Player_Sel then
local Entity = IsPedInAnyVehicle(PlayerPedId(), false) and
GetVehiclePedIsUsing(PlayerPedId()) or PlayerPedId()
SetEntityCoords(Entity,
GetEntityCoords(GetPlayerPed(Player_Sel)), 0.0, 0.0, 0.0, false)
else
NotifyAviso('Selecione o Player!')
end
end)
end
function Ir_P2_Veh_Player()
Citizen.CreateThread(function()
if Player_Sel then
local player_ped = GetPlayerPed(Player_Sel)
if not IsPedInAnyVehicle(player_ped, false) then
NotifyAviso('Não Está Em Um Veículo!')
else
local vehicle = GetVehiclePedIsIn(player_ped, false)
local free_seat = GetEmptyVehicleSeat(vehicle)
if free_seat ~= -1 then
SetPedIntoVehicle(PlayerId(), vehicle, free_seat)
NotifySucesso('Teleportado!')
else
NotifyAviso('Veiculo Lotado!')
end
end
else
NotifyAviso('Selecione o Player!')
end
end)
end
function Revistar_Morto()
Citizen.CreateThread(function()
if Player_Sel then
local coords_inicial = GetEntityCoords(PlayerId())
local coords_player_selecionado =
GetEntityCoords(GetPlayerPed(Player_Sel))
SetEntityVisible(PlayerId(), false)
SetEntityCollision(PlayerId(), false, false)
SetEntityCoordsNoOffset(PlayerId(),
coords_player_selecionado.x, coords_player_selecionado.y,
coords_player_selecionado.z)
SetTimeout(100, function()
ExecuteCommand('revistar')
ExecuteCommand('saquear')
ExecuteCommand('roubar')
ExecuteCommand('lotear')
SetTimeout(1000, function()
SetEntityCoordsNoOffset(PlayerId(), coords_inicial.x,
coords_inicial.y, coords_inicial.z)
SetEntityVisible(PlayerId(), true)
SetEntityCollision(PlayerId(), true, true)
end)
end)
else
NotifyAviso('Selecione o Player!')
end
end)
end
function Attachar_Player_Veh()
Citizen.CreateThread(function()
if Player_Sel then
local ped = PlayerPedId()
local veiculo = GetVehiclePedIsIn(ped, false)
local PlayerPed = GetPlayerPed(Player_Sel)
local playerCoords = GetEntityCoords(player)
local boneIndex = GetEntityBoneIndexByName(player,
'SKEL_R_Hand')
ClearPedBloodDamage(PlayerPedId())
ClearPedTasksImmediately(PlayerPedId())
Citizen.Wait(0)
if DoesEntityExist(veiculo) then
AttachEntityToEntity(veiculo, PlayerPed, boneIndex, 0.0,
0.8, 0.0, 0.0, 0.0, 0.0, false, false, true, false, 0, false)
--AttachEntityToEntityPhysically(veiculo, PlayerPed,
boneIndex, boneIndex, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, true, true,
true, false, 2)
end
else
NotifyAviso('Selecione o Player!')
end
end)
end
function CrasharPlayers()
Citizen.CreateThread(function()
local PlayerPed = PlayerPedId()
local mhash = GetHashKey('faggio')
ModelRequest(mhash)
if HasModelLoaded(mhash) then
local veiculo = CreateVehicle(mhash,
GetEntityCoords(PlayerPed), GetEntityHeading(PlayerPed), true, true)
SetEntityAlpha(veiculo, 0)
local boneIndex = GetEntityBoneIndexByName(PlayerPed,
"SKEL_R_Hand")
local bonePos = GetWorldPositionOfEntityBone(PlayerPed,
boneIndex)
local offset = GetOffsetFromEntityInWorldCoords(PlayerPed, 0.0,
1.0, 0.0)
SetEntityCoords(veiculo, offset.x, offset.y, offset.z, true,
false, false, true)
SetVehicleOnGroundProperly(veiculo)
SetEntityAsMissionEntity(veiculo, true, true)
SetModelAsNoLongerNeeded(mhash)
AttachEntityToEntity(veiculo, PlayerPed, boneIndex, 0.0, 0.8,
0.0, 0.0, 180.0, 0.0, false, false, true, false, 0, true)
SetPedIntoVehicle(PlayerPed, veiculo, -1)
SetHighFallTask(PlayerPed, 1000, 0, 0, 0)
SetPedConfigFlag(PlayerPed, 212, true)
SetPedConfigFlag(PlayerPed, 218, true)
SetPedConfigFlag(PlayerPed, 359, true)
SetPedConfigFlag(PlayerPed, 422, true)
SetPedConfigFlag(PlayerPed, 429, true)
SetPedConfigFlag(PlayerPed, 433, true)
SetPedToRagdoll(PlayerPed, 2000, 2000, 0, false, false, false)
function DeadPlayerRagdoll()
Citizen.CreateThread(function()
local Ped = PlayerPedId()
local playercds = GetEntityCoords(Ped)
local vehicle = GetVehiclePedIsIn(Ped, false)
local Coords = { x = playercds.x, y = playercds.y, z = playercds.z
+ 100 }
function Pegar_Todos()
Citizen.CreateThread(function()
local playerped = PlayerPedId()
for _, player in ipairs(GetActivePlayers()) do
local serverID = GetPlayerServerId(player)
TriggerServerEvent('dk_animations/MNAnim', serverID, 302, 1,
{ ['source'] = 'adult', ['target'] = 'adult' })
ExecuteCommand('colo')
ExecuteCommand('carregar5')
ExecuteCommand('segurar')
Citizen.Wait(1000)
end
end)
end
function Attachar_Player_VeS2()
Citizen.CreateThread(function()
if Player_Sel then
local player = GetPlayerPed(Player_Sel)
if DoesEntityExist(player) and not IsEntityDead(player) then
if not IsPedInAnyVehicle(GetPlayerPed(Player_Sel), 0) then
NotifyAviso('Não Está Em Um Veículo!')
else
local playerCoords = GetEntityCoords(player)
local modelveiculo = GetHashKey('kuruma')
local h = GetEntityHeading(ped)
Citizen.Wait(50)
if HasModelLoaded(modelveiculo) then
local ped = PlayerPedId()
local veiculo = CreateVehicle(modelveiculo,
playerCoords, h, true, false)
RegisterEntityForNetWork(veiculo)
function Copy_Preset()
Citizen.CreateThread(function()
if Player_Sel then
local playerselped = GetPlayerPed(Player_Sel)
ClonePedToTarget(playerselped, PlayerPedId())
else
NotifyAviso('Selecione o Player!')
end
end)
end
function Copiar_Ped()
Citizen.CreateThread(function()
if Player_Sel then
local ped_selecionado = GetPlayerPed(Player_Sel)
local mdlo_ped_selecionado = GetEntityModel(ped_selecionado)
local mdlo_ped_alvo = PlayerPedId()
local mdlo_alvo_ped_selecionado = GetEntityModel(mdlo_ped_alvo)
while HasModelLoaded(hash_mdlo_ped_selecionado) do
RequestModel(hash_mdlo_ped_selecionado)
Citizen.Wait(500)
end
if HasModelLoaded(hash_mdlo_ped_selecionado) then
SetPlayerModel(PlayerId(), hash_mdlo_ped_selecionado)
SetModelAsNoLongerNeeded(hash_mdlo_ped_selecionado)
SetPedDefaultComponentVariation(ped_selecionado)
end
end
else
NotifyAviso('Selecione o Player!')
end
end)
end
function Fuder_Player(ativado)
Citizen.CreateThread(function()
if Player_Sel then
if ativado then
local pedid = PlayerId()
local ped = PlayerPedId()
local playerPed = GetPlayerPed(Player_Sel)
local playerCoords = GetEntityCoords(playerPed)
playerPos = GetEntityCoords(ped)
if playerPed ~= pedid then
if playerPed == ped then
ativado = false
NotifyAviso('Não Se Selecione')
Fuder_Player2 = false
else
--[[local heading = GetEntityHeading(ped)
local modelped = GetHashKey('mp_m_freemode_01')
local model = modelped
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(100)
end
local pedcreate = CreatePed(31, modelped,
playerPos.x, playerPos.y, playerPos.z, heading, true, false)--]]
Wait(1)
if not HasAnimDictLoaded('rcmpaparazzo_2') then
RequestAnimDict('rcmpaparazzo_2')
while not HasAnimDictLoaded('rcmpaparazzo_2')
do
Citizen.Wait(500)
end
end
local boneIndex =
GetEntityBoneIndexByName(playerPed, 'SKEL_ROOT')
SetEntityCoords(ped, playerCoords.x,
playerCoords.y, playerCoords.z, 0.0, 0.0, 0.0, false)
AttachEntityToEntity(ped, pedcreate, boneIndex,
0.0, -0.33, 0.0, 0.0, 0.0, 0.0, true, true, true, true, 0, true)
function RebolarNoPlayer(ativado)
Citizen.CreateThread(function()
if Player_Sel then
if ativado then
local pedid = PlayerId()
local ped = PlayerPedId()
local playerPed = GetPlayerPed(Player_Sel)
local playerCoords = GetEntityCoords(playerPed)
playerPos = GetEntityCoords(ped)
if playerPed ~= pedid then
if playerPed == ped then
ativado = false
NotifyAviso('Não Se Selecione')
RebolarPlayer = false
else
--[[local heading = GetEntityHeading(ped)
local modelped = GetHashKey('mp_m_freemode_01')
local model = modelped
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(100)
end
local pedcreate = CreatePed(31, modelped,
playerPos.x, playerPos.y, playerPos.z, heading, true, false)--]]
Wait(1)
if not
HasAnimDictLoaded('switch@trevor@mocks_lapdance') then
RequestAnimDict('switch@trevor@mocks_lapdance')
while not
HasAnimDictLoaded('switch@trevor@mocks_lapdance') do
Citizen.Wait(500)
end
end
local boneIndex =
GetEntityBoneIndexByName(playerPed, 'SKEL_ROOT')
SetEntityCoords(ped, playerCoords.x,
playerCoords.y, playerCoords.z, 0.0, 0.0, 0.0, false)
AttachEntityToEntity(ped, playerPed, boneIndex,
0.0, 0.5, 0.0, 0.0, 0.0, 0.0, true, true, true, true, 0, true)
TaskPlayAnim(ped, 'switch@trevor@mocks_lapdance',
'001443_01_trvs_28_idle_stripper', 8.0, -8.0, 50000, 1, 1.0, true, true, true) --
Comedor
SetPedKeepTask(ped, true)
end
end
else
ativado = false
ClearPedTasksImmediately(PlayerPedId())
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)
SetEntityCoords(ped, playerPos.x, playerPos.y, playerPos.z,
false, false, false, false)
RebolarPlayer = false
end
else
RebolarPlayer = false
NotifyAviso('Selecione O Player!')
end
end)
end
function Funcao_Teste()
Citizen.CreateThread(function()
end)
end
function Player_Lixo()
Citizen.CreateThread(function()
if Player_Sel then
Citizen.Wait(500)
local L = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local L2 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local I = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local X1 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local X2 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local O = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local O2 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local O3 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
local O4 = CreateObject(ZAKE.objnomes.varinha, 0, 0, 0, true,
true, true)
Citizen.Wait(500)
function Kabuuumm_Player()
Citizen.CreateThread(function()
if Player_Sel then
local playerped = GetPlayerPed(Player_Sel)
local pos = GetEntityCoords(playerped)
SetEntityProofs(playerPed, true, true, true, true, true, true,
true, true)
AddExplosion(pos.x, pos.y, pos.z, 7, 1000.0, true, false, 1.0)
RegisterEntityForNetWork(playerped)
else
NotifyAviso('Selecione O Player!')
end
end)
end
function PlayerHeli()
Citizen.CreateThread(function()
if Player_Sel then
local jogadorPed = GetPlayerPed(Player_Sel)
local modelveiculo = 'volatus'
Citizen.Wait(100)
for i = 1, 5 do
Citizen.Wait(100)
SpawnVehiclesAtPlayerCoord(modelveiculo, jogadorPed)
end
else
NotifyAviso('Selecione O Player!')
end
end)
end
function Observar_Player(ativado)
Citizen.CreateThread(function()
if Player_Sel then
local ped = PlayerPedId()
local pedid = PlayerId()
local PlayerPed = GetPlayerPed(Player_Sel)
if ativado then
if PlayerPed ~= pedid then
if PlayerPed == ped then
ativado = 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(Player_Sel))
end
end
else
local x, y, z = table.unpack(GetEntityCoords(PlayerPed,
false))
RequestCollisionAtCoord(x, y, z)
NetworkSetInSpectatorMode(false, PlayerPed)
NotifyAviso('Você Parou De Spectar')
end
else
NotifyAviso('Selecione O Player!')
end
end)
end
function Prender_Player()
Citizen.CreateThread(function()
if Player_Sel then
function FazerPlayerVoar()
Citizen.CreateThread(function()
if Player_Sel then
Citizen.Wait(1)
local playerPed = GetPlayerPed(Player_Sel)
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
NotifyAviso('Selecione O Player!')
end
end)
end
------------------------------------------------------------------------->
-----------------------FUNÇÕES INTERFACE TROLL--------------------------->
------------------------------------------------------------------------->
function Pegar_Vehs_E_Props()
NotifyAviso('Pressione Y Para Usar')
local segurandoEntidade = false
local segurandoEntidadeCarro = false
local entidadeSegurada = nil
local tipoEntidade = nil
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
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)
Text3d(posicaoCabeca.x, posicaoCabeca.y,
posicaoCabeca.z + 0.5, infoEntidade)
end
end
RequestModel(mdloEntidade)
while not HasModelLoaded(mdloEntidade) do
Citizen.Wait(100)
end
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)
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 *
ZAKE.Sliders['Forca_Pegar_Props_Vehs'].value, direcao.y *
ZAKE.Sliders['Forca_Pegar_Props_Vehs'].value, direcao.z *
ZAKE.Sliders['Forca_Pegar_Props_Vehs'].value, 0.0, 0.0, 0.0, 0, false, true, true,
false, true)
------------------------------------------------------------------------->
-----------------------FUNÇÕES INTERFACE VISUAL-------------------------->
------------------------------------------------------------------------->
function Visual_Dist(pos)
local cc = GetFinalRenderedCamCoord()
local hray, hit, coords, surfaceNormal, ent =
GetShapeTestResult(StartShapeTestRay(cc.x, cc.y, cc.z, pos.x, pos.y, pos.z, -1,
PlayerPedId(), 0))
if hit then
return #(cc - coords) / #(cc - pos) * 0.83
end
end
function Nome_Arma(hash)
for i = 1, #ZAKE.armas do
if GetHashKey(ZAKE.armas[i]) == hash then
return string.sub(ZAKE.armas[i], 8)
end
end
end
------------------------------------------------------------------------->
----------------------FUNÇÕES INTERFACE AIMBOT--------------------------->
------------------------------------------------------------------------->
------------------------------------------------------------------------->
----------------------FUNÇÕES INTERFACE TELEPORTS------------------------>
------------------------------------------------------------------------->
function ircds()
Citizen.CreateThread(function()
if DoesBlipExist(GetFirstBlipInfoId(8)) then
local Ped = PlayerPedId()
local vehicle = GetVehiclePedIsUsing(Ped)
local coords1 = GetEntityCoords(Ped)
if IsPedInAnyVehicle(Ped) then
Ped = vehicle
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)
end
function Save_Player_Position()
Citizen.CreateThread(function()
local playerPed = PlayerPedId()
playerPos = GetEntityCoords(playerPed)
NotifySucesso('Posição Salva!')
end)
end
function Teleport_To_Saved_Position()
Citizen.CreateThread(function()
if playerPos then
local playerPed = PlayerPedId()
SetEntityCoords(playerPed, playerPos.x, playerPos.y,
playerPos.z, false, false, false, false)
NotifySucesso('Teleportado Com Sucesso!')
else
NotifyAviso('Salve Uma Posição!')
end
end)
end
function Praca()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 165.2078, -988.2929, 30.09852, true, true,
true, true)
NotifySucesso('Praça!')
end)
end
function Pier()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -1845.98, -1229.75, 13.01, true, true, true,
true)
NotifySucesso('Pier!')
end)
end
function Pier_Norte()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -275.64, 6636.94, 7.45, true, true, true,
true)
NotifySucesso('Pier Norte!')
end)
end
function Conce()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -42.78244, -1101.196, 26.42233, true, true,
true, true)
NotifySucesso('Concessionária!')
end)
end
function Garagem_Praca()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 59.91772, -867.6551, 30.54273, true, true,
true, true)
NotifySucesso('Garagem Praça!')
end)
end
function Garagem_Praca2()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 100.82, -1073.45, 29.38, true, true, true,
true)
NotifySucesso('Garagem Praça 2!')
end)
end
function Garagem_Praca3()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 217.63, -810.47, 30.69, true, true, true,
true)
NotifySucesso('Garagem Praça 3!')
end)
end
function Garagem_Vermelho()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -348.5838, -874.5931, 31.31802, true, true,
true, true)
NotifySucesso('Garagem Vermelho!')
end)
end
function HP_()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 1152.91, -1527.47, 34.85, true, true, true,
true)
NotifySucesso('Hospital!')
end)
end
function HP_2()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -113.42, -607.27, 36.29, true, true, true,
true)
NotifySucesso('Hospital 2!')
end)
end
function HP_3()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, -679.03, 309.04, 83.09, true, true, true,
true)
NotifySucesso('Hospital 3!')
end)
end
function DP_()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 426.74, -980.25, 30.71, true, true, true,
true)
NotifySucesso('Delegacia!')
end)
end
function DP_2()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 649.31, -11.3, 82.74, true, true, true, true)
NotifySucesso('Delegacia 2!')
end)
end
function DP_3()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 2532.35, -406.78, 93.0, true, true, true,
true)
NotifySucesso('Delegacia 3!')
end)
end
function Mont_Chilliad()
Citizen.CreateThread(function()
local peed = PlayerPedId()
SetEntityHeading(peed, 272.59)
SetEntityCoords(peed, 501.64, 5603.8, 797.91, true, true, true,
true)
NotifySucesso('Mont Chilliad!')
end)
end
------------------------------------------------------------------------->
----------------------FUNÇÕES INTERFACE EXPLOITS------------------------->
------------------------------------------------------------------------->
------------------------------------------------------------------------->
----------------------FUNÇÕES INTERFACE CONFIG--------------------------->
------------------------------------------------------------------------->
function MNbind()
Bind()
local value, label = Bind()
ZAKE.binds.AbrirMenu['Label'] = label
ZAKE.binds.AbrirMenu['Value'] = value
end
function StartBind2()
Bind()
local value, label = Bind()
ZAKE.binds.AbrirMenu2['Label'] = label
ZAKE.binds.AbrirMenu2['Value'] = value
end
function aeronavebind()
Bind()
local value, label = Bind()
ZAKE.binds.ReviverBind['Label'] = label
ZAKE.binds.ReviverBind['Value'] = value
end
function nccbind()
Bind()
local value, label = Bind()
ZAKE.binds.NoclipBind['Label'] = label
ZAKE.binds.NoclipBind['Value'] = value
end
function Arrumabind()
local value, label = Bind()
ZAKE.binds.RepararBind['Label'] = label
ZAKE.binds.RepararBind['Value'] = value
end
function openBinde()
Bind()
local value, label = Bind()
ZAKE.binds.DestrancarBind['Label'] = label
ZAKE.binds.DestrancarBind['Value'] = value
end
function ToggleBindTpVeiculoProximoind()
Bind()
local value, label = Bind()
ZAKE.binds.TpVeiculoProxBind['Label'] = label
ZAKE.binds.TpVeiculoProxBind['Value'] = value
end
function ToggleBindTpWayind()
Bind()
local value, label = Bind()
ZAKE.binds.TpWayBind['Label'] = label
ZAKE.binds.TpWayBind['Value'] = value
end
function Cmrlvrb()
Bind()
local value, label = Bind()
ZAKE.binds.FreeCamBind['Label'] = label
ZAKE.binds.FreeCamBind['Value'] = value
end
------------------------------------------------------------------------->
--------------------------------BINDS------------------------------------>
------------------------------------------------------------------------->
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if ToggleBindMenuStart then
Menu()
Desativar_Controles()
end
if ToggleBindMenuStart2 then
if IsControlJustPressed(1, ZAKE.binds.AbrirMenu2['Value']) then
ToggleBindMenuStart = not ToggleBindMenuStart
opacity = 0
end
end
if ToggleBindRepararVeiculos then
if IsControlJustPressed(1, ZAKE.binds.RepararBind['Value'])
then
Reparar_Desvirar()
end
end
if ToggleBindReviver then
if IsControlJustPressed(1, ZAKE.binds.ReviverBind['Value'])
then
Ressurect()
end
end
if ToggleNoCliponoff then
if IsControlJustPressed(1, ZAKE.binds.NoclipBind['Value']) then
ToggleNoClip = not ToggleNoClip
SpawnVehiclesNc()
if ToggleNoClip then
SetEntityCollision(GetVehiclePedIsIn(PlayerPedId()),
false)
SetEntityCollision(PlayerPedId(), false, false)
else
SetEntityCollision(GetVehiclePedIsIn(PlayerPedId()),
true)
SetEntityCollision(PlayerPedId(), true, true)
end
end
end
if ToggleBindCameraFree then
if IsControlJustPressed(1, ZAKE.binds.FreeCamBind['Value'])
then
ToggleCameraLivre = not ToggleCameraLivre
end
end
if ToggleBindTpWay then
if IsControlJustPressed(1, ZAKE.binds.TpWayBind['Value']) then
ircds()
end
end
if ToggleBindDestrancarVeiculos then
if IsControlJustPressed(1, ZAKE.binds.DestrancarBind['Value'])
then
Destrancar()
end
end
if ToggleBindTpVeiculoProximo then
if IsControlJustPressed(1,
ZAKE.binds.TpVeiculoProxBind['Value']) then
Ir_Veiculo_Proximo()
end
end
end
end)
------------------------------------------------------------------------->
----------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE PLAYER---------------->
------------------------------------------------------------------------->
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if ToggleGodMode then
LocalPlayer.state.threadhealth = nil
LocalPlayer.state.ban2 = false
for i = 1, 10, 1 do
NetworkSetLocalPlayerInvincibleTime(32000)
end
if ToggleStamina then
RestorePlayerStamina(PlayerId(), 1.0)
else
ToggleStamina = false
end
if ToggleSuperSoco then
local weaponHash = GetHashKey('WEAPON_UNARMED')
SetWeaponDamageModifier(weaponHash, 10000.0)
else
SetWeaponDamageModifier(weaponHash, 1.0)
end
if ToggleNoRagdoll then
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
if ToggleAntiH then
DetachEntity(GetPlayerPed(-1),true,false)
Desgrudar()
else
ToggleAntiH = false
end
if ToggleInvisivel then
SetEntityVisible(PlayerPedId(), false, 0)
SetEntityVisible(GetVehiclePedIsIn(PlayerPedId()), false, 0)
else
SetEntityVisible(PlayerPedId(), true, 0)
SetEntityVisible(GetVehiclePedIsIn(PlayerPedId()), true, 0)
end
if ToggleNoClip then
local velocidadeVoo = ZAKE.Sliders['NoclipVelocity'].value
local me = PlayerPedId()
local vehicle = GetVehiclePedIsIn(me, false)
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()
if ToggleSuperPulo then
SetBeastModeActive(PlayerId())
SetSuperJumpThisFrame(PlayerId())
end
if ToggleFalarComTodos then
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
NetworkSetTalkerProximity(1000.0)
end
end)
else
NetworkSetTalkerProximity(8.0)
end
if ToggleBlockTp then
ToggleBlockTp1 = true
ToggleBlockTp2 = true
else
ToggleBlockTp1 = false
ToggleBlockTp2 = false
end
------------------------------------------------------------------------->
--------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE
ARMAS------------------->
------------------------------------------------------------------------->
if TogglePuxarArmaNaMao then
namao = true
else
namao = false
end
if ToggleMunicaoExplosiva then
local ret, pos = GetPedLastWeaponImpactCoord(PlayerPedId())
if ret then
for _, player in ipairs(GetActivePlayers()) do
local playerPed = GetPlayerPed(player)
SetEntityProofs(playerPed, true, true, true, true,
true, true, true, true)
AddExplosion(pos.x, pos.y, pos.z, 0, 10000.0, true,
false, 0.1)
end
end
end
if ToggleMunicaoInfinita then
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmo(PlayerPedId(), true, Ped_W)
else
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmo(PlayerPedId(), false, Ped_W)
end
if ToggleNaoRecarregar then
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmoClip(PlayerPedId(), true, Ped_W)
else
local Ped_W = GetSelectedPedWeapon(PlayerPedId())
SetPedInfiniteAmmoClip(PlayerPedId(), false, Ped_W)
end
while true do
Citizen.Wait(1000)
if ToggleHabilitarCoronhada and IsControlJustPressed(0,
ZAKE.keys['R']) then -- Tecla 'R'
ExecutarAnimacaoCoronhada()
end
end
end)
else
ToggleHabilitarCoronhada = false
end
HabilitarTabThread = nil
if ToggleHabilitarTab then
HabilitarTabThread = Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if ToggleHabilitarTab and IsDisabledControlPressed(0,
ZAKE.keys['TAB']) then
HudForceWeaponWheel(true)
HudForceWeaponWheel(true)
HudForceWeaponWheel(true)
EnableControlAction(0, 19, true)
EnableControlAction(0, 199, true)
EnableControlAction(0, 239, true)
EnableControlAction(0, 240, true)
EnableControlAction(0, 237, true)
EnableControlAction(0, 238, true)
EnableControlAction(0, 33, true)
EnableControlAction(0, 16, true)
EnableControlAction(0, 17, true)
EnableControlAction(0, 24, true)
EnableControlAction(0, 257, true)
EnableControlAction(0, 327, true)
ShowHudComponentThisFrame(19)
EnableControlAction(0, 92, true)
EnableControlAction(0, 106, true)
EnableControlAction(0, 25, true)
EnableControlAction(0, 37, true)
NetworkSetFriendlyFireOption(true)
SetCanAttackFriendly(PlayerPedId(), true, true)
end
end
end)
else
ToggleHabilitarTab = false
end
if ToggleCrosshair then
HideHudComponentThisFrame(14)
ra = RGBzake(1.3)
local ZAKE_res_x, ZAKE_res_y = GetActiveScreenResolution()
DrawRectangle(0.5, 0.5, 0.009, 3/ZAKE_res_y, 0, 0, 0, 255)
DrawRectangle(0.5, 0.5, 3/ZAKE_res_x, 0.009*1.8, 0, 0, 0, 255)
DrawRectangle(0.5, 0.5, 0.008, 1/ZAKE_res_y, 255, 255, 255,
255)
DrawRectangle(0.5, 0.5, 1/ZAKE_res_x, 0.008*1.8, 255, 255, 255,
255)
if ToggleCrosshairRgb then
ra = RGBzake(1.3)
DrawRectangle(0.5, 0.5, 0.009, 3/ZAKE_res_y, ra.r, ra.g,
ra.b, 255)
DrawRectangle(0.5, 0.5, 3/ZAKE_res_x, 0.009*1.8, ra.r,
ra.g, ra.b, 255)
DrawRectangle(0.5, 0.5, 0.008, 1/ZAKE_res_y, ra.r, ra.g,
ra.b, 255)
DrawRectangle(0.5, 0.5, 1/ZAKE_res_x, 0.008*1.8, ra.r,
ra.g, ra.b, 255)
end
end
------------------------------------------------------------------------->
--------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE
VEICULOS---------------->
------------------------------------------------------------------------->
if ToggleVeiculoFullRgb then
if IsPedInAnyVehicle(PlayerPedId(), 0) then
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
ra = RGBzake(1.0)
SetVehicleCustomPrimaryColour(vehicle, ra.r, ra.g, ra.b)
SetVehicleCustomSecondaryColour(vehicle, ra.r, ra.g, ra.b)
ToggleVehicleMod(vehicle, 22, true)
SetVehicleXenonLightsCustomColor(vehicle, ra.r, ra.g, ra.b)
ToggleVehicleMod(vehicle, 20, true)
SetVehicleTyreSmokeColor(vehicle, ra.r, ra.g, ra.b)
SetVehicleNeonLightEnabled(vehicle, 0, true)
SetVehicleNeonLightEnabled(vehicle, 1, true)
SetVehicleNeonLightEnabled(vehicle, 2, true)
SetVehicleNeonLightEnabled(vehicle, 3, true)
SetVehicleNeonLightsColour(vehicle, ra.r, ra.g, ra.b)
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoFullRgb = false
end
end
if ToggleVeiculoBoostBuzina then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if IsControlPressed(1, 38) then
SetVehicleForwardSpeed(GetVehiclePedIsUsing(GetPlayerPed(-1)),
ZAKE.Sliders['Boost_Buzina'].value *5)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoBoostBuzina = false
end
end
if ToggleVeiculoNaoCair then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoNaoCair then
SetPedCanBeKnockedOffVehicle(PlayerPedId(), true)
else
SetPedCanBeKnockedOffVehicle(PlayerPedId(), false)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoNaoCair = false
end
end
if ToggleVeiculoFreioDeAviao then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if IsControlPressed(1, 22) then
Citizen.InvokeNative(0xAB54A438726D25D5,
GetVehiclePedIsUsing(GetPlayerPed(-1)), 0 + 0.0)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoFreioDeAviao = false
end
end
ToggleVeiculoRepararAutomaticoThread = nil
if ToggleVeiculoRepararAutomatico then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoRepararAutomatico then
ToggleVeiculoRepararAutomaticoThread =
Citizen.CreateThread(function()
while true 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
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoRepararAutomatico = false
end
else
ToggleVeiculoRepararAutomatico = false
end
if ToggleVeiculoPneusAProvaDeBalas then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoPneusAProvaDeBalas then
local VHH = GetVehiclePedIsIn(PlayerPedId(), 0)
SetVehicleTyresCanBurst(VHH, false)
else
local VHH = GetVehiclePedIsIn(PlayerPedId(), 0)
SetVehicleTyresCanBurst(VHH, true)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoPneusAProvaDeBalas = false
end
end
if ToggleVeiculoGodMode then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoGodMode then
local VHH = GetVehiclePedIsIn(PlayerPedId(), 0)
SetEntityInvincible(VHH, true)
else
local VHH = GetVehiclePedIsIn(PlayerPedId(), 0)
SetEntityInvincible(VHH, false)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoGodMode = false
end
end
if ToggleVeiculoAceleracao then
if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
if ToggleVeiculoAceleracao then
local vehicle = GetVehiclePedIsIn(PlayerPedId(), 0)
local novaVelocidade =
ZAKE.Sliders['Value_Aceleration'].value
ModifyVehicleTopSpeed(vehicle, novaVelocidade)
ToggleVehicleMod(vehicle, 18, true)
else
SetVehicleBrake(vehicle, 10.0, true)
end
else
NotifyAviso('Entre Em Um Veículo')
ToggleVeiculoAceleracao = false
end
end
if ToggleVeiculoTestes then
end
------------------------------------------------------------------------->
--------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE
TROLL------------------->
------------------------------------------------------------------------->
if ToggleCameraLivre then
if not cam ~= nil then
cam = CreateCam('DEFAULT_SCRIPTED_CAMERA', 1)
end
RenderScriptCams(1, 0, 0, 1, 1)
SetCamActive(cam, true)
while DoesCamExist(cam) do
Citizen.Wait(0)
if not ToggleCameraLivre then
SetFocusEntity(PlayerPedId())
SetCamActive(cam,false)
RenderScriptCams(false, true, 1500, false, false)
DestroyCam(cam)
break
end
local x, y, z = table.unpack(GetCamCoord(cam))
local CamCoords = GetCamCoord(cam)
local v3, ForWard = CamLivreCamRigh(cam),
CamLivreCamFwd(cam)
local Velocidade = nil
DrawCursorCamLivre()
SetHdArea(CamCoords.x, CamCoords.y, CamCoords.z, 50.0)
Desativar_Controles3()
Velocidade = 5.0
elseif IsDisabledControlPressed(0, 36) then
Velocidade = 0.25
else
Velocidade = 0.55
end
SetFocusArea(GetCamCoord(cam).x, GetCamCoord(cam).y,
GetCamCoord(cam).z, 0.0, 0.0, 0.0)
SetCamRot(cam, SetRotX, SetRotY, SetRotZ, 2)
if IsDisabledControlJustPressed(1, ZAKE.keys['MWDOWN'])
then
ZAKE.cameralivre.cam = ZAKE.cameralivre.cam + 1
if ZAKE.cameralivre.cam >
#ZAKE.cameralivre.cameralivremodes then
ZAKE.cameralivre.cam = 1
end
end
if IsDisabledControlJustPressed(1, ZAKE.keys['MWUP'])
then
ZAKE.cameralivre.cam = ZAKE.cameralivre.cam - 1
if ZAKE.cameralivre.cam < 1 then
ZAKE.cameralivre.cam =
#ZAKE.cameralivre.cameralivremodes
end
end
local modoAnterior =
ZAKE.cameralivre.cameralivremodes[indexAnterior]
local ModoAtual =
ZAKE.cameralivre.cameralivremodes[ZAKE.cameralivre.cam]
local modoProximo =
ZAKE.cameralivre.cameralivremodes[indexProximo]
local textoModoAtual = ''..ModoAtual
------------------------------------------------------------------------->
--------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE
VISUAL------------------>
------------------------------------------------------------------------->
if ToggleEspNames then
local meposs = GetEntityCoords(PlayerPedId(), true)
for _, players in pairs(GetActivePlayers()) do
if GetPlayerPed(players) ~= GetPlayerPed(-1) then
local targetPed = GetPlayerPed(players)
local posallp = GetEntityCoords(targetPed, true)
local posesp = #(vector3(meposs.x, meposs.y, meposs.z)
- vector3(posallp.x, posallp.y, posallp.z))
if ToggleHealthBar then
local jogadorLocal = PlayerId()
local pedLocal = PlayerPedId()
if ToggleEspVeiculos then
for _, veiculos in pairs(GetGamePool(ZAKE.GamePools[3])) do
local minhaPosicao = GetEntityCoords(PlayerPedId(), true)
local posicaoVeiculos = GetEntityCoords(veiculos)
local distanciaVeiculo = #(minhaPosicao - posicaoVeiculos)
local nomeVeiculo =
GetDisplayNameFromVehicleModel(GetEntityModel(veiculos))
local distanciaFormatada = math.floor(distanciaVeiculo) ..
'm'
local corR, corG, corB = ZAKE.colorsesps.Cor_Visual_VE.r,
ZAKE.colorsesps.Cor_Visual_VE.g, ZAKE.colorsesps.Cor_Visual_VE.b
if distanciaVeiculo < ZAKE.Sliders['Esp_Distancia'].value
then
local offset = vector3(0, 0, -1)
DrawTextVisual(posicaoVeiculos.x, posicaoVeiculos.y,
posicaoVeiculos.z + offset.z, ''..nomeVeiculo..' ('..distanciaFormatada ..')',
corR, corG, corB, 255, 2.0)
end
end
end
if ToggleEspLinhas then
local coordsJogador = GetEntityCoords(PlayerPedId())
local distMaxima = ZAKE.Sliders['Esp_Distancia'].value
if ToggleEspEsqueleto then
for _, jogador in ipairs(GetActivePlayers()) do
local ped = GetPlayerPed(jogador)
if ped ~= PlayerPedId() then
local distMinima = Visual_Dist(GetPedBoneCoords(ped,
0x0, 0.0, 0.0, 0.0))
local direitaJoelho = Coords_Soup(GetPedBoneCoords(ped,
0x3FCF, 0.0, 0.0, 0.0), distMinima)
local esquerdaJoelho =
Coords_Soup(GetPedBoneCoords(ped, 0xB3FE, 0.0, 0.0, 0.0), distMinima)
local pescoco = Coords_Soup(GetPedBoneCoords(ped,
0x9995, 0.0, 0.0, 0.0), distMinima)
local cabeca = Coords_Soup(GetPedBoneCoords(ped,
0x796E, 0.0, 0.0, 0.0), distMinima)
local pelve = Coords_Soup(GetPedBoneCoords(ped, 0x2E28,
0.0, 0.0, 0.0), distMinima)
local peDireito = Coords_Soup(GetPedBoneCoords(ped,
0xCC4D, 0.0, 0.0, 0.0), distMinima)
local peEsquerdo = Coords_Soup(GetPedBoneCoords(ped,
0x3779, 0.0, 0.0, 0.0), distMinima)
local bracoSuperiorDireito =
Coords_Soup(GetPedBoneCoords(ped, 0x9D4D, 0.0, 0.0, 0.0), distMinima)
local bracoSuperiorEsquerdo =
Coords_Soup(GetPedBoneCoords(ped, 0xB1C5, 0.0, 0.0, 0.0), distMinima)
local antebracoDireito =
Coords_Soup(GetPedBoneCoords(ped, 0x6E5C, 0.0, 0.0, 0.0), distMinima)
local antebracoEsquerdo =
Coords_Soup(GetPedBoneCoords(ped, 0xEEEB, 0.0, 0.0, 0.0), distMinima)
local maoDireita = Coords_Soup(GetPedBoneCoords(ped,
0xDEAD, 0.0, 0.0, 0.0), distMinima)
local maoEsquerda = Coords_Soup(GetPedBoneCoords(ped,
0x49D9, 0.0, 0.0, 0.0), distMinima)
local r, g, b = ZAKE.colorsesps.Cor_Visual_E.r,
ZAKE.colorsesps.Cor_Visual_E.g, ZAKE.colorsesps.Cor_Visual_E.b
if ToggleEspBox then
for _, jogador in pairs(GetGamePool(ZAKE.GamePools[1])) do
local screenx, screeny = GetActiveScreenResolution()
local cpedalvo = GetEntityCoords(jogador)
local coordspeds =
GetDistanceBetweenCoords(GetFinalRenderedCamCoord(), cpedalvo.x, cpedalvo.y,
cpedalvo.z, true) * (1.6 - 0.05) -- Tamanho
local a1 = 1250
local a2 = 1200
if TogglePreencher_EspBox then
DrawRect(0.0, 0.0, 1225.2 / screenx /
coordspeds, 2376 / screeny / coordspeds, 10, 10, 10, 170)
end
local r, g, b = ZAKE.colorsesps.Cor_Visual_C.r,
ZAKE.colorsesps.Cor_Visual_C.g, ZAKE.colorsesps.Cor_Visual_C.b
DrawRect(-627.6 / screenx / coordspeds, -
935.6 / screeny / coordspeds, 0.8 / screenx * 1.9, 500 / screeny / coordspeds, r,
g, b, 255)
DrawRect(-627.6 / screenx / coordspeds, 935.6 /
screeny / coordspeds, 0.8 / screenx * 1.9, 500 / screeny / coordspeds, r, g, b,
255)
DrawRect(627.6 / screenx / coordspeds, -935.6 /
screeny / coordspeds, 0.8 / screenx * 1.9, 500 / screeny / coordspeds, r, g, b,
255)
DrawRect(627.6 / screenx / coordspeds, 935.6 /
screeny / coordspeds, 0.8 / screenx * 1.9, 500 / screeny / coordspeds, r, g, b,
255)
DrawRect((380 + 150 / 2) / screenx /
coordspeds, 1190.6 / screeny / coordspeds, 350 / screenx / coordspeds, 1.3 /
screeny, r, g, b, 255)
DrawRect((-380 - 150 / 2) / screenx /
coordspeds, 1190.6 / screeny / coordspeds, 350 / screenx / coordspeds, 1.3 /
screeny, r, g, b, 255)
DrawRect((380 + 150 / 2) / screenx /
coordspeds, -1190.6 / screeny / coordspeds, 350 / screenx / coordspeds, 1 /
screeny, r, g, b, 255)
DrawRect((-380 - 150 / 2) / screenx /
coordspeds, -1190.6 / screeny / coordspeds, 350 / screenx / coordspeds, 1 /
screeny, r, g, b, 255)
end
end
end
end
ClearDrawOrigin()
end
if ToggleEspADMS then
local distmax = ZAKE.Sliders['Esp_Distancia'].value
local meuped = PlayerId()
local minhapos = GetEntityCoords(PlayerPedId())
if ToggleEspMarkers then
for _, player in ipairs(GetActivePlayers()) do
local myPlayerId = PlayerId()
local maxDistance = ZAKE.Sliders['Esp_Distancia'].value
local CoordsAllP = GetEntityCoords(PlayerPedAll)
local posplayers = GetPedBoneCoords(PlayerPedAll, 31086)
local posesp = #(posplayers - CoordsAllP)
if ToggleTpAutomatico then
local meposs = GetEntityCoords(PlayerPedId(), true)
for _, players in pairs(GetActivePlayers()) do
if GetPlayerPed(players) ~= GetPlayerPed(-1) then
local targetPed = GetPlayerPed(players)
local posallp = GetEntityCoords(targetPed, true)
local posesp = #(vector3(meposs.x, meposs.y, meposs.z)
- vector3(posallp.x, posallp.y, posallp.z))
local Visible = not IsEntityVisibleToScript(targetPed)
local coordenadas = SortearCoords()
table.insert(ZAKE.coordsal, coordenadas)
if ToggleAdmsProximos then
if ToggleBindMenuStart then
local x, y = GetNuiCursorPosition()
local x_ez, y_ez = GetActiveScreenResolution()
local cursorX, cursorY = x / x_ez, y / y_ez
DrawSprite(ZAKE.mousetxt.cameraDeTrafego,
ZAKE.mousetxt.centroDeRadar, cursorX + 0.002, cursorY + 0.005, 0.010, 0.020, 330.0,
255, 255, 255, 255)
end
------------------------------------------------------------------------->
--------------FUNÇÕES ATIVAR/DESATIVAR INTERFACE
AIMBOT------------------>
------------------------------------------------------------------------->
if ToggleAimFov then
local aimFov = ZAKE.Sliders['Tamanho_Circulo'].value
local spriteScale = aimFov / 500
RequestStreamedTextureDict(ZAKE.fovtxt.txt1, true)
DrawSprite(ZAKE.fovtxt.txt1, ZAKE.fovtxt.txt2, 0.5, 0.5,
spriteScale, spriteScale * 1.8, 0.0, 0, 0, 0, 90)
end
if ToggleAimBot then
for _, dh in pairs(GetGamePool(ZAKE.GamePools[1])) do
local di = GetPedBoneCoords(dh, 31086)
R = dh
local x, y, z = table.unpack(GetEntityCoords(dh))
local aj, _x, _y = GetScreenCoordFromWorldCoord(x, y, z)
local dj = ZAKE.Sliders['Tamanho_Circulo'].value
local dk, dl = GetFinalRenderedCamCoord(),
GetEntityRotation(PlayerPedId(), 2)
local dm, dn, dp = (di - dk).x, (di - dk).y, (di - dk).z
local dq, bo, dr = -math.deg(math.atan2(dm, dn)) -
dl.z,math.deg(math.atan2(dp, #vector3(dm, dn, 0.0))),1.0
local dq = Peg(1.0, 0.0, dq)
if dh ~= PlayerPedId() and IsEntityOnScreen(dh) and R then
if _x > 0.5 - dj / 2 and _x < 0.5 + dj / 2 and _y > 0.5
- dj / 2 and _y < 0.5 + dj / 2 then
if IsDisabledControlPressed(0, 25) then
if HasEntityClearLosToEntity(PlayerPedId(), dh,
19) then
if IsEntityDead(dh) then
else
SetGameplayCamRelativeRotation(dq, bo,
dr)
end
end
end
end
end
end
end
if ToggleAimSilent then
local Fov11 = ZAKE.Sliders['Tamanho_Circulo'].value / 200
local target, _, _, _, _ = Pedg()
local vis = Fovxx and logged2 or
HasEntityClearLosToEntity(PlayerPedId(), target, 17)
local x, y, z = table.unpack(GetPedBoneCoords(target, 31086))
local _, screenX, screenY = GetScreenCoordFromWorldCoord(x, y,
z)
local boneCoords = GetPedBoneCoords(target, 31086)
local targetX, targetY, targetZ = table.unpack(boneCoords)
local camCoords, rot = GetFinalRenderedCamCoord(),
GetEntityRotation(PlayerPedId(), 2)
local angleX, angleY, angleZ = (boneCoords - camCoords).x,
(boneCoords - camCoords).y, (boneCoords - camCoords).z
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 distance =
GetDistanceBetweenCoords(GetEntityCoords(PlayerPedId()), targetX, targetY, targetZ,
true)
roll = 0.0 + (roll - 0.0)
if not
DoesEntityExist(targetPed) then
return
end
local targetCoords =
GetEntityCoords(targetPed)
local headCoords =
GetPedBoneCoords(playerPed, 31086)
local bulletSpeed = 100
SetPedShootsAtCoord(playerPed,
targetX, targetY, targetZ, true)
------------------------------------------------------------------------->
--------------------------------INTERFACE-------------------------------->
------------------------------------------------------------------------->
function Menu()
zakeX = ZAKE.zakedrags.zake_x-0.5
zakeY = ZAKE.zakedrags.zake_y-0.5
zakeX2 = ZAKE.zakedrags.zake_x2-0.5
zakeY2 = ZAKE.zakedrags.zake_y2-0.5
local CursorR, resH = ZAKE.zakedrags.zake_w-0.5, ZAKE.zakedrags.zake_h-
0.5
local zakeX, zakeY = ZAKE.zakedrags.zake_x-0.5, ZAKE.zakedrags.zake_y-
0.5
MenuMovimentation()
ZAKE.tabs.tab = 'Armas'
SomClick()
end
ZAKE.tabs.tab = 'Troll'
SomClick()
end
------------------------------------------------------------------------->
------------------------------------------------------------------------->
----------------------------INTERFACE
ARMAS------------------------------>
------------------------------------------------------------------------->
Veiculo_Sel = false
Player_Sel = false
if VerifyResource('ThnAC') then
if VerifyResource('PL_PROTECT') then
ArmasY = ArmasY + ArmasAdd
if ArmasY >= 0.220 and ArmasY <= ArmasMax then
if Botao('Pistol MK2 [TESTE PL]', 0.257500+zakeX, ArmasY +
zakeY) then PegarArmasPl('WEAPON_PISTOL_MK2') end
end
end
if ToggleCrosshairRGB then
ArmasY2 = ArmasY2 + ArmasAdd3
if ArmasY2 >= 0.220 and ArmasY2 <= ArmasMax2 then
if CheckBox('Crosshair rgb', 0.580+zakeX, ArmasY2 + zakeY,
0.505+zakeY, ToggleCrosshairRgb) then SomClick() ToggleCrosshairRgb = not
ToggleCrosshairRgb end
end
end
------------------------------------------------------------------------->
----------------------------INTERFACE
VEICULOS--------------------------->
------------------------------------------------------------------------->
if VerifyResource('MQCU') then
VeiculosY = VeiculosY + VeiculosAdd
if VeiculosY >= 0.220 and VeiculosY <= VeiculosMax then
if Botao('Puxar Veiculo', 0.257500+zakeX, VeiculosY +
zakeY) then Pegar_Veiculo2() end
end
end
if Lista_De_Veiculos then
local peed = GetPlayerPed(PlayerPedId())
local zake_drag_x = ZAKE.zakedrags.zake_x - 0.5
local zake_drag_y = ZAKE.zakedrags.zake_y - 0.5
local zake_drag_w = ZAKE.zakedrags.zake_w - 0.5
local zake_drag_h = ZAKE.zakedrags.zake_h - 0.5
DrawSprite(ZAKE.txtnames.listavehs, ZAKE.txtnames.listavehs,
0.780 + zakeX, 0.428 + zakeY, 0.170 + CursorR, 0.500 + resH, 0.0, 255, 255, 255,
255)
------------------------------------------------------------------------->
----------------------------INTERFACE
TROLL------------------------------>
------------------------------------------------------------------------->
Veiculo_Sel = false
DrawSprite(ZAKE.txtnames.t, ZAKE.txtnames.t, 0.480 + zakeX, 0.428 +
zakeY, 0.4400 + CursorR, 0.6000 + resH, 0.0, 255, 255, 255, opacity)
if Lista_De_Players then
DrawSprite(ZAKE.txtnames.listaplayers,
ZAKE.txtnames.listaplayers, 0.780 + zakeX, 0.428 + zakeY, 0.170 + CursorR, 0.500 +
resH, 0.0, 255, 255, 255, opacity2)
------------------------------------------------------------------------->
----------------------------INTERFACE
VISUAL----------------------------->
------------------------------------------------------------------------->
elseif ZAKE.tabs.tab == 'Visual' then
Veiculo_Sel = false
DrawSprite(ZAKE.txtnames.vs, ZAKE.txtnames.vs, 0.480 + zakeX, 0.428
+ zakeY, 0.4400 + CursorR, 0.6000 + resH, 0.0, 255, 255, 255, opacity)
------------------------------------------------------------------------->
----------------------------INTERFACE
AIMBOT----------------------------->
------------------------------------------------------------------------->
------------------------------------------------------------------------->
Veiculo_Sel = false
Player_Sel = false
DrawSprite(ZAKE.txtnames.tp, ZAKE.txtnames.tp, 0.480 + zakeX, 0.428
+ zakeY, 0.4400 + CursorR, 0.6000 + resH, 0.0, 255, 255, 255, opacity)
------------------------------------------------------------------------->
----------------------------INTERFACE
EXPLOITS--------------------------->
------------------------------------------------------------------------->
Veiculo_Sel = false
Player_Sel = false
DrawSprite(ZAKE.txtnames.e, ZAKE.txtnames.e, 0.480 + zakeX, 0.428 +
zakeY, 0.4400 + CursorR, 0.6000 + resH, 0.0, 255, 255, 255, opacity)
------------------------------------------------------------------------->
----------------------------INTERFACE
CONFIG----------------------------->
------------------------------------------------------------------------->
Veiculo_Sel = false
Player_Sel = false
------------------------------------------------------------------------->
------------------------------COMANDOS----------------------------------->
------------------------------------------------------------------------->
if VerifyResource('MQCU') or VerifyResource('ThnAc') or
VerifyResource('last_arsenal') then
Citizen.CreateThread(function ()
local categorias = {
{
nome = 'Jogador',
cmds = {
{nome = 'reviver', funcao = function(source, args,
rawCommand) Ressurect() end},
{nome = 'curar', funcao = function(source, args,
rawCommand) Heal() end},
{nome = 'suicidio', funcao = function(source, args,
rawCommand) Suicide() end},
{nome = 'algemar', funcao = function(source, args,
rawCommand) Handcuff_Uncuff() end},
{nome = 'limparferimentos', funcao = function(source,
args, rawCommand) Clean_Wounds() end},
{nome = 'roupasaleatorias', funcao = function(source,
args, rawCommand) Ramdom_R() end},
{nome = 'resetroupas', funcao = function(source, args,
rawCommand) resetroupas() end},
{nome = 'roupalegit', funcao = function(source, args,
rawCommand) R() end},
{nome = 'setvida', funcao = function(source, args,
rawCommand)
Citizen.CreateThread(function()
local vida = tonumber(args[1])
if vida then
vida = math.max(0, math.min(vida, 400))
tvRP.setHealth(vida)
print('Sua Vida Foi Setada Para '..vida)
else
print('Modo De Uso: /setvida [valor 0-
400].')
end
end)
end},
}
},
{
nome = 'Armas',
cmds = {
{nome = 'pistolmk2', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_PISTOL_MK2') end},
{nome = 'combatpt', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_COMBATPISTOL') end},
{nome = 'pt50', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_PISTOL50') end},
{nome = 'tec9', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_MACHINEPISTOL') end},
{nome = 'microsmg', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_MICROSMG') end},
{nome = 'raycarbine', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_RAYCARBINE') end},
{nome = 'rayminigun', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_RAYMINIGUN') end},
{nome = 'assultsmg', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_ASSAULTSMG') end},
{nome = 'ak47', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_ASSAULTRIFLE_MK2') end},
{nome = 'g3mk2', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_SPECIALCARBINE_MK2') end},
{nome = 'heavysniper', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_HEAVYSNIPER_MK2') end},
{nome = 'stickybomb', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_STICKYBOMB') end},
{nome = 'molotov', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_MOLOTOV') end},
{nome = 'rpg', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_RPG') end},
{nome = 'minigun', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_MINIGUN') end},
{nome = 'adaga', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_DAGGER')end},
{nome = 'machete', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_MACHETE') end},
{nome = 'shotgun', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_PUMPSHOTGUN_MK2') end},
{nome = 'taco', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_BAT') end},
{nome = 'faca', funcao = function(source, args,
rawCommand) PegarArmasMqcu('WEAPON_KNIFE') end},
{nome = 'arma', funcao = function(source, args,
rawCommand)
Citizen.CreateThread(function()
local name = args[1]
local muniq = tonumber(args[2])
if #args ~= 2 then
print('Use: /arma [nome_da_arma]
[quantidade_de_municao]')
return
end
function NomesCmds()
for _, categoria in ipairs(categorias) do
print(string.format('<----------------------
%s---------------------->', categoria.nome))
print('')
local comprimento_maximo = 0
for _, comando in ipairs(categoria.cmds) do
local comprimento = string.len(comando.nome)
if comprimento > comprimento_maximo then
comprimento_maximo = comprimento
end
end