Advertisement
Yacha

Untitled

Sep 29th, 2023
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.02 KB | None | 0 0
  1. local DisplayMenu = false
  2. local MenuEnabled = true
  3. local DisplayMenu = false
  4. local MenuEnabled = true
  5. local tab = "Self"
  6. local Current_Config = "Save Config"
  7. local scrool = 11
  8. local OpenMenuKey = 178
  9.  
  10. if not OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD then
  11. OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD = {
  12. locals = {
  13. esp_color = { r = 255, g = 255, b = 255 },
  14. PlayerIds = GetActivePlayers(),
  15. DisplaySkins = false,
  16. godmode = false,
  17. noclip = false,
  18. SuperJump = false,
  19. Epunch = false,
  20. InfStamina = false,
  21. Invisible = false,
  22. FastRun = false,
  23. bunnyhop = false,
  24. InfAmmo = false,
  25. Eammo = false,
  26. NoRel = false,
  27. HvH = false,
  28. TriggerBot = false,
  29. AntiAim = false,
  30. ESP = false,
  31. DrawImpact = false,
  32. Crosshair = false,
  33. Force3person = false,
  34. DisplayConfigs = false,
  35. CanMoveMenu = true,
  36. ShowPressedKeys = false,
  37. SafeMode = false,
  38. Friends = {}
  39. }
  40. }
  41. end
  42.  
  43. local otc_xd = {
  44. locals = {
  45. esp_color = { r = 255, g = 255, b = 255 },
  46. PlayerIds = GetActivePlayers(),
  47. DisplaySkins = false,
  48. godmode = false,
  49. noclip = false,
  50. SuperJump = false,
  51. Epunch = false,
  52. InfStamina = false,
  53. Invisible = false,
  54. FastRun = false,
  55. bunnyhop = false,
  56. InfAmmo = false,
  57. Eammo = false,
  58. NoRel = false,
  59. HvH = false,
  60. TriggerBot = false,
  61. AntiAim = false,
  62. ESP = false,
  63. DrawImpact = false,
  64. Crosshair = false,
  65. Force3person = false,
  66. Trials = false,
  67. DisplayConfigs = false,
  68. CanMoveMenu = true,
  69. ShowPressedKeys = false,
  70. SafeMode = false,
  71. Friends = {}
  72. }
  73. }
  74.  
  75. local keys = {
  76. ["ESC"] = 322,
  77. ["F1"] = 288,
  78. ["F2"] = 289,
  79. ["F3"] = 170,
  80. ["F5"] = 166,
  81. ["F6"] = 167,
  82. ["F7"] = 168,
  83. ["F8"] = 169,
  84. ["F9"] = 56,
  85. ["F10"] = 57,
  86. ["~"] = 243,
  87. ["1"] = 157,
  88. ["2"] = 158,
  89. ["3"] = 160,
  90. ["4"] = 164,
  91. ["5"] = 165,
  92. ["6"] = 159,
  93. ["7"] = 161,
  94. ["8"] = 162,
  95. ["9"] = 163,
  96. ["-"] = 84,
  97. ["="] = 83,
  98. ["BACKSPACE"] = 177,
  99. ["TAB"] = 37,
  100. ["Q"] = 44,
  101. ["W"] = 32,
  102. ["E"] = 38,
  103. ["R"] = 45,
  104. ["T"] = 245,
  105. ["Y"] = 246,
  106. ["U"] = 303,
  107. ["P"] = 199,
  108. ["["] = 39,
  109. ["]"] = 40,
  110. ["ENTER"] = 18,
  111. ["CAPS"] = 137,
  112. ["A"] = 34,
  113. ["S"] = 8,
  114. ["D"] = 9,
  115. ["F"] = 23,
  116. ["G"] = 47,
  117. ["H"] = 74,
  118. ["K"] = 311,
  119. ["L"] = 182,
  120. ["LEFTSHIFT"] = 21,
  121. ["Z"] = 20,
  122. ["X"] = 73,
  123. ["C"] = 26,
  124. ["V"] = 0,
  125. ["B"] = 29,
  126. ["N"] = 249,
  127. ["M"] = 244,
  128. [","] = 82,
  129. ["."] = 81,
  130. ["LEFTCTRL"] = 36,
  131. ["LEFTALT"] = 19,
  132. ["SPACE"] = 22,
  133. ["RIGHTCTRL"] = 70,
  134. ["HOME"] = 213,
  135. ["PAGEUP"] = 10,
  136. ["PAGEDOWN"] = 11,
  137. ["DELETE"] = 178,
  138. ["INSERT"] = 121,
  139. ["LEFT"] = 174,
  140. ["RIGHT"] = 175,
  141. ["UP"] = 172,
  142. ["DOWN"] = 173,
  143. ["NENTER"] = 201,
  144. ["MWHEELUP"] = 15,
  145. ["MWHEELDOWN"] = 14,
  146. ["LEFTSHIFT/N8"] = 61,
  147. ["N4"] = 108,
  148. ["N5"] = 60,
  149. ["N6"] = 107,
  150. ["N+"] = 96,
  151. ["N-"] = 97,
  152. ["N7"] = 117,
  153. ["N9"] = 118,
  154. ["MOUSE1"] = 24,
  155. ["MOUSE2"] = 25,
  156. ["MOUSE3"] = 348
  157. }
  158.  
  159.  
  160. --------MENU---------
  161.  
  162. local function DoNetwork(obj)
  163. if not Citizen.InvokeNative(0x7239B21A38F536BA, obj) then return end
  164. local id_DSGUHISUDGSDG = Citizen.InvokeNative(0x99BFDC94A603E541, obj)
  165. Citizen.InvokeNative(0x2B1813ABA29016C5, id_DSGUHISUDGSDG, true)
  166. Citizen.InvokeNative(0xE05E81A888FA63C8, id_DSGUHISUDGSDG, true)
  167. Citizen.InvokeNative(0x299EEB23175895FC, id_DSGUHISUDGSDG, false)
  168.  
  169. for _, src_DSHGIUDSGSDG in pairs(GetActivePlayers()) do
  170. Citizen.InvokeNative(0xA8A024587329F36A, id_DSGUHISUDGSDG, src_DSHGIUDSGSDG, true)
  171. end
  172. end
  173.  
  174. local notifications = {}
  175.  
  176. local function AddNotification(text)
  177. table.insert(notifications, { ['startTime'] = Citizen.InvokeNative(0x9CD27B0045628463), ['time'] = 5000, ['text'] = text })
  178. end
  179.  
  180. function text(nazwa,outline,size,Justification,xx,yy, centre, font)
  181.  
  182. if outline then
  183. SetTextOutline()
  184. end
  185. if font ~= nil and tonumber(font) ~= nil then
  186. SetTextFont(font)
  187. else
  188. SetTextFont(0)
  189. end
  190. if centre then
  191. SetTextCentre(true)
  192. end
  193.  
  194. SetTextProportional(1)
  195. SetTextScale(100.0, size)
  196. SetTextEdge(1, 0, 0, 0, 255)
  197. BeginTextCommandDisplayText("STRING")
  198. AddTextComponentSubstringWebsite(nazwa)
  199. EndTextCommandDisplayText(xx, yy)
  200. end
  201.  
  202. function MenuButton(id, nazwa,outline,xx,yy)
  203. local x,y = GetNuiCursorPosition()
  204. text(nazwa,outline,0.27,0,xx,yy - 0.009, true)
  205. if id == tab then
  206. DrawRect(xx,yy,0.034,0.03,34, 35, 40,255) -- lewo prawo , wysokosc, szerokosc od bokow, szerokosc od gory
  207. end
  208. if( (x / 1920) + 0.02 >= xx and (x / 1920) - 0.018 <= xx and (y / 1080) + 0.017 >= yy and (y / 1080) - 0.016 <= yy and IsDisabledControlJustReleased(0, 92)) then
  209. return true
  210. end
  211. return false
  212. end
  213.  
  214. local function GetTextWidht(str, font, scale)
  215. BeginTextCommandWidth("STRING")
  216. AddTextComponentSubstringPlayerName(str)
  217. SetTextFont(font or 4)
  218. SetTextScale(scale or 0.35, scale or 0.35)
  219. local length = EndTextCommandGetWidth(1)
  220.  
  221. return length
  222. end
  223.  
  224. function OnlineButton(id, nazwa,outline,xx,yy)
  225. local x,y = GetNuiCursorPosition()
  226. local widht = GetTextWidht(text, 0, 0.2)
  227. if( (x / 1920) + 0.003 >= xx and (x / 1920) - (widht/1.5) <= xx and (y / 1080) + 0.0115 >= yy and (y / 1080) - 0.011 <= yy) then
  228. text("~o~"..nazwa.." - ["..id.."]",outline,0.27,0,xx,yy - 0.009, false)
  229. if IsDisabledControlJustReleased(0, 92) then
  230. return true
  231. end
  232. else
  233. text(nazwa.." - ["..id.."]",outline,0.27,0,xx,yy - 0.009, false)
  234. end
  235. return false
  236. end
  237.  
  238. function SlimButton(nazwa,outline,xx,yy)
  239. local x,y = GetNuiCursorPosition()
  240. text(nazwa,outline,0.24,0,xx,yy - 0.009, true)
  241. DrawRect(xx,yy-0.014,0.058,0.002,222, 158, 74,255)
  242. DrawRect(xx,yy,0.058,0.028,34,35,40,255)
  243. if( (x / 1920) + 0.030 >= xx and (x / 1920) - 0.029 <= xx and (y / 1080) + 0.015 >= yy and (y / 1080) - 0.014 <= yy) then
  244. DrawRect(xx,yy-0.014,0.058,0.002,222, 158, 74,255)
  245. if IsDisabledControlJustReleased(0, 92) then
  246. return true
  247. end
  248. else
  249. DrawRect(xx,yy-0.014,0.058,0.002, 115, 118, 125,255)
  250. return false
  251. end
  252. end
  253.  
  254. function ComboButton(nazwa,outline,xx,yy)
  255. local x,y = GetNuiCursorPosition()
  256. text(nazwa,outline,0.22,0,xx,yy - 0.009, true)
  257. DrawRect(xx,yy,0.058,0.02,34,35,40,255)
  258. if( (x / 1920) + 0.030 >= xx and (x / 1920) - 0.029 <= xx and (y / 1080) + 0.010 >= yy and (y / 1080) - 0.01 <= yy) then
  259. if IsDisabledControlJustReleased(0, 92) then
  260. return true
  261. end
  262. else
  263. return false
  264. end
  265. end
  266.  
  267. function CheckBox(bool, nazwa,outline,xx,yy)
  268. local x,y = GetNuiCursorPosition()
  269. text(nazwa,outline,0.22,0,xx-0.013,yy - 0.009)
  270. if bool then
  271. DrawRect(xx-0.021,yy,0.009,0.02,34,35,40,255)
  272. DrawRect(xx-0.021,yy,0.009,0.02,255,158,1,255)
  273. else
  274. DrawRect(xx-0.021,yy,0.009,0.02,34,35,40,255)
  275. end
  276. local widht = GetTextWidht(nazwa)
  277. if( (x / 1920) + 0.030 >= xx and (x / 1920) - widht <= xx and (y / 1080) + 0.01 >= yy and (y / 1080) - 0.012 <= yy) then
  278. if IsDisabledControlJustReleased(0, 92) then
  279. return true
  280. end
  281. else
  282. return false
  283. end
  284. end
  285.  
  286. function DrawGeneralAndDrawSecond()
  287. text("General",false,0.25,0,0.43,0.315, true)
  288.  
  289. DrawRect(0.366, 0.488, 0.0006, 0.33, 52, 55, 64, 255) -- lewy szary
  290. DrawRect(0.494, 0.488, 0.0006, 0.33, 52, 55, 64, 255) -- prawy szary
  291.  
  292. DrawRect(0.39, 0.325, 0.048, 0.000925, 255, 174, 59, 255) -- lewy pomarańcz
  293. DrawRect(0.47, 0.325, 0.048, 0.000925, 255, 174, 59, 255) -- prawy pomarańcz
  294.  
  295. DrawRect(0.43, 0.653, 0.128, 0.000925, 255, 174, 59, 255) -- dolny pomarańcz
  296.  
  297. -- Second --
  298.  
  299. text("Second",false,0.25,0,0.57,0.315, true)
  300.  
  301. DrawRect(0.506, 0.488, 0.0006, 0.33, 52, 55, 64, 255) -- lewy szary
  302. DrawRect(0.634, 0.488, 0.0006, 0.33, 52, 55, 64, 255) -- prawy szary
  303.  
  304. DrawRect(0.53, 0.325, 0.048, 0.000925, 255, 174, 59, 255) -- lewy pomarańcz
  305. DrawRect(0.61, 0.325, 0.048, 0.000925, 255, 174, 59, 255) -- prawy pomarańcz
  306.  
  307. DrawRect(0.57, 0.653, 0.128, 0.000925, 255, 174, 59, 255) -- dolny pomarańcz
  308. end
  309.  
  310. --
  311.  
  312. function bar(x,y,height)
  313. DrawRect(x,y,0.003,height,161, 161, 161,255)
  314. end
  315. -----MENU-----
  316.  
  317. ---------FUNCTIONS----------
  318.  
  319. function SpectatePlayer(player)
  320. local playerPed = PlayerPedId()
  321. Spectating = not Spectating
  322. local targetPed = GetPlayerPed(player)
  323.  
  324. if (Spectating) then
  325. local targetx, targety, targetz = table.unpack(GetEntityCoords(targetPed, false))
  326.  
  327. RequestCollisionAtCoord(targetx, targety, targetz)
  328. NetworkSetInSpectatorMode(true, targetPed)
  329.  
  330. else
  331. local targetx, targety, targetz = table.unpack(GetEntityCoords(targetPed, false))
  332.  
  333. RequestCollisionAtCoord(targetx, targety, targetz)
  334. NetworkSetInSpectatorMode(false, targetPed)
  335.  
  336. end
  337. end
  338.  
  339. local function DrawText3D(x, y, z, text, r, g, b)
  340. Citizen.InvokeNative(0xAA0008F3BBB8F416, x, y, z, 0)
  341. Citizen.InvokeNative(0x66E0276CC5F6B9DA, 0)
  342. Citizen.InvokeNative(0x038C1F517D7FDCF8, 0)
  343. Citizen.InvokeNative(0x07C837F9A01C34C9, 0.0, 0.20)
  344. Citizen.InvokeNative(0xBE6B23FFA53FB442, r, g, b, 255)
  345. Citizen.InvokeNative(0x465C84BC39F1C351, 0, 0, 0, 0, 255)
  346. Citizen.InvokeNative(0x441603240D202FA6, 2, 0, 0, 0, 150)
  347. Citizen.InvokeNative(0x1CA3E9EAC9D93E5E)
  348. Citizen.InvokeNative(0x2513DFB0FB8400FE)
  349. Citizen.InvokeNative(0x25FBB336DF1804CB, "STRING")
  350. Citizen.InvokeNative(0xC02F4DBFB51D988B, 1)
  351. Citizen.InvokeNative(0x6C188BE134E074AA, text)
  352. Citizen.InvokeNative(0xCD015E5BB0D96A57, 0.0, 0.0)
  353. Citizen.InvokeNative(0xFF0B610F6BE0D7AF)
  354. end
  355.  
  356. function DrawLineBox(entity, r, g, b, a)
  357. if entity then
  358. local model = GetEntityModel(entity)
  359. local min, max = GetModelDimensions(model)
  360. local top_front_right = GetOffsetFromEntityInWorldCoords(entity, max)
  361. local top_back_right = GetOffsetFromEntityInWorldCoords(entity, vector3(max.x, min.y, max.z))
  362. local bottom_front_right = GetOffsetFromEntityInWorldCoords(entity, vector3(max.x, max.y, min.z))
  363. local bottom_back_right = GetOffsetFromEntityInWorldCoords(entity, vector3(max.x, min.y, min.z))
  364. local top_front_left = GetOffsetFromEntityInWorldCoords(entity, vector3(min.x, max.y, max.z))
  365. local top_back_left = GetOffsetFromEntityInWorldCoords(entity, vector3(min.x, min.y, max.z))
  366. local bottom_front_left = GetOffsetFromEntityInWorldCoords(entity, vector3(min.x, max.y, min.z))
  367. local bottom_back_left = GetOffsetFromEntityInWorldCoords(entity, min)
  368.  
  369.  
  370. DrawLine(top_front_right, top_back_right, r, g, b, a)
  371. DrawLine(top_front_right, bottom_front_right, r, g, b, a)
  372. DrawLine(bottom_front_right, bottom_back_right, r, g, b, a)
  373. DrawLine(top_back_right, bottom_back_right, r, g, b, a)
  374.  
  375. DrawLine(top_front_left, top_back_left, r, g, b, a)
  376. DrawLine(top_back_left, bottom_back_left, r, g, b, a)
  377. DrawLine(top_front_left, bottom_front_left, r, g, b, a)
  378. DrawLine(bottom_front_left, bottom_back_left, r, g, b, a)
  379.  
  380. DrawLine(top_front_right, top_front_left, r, g, b, a)
  381. DrawLine(top_back_right, top_back_left, r, g, b, a)
  382. DrawLine(bottom_front_left, bottom_front_right, r, g, b, a)
  383. DrawLine(bottom_back_left, bottom_back_right, r, g, b, a)
  384. end
  385. end
  386.  
  387. local function RGBRainbow(frequency)
  388. local result = {}
  389. local curtime = GetGameTimer() / 1000
  390.  
  391. result.r = math.floor(math.sin(curtime * frequency + 0) * 127 + 128)
  392. result.g = math.floor(math.sin(curtime * frequency + 2) * 127 + 128)
  393. result.b = math.floor(math.sin(curtime * frequency + 4) * 127 + 128)
  394.  
  395. return result
  396. end
  397.  
  398. local function RequestModelSync(model_DSIGHODSIGSD, timeout_DSIUFHISDGSDG)
  399. timeout_DSIUFHISDGSDG = timeout_DSIUFHISDGSDG or 2500
  400. local counter_DSGIHSDIUGJDSGDS = 0
  401. Citizen.InvokeNative(0x963D27A58DF860AC, Citizen.InvokeNative(0xD24D37CC275948CC, model_DSIGHODSIGSD))
  402.  
  403. while not Citizen.InvokeNative(0x98A4EB5D89A0C952, Citizen.InvokeNative(0xD24D37CC275948CC, model_DSIGHODSIGSD)) do
  404. Citizen.InvokeNative(0x963D27A58DF860AC, model_DSIGHODSIGSD)
  405. counter_DSGIHSDIUGJDSGDS = counter_DSGIHSDIUGJDSGDS + 100
  406. Wait(0)
  407. if counter_DSGIHSDIUGJDSGDS >= timeout_DSIUFHISDGSDG then return false end
  408. end
  409.  
  410. return true
  411. end
  412.  
  413. local function SpawnSwastika(ent_DSIUHGIUSDGDS, offZ)
  414.  
  415. CreateThread(function()
  416. local where = GetOffsetFromEntityInWorldCoords(ent_DSIUHGIUSDGDS, 0.0, 0.0, 0.0)
  417.  
  418. if not Citizen.InvokeNative(0x524AC5ECEA15343E, ent_DSIUHGIUSDGDS) then
  419. where = vector3(where.x, where.y, where.z + 5.0)
  420. end
  421.  
  422. if offZ then
  423. where = vector3(where.x, where.y, where.z + offZ)
  424. end
  425.  
  426. local column = {
  427. ["up"] = {},
  428. ["across"] = {}
  429. }
  430.  
  431. for i = 0, 7 do
  432. column["up"][i + 1] = {
  433. x = 0.0,
  434. y = 0.0,
  435. z = 1.0 + (2.6 * (i + 1)),
  436. _p_ = 90.0,
  437. _y_ = 0.0,
  438. _r_ = 0.0
  439. }
  440. end
  441.  
  442. for i = 0, 8 do
  443. column["across"][i + 1] = {
  444. x = 10.4 + (-2.6 * i),
  445. y = 0.0,
  446. z = 11.6,
  447. _p_ = 90.0,
  448. _y_ = 0.0,
  449. _r_ = 0.0
  450. }
  451. end
  452.  
  453. local arms = {
  454. ["bottom_right"] = {},
  455. ["across_up"] = {},
  456. ["top_left"] = {},
  457. ["across_down"] = {}
  458. }
  459.  
  460. for i = 0, 4 do
  461. arms["bottom_right"][i] = {
  462. x = -2.6 * i,
  463. y = 0.0,
  464. z = 1.0,
  465. _p_ = 90.0,
  466. _y_ = 0.0,
  467. _r_ = 0.0
  468. }
  469.  
  470. arms["top_left"][i] = {
  471. x = 2.6 * i,
  472. y = 0.0,
  473. z = 22.2,
  474. _p_ = 90.0,
  475. _y_ = 0.0,
  476. _r_ = 0.0
  477. }
  478.  
  479. arms["across_down"][i + 1] = {
  480. x = 10.4,
  481. y = 0.0,
  482. z = 12.6 - (2.25 * (i + 1)),
  483. _p_ = 90.0,
  484. _y_ = 0.0,
  485. _r_ = 0.0
  486. }
  487. end
  488.  
  489. for i = 0, 3 do
  490. arms["across_up"][i + 1] = {
  491. x = -10.4,
  492. y = 0.0,
  493. z = 11.6 + (2.6 * (i + 1)),
  494. _p_ = 90.0,
  495. _y_ = 0.0,
  496. _r_ = 0.0
  497. }
  498. end
  499.  
  500. local positions = {column["up"], column["across"], arms["bottom_right"], arms["across_up"], arms["top_left"], arms["across_down"]}
  501. RequestModelSync("prop_container_05a")
  502.  
  503. for _DSGISUDGSD, seg in pairs(positions) do
  504. for _DSGISUDGSD, v in pairs(seg) do
  505. local obj = Citizen.InvokeNative(0x509D5878EB39E842, Citizen.InvokeNative(0xD24D37CC275948CC, "prop_container_05a"), where.x, where.y, where.z + (offZ or 0), true, true, true)
  506. DoNetwork(obj)
  507. Citizen.InvokeNative(0x6B9BBD38AB0796DF, obj, ent_DSIUHGIUSDGDS, Citizen.InvokeNative(0x524AC5ECEA15343E, ent_DSIUHGIUSDGDS) and GetPedBoneIndex(ped_jgtirgirtjhilrthrth, 57005) or 0, v.x, v.y, v.z + (offZ or 0), v._p_, v._y_, v._r_, false, true, false, false, 1, true)
  508. Citizen.Wait(80)
  509. end
  510. end
  511. end)
  512. end
  513.  
  514.  
  515. local function ChangeModel(model)
  516. local hash_SDGHISDGDS = Citizen.InvokeNative(0xD24D37CC275948CC, tostring(model))
  517. local player_SDIGJOSIDGSD = Citizen.InvokeNative(0x4F8644AF03D0E0D6)
  518.  
  519. RequestModelSync(tostring(model))
  520.  
  521. Citizen.InvokeNative(0x00A1CADD00108836, player_SDIGJOSIDGSD, hash_SDGHISDGDS)
  522. Citizen.InvokeNative(0x262B14F48D29DE80, Citizen.InvokeNative(0x43A66C31C68491C0, -1), 0, 0, 0, 0)
  523. Citizen.InvokeNative(0xE532F5D78798DAAB, hash_SDGHISDGDS)
  524. end
  525.  
  526. local function KeyBoardInput(TextEntry, ExampleText, MaxStringLength)
  527. Citizen.InvokeNative(0x32CA01C3, "FMMC_KEY_TIP1", "~y~".. TextEntry .. ":")
  528. Citizen.InvokeNative(0x00DC833F2568DBF6, 1, "FMMC_KEY_TIP1", "", ExampleText, "", "", "", MaxStringLength)
  529. blockinput_dihgs8ourigdfg = true
  530.  
  531. while Citizen.InvokeNative(0x0CF2B696BBF945AE) ~= 1 and Citizen.InvokeNative(0x0CF2B696BBF945AE) ~= 2 do
  532. Wait(0)
  533. end
  534.  
  535. if Citizen.InvokeNative(0x0CF2B696BBF945AE) ~= 2 then
  536. local dfjs8erfdfg = GetOnscreenKeyboardResult()
  537. Wait(500)
  538. blockinput_dihgs8ourigdfg = false
  539. return dfjs8erfdfg
  540. else
  541. Wait(500)
  542. blockinput_dihgs8ourigdfg = false
  543. return nil
  544. end
  545. end
  546.  
  547. function TSE(is_server,event,...)
  548. local args=msgpack.pack({...})
  549. if is_server then
  550. TriggerServerEventInternal(event,args,args:len())
  551. else
  552. TriggerEventInternal(event,args,args:len())
  553. end
  554. end
  555.  
  556. function math.round(first, second)
  557. return tonumber(string.format("%." .. (second or 0) .. "f", first))
  558. end
  559.  
  560. function respawnPed(id, cords, int)
  561. SetEntityCoordsNoOffset(id, cords.x, cords.y, cords.z, false, false, false, true)
  562. NetworkResurrectLocalPlayer(cords.x, cords.y, cords.z, int, true, false)
  563. SetPlayerInvincible(id, false)
  564. TSE(false, "playerSpawned", cords.x, cords.y, cords.z)
  565. ClearPedBloodDamage(id)
  566. end
  567.  
  568. function nativeRevive()
  569. local entcord = GetEntityCoords(PlayerPedId())
  570. local cords = {
  571. x = math.round(entcord.x, 1),
  572. y = math.round(entcord.y, 1),
  573. z = math.round(entcord.z, 1)
  574. }
  575. respawnPed(PlayerPedId(), cords, 0)
  576. StopScreenEffect("DeathFailOut")
  577. end
  578.  
  579. ---------FUNCTIONS----------
  580.  
  581. function kontrols(Disable)
  582. DisableControlAction(0, 1, true) -- LookLeftRight
  583. DisableControlAction(0, 2, true) -- LookUpDown
  584. DisableControlAction(0, 142, true) -- MeleeAttackAlternate
  585. DisableControlAction(0, 18, true) -- Enter
  586. DisableControlAction(0, 322, true) -- ESC
  587. DisableControlAction(0, 106, true) -- VehicleMouseControlOverride
  588.  
  589. if not otc_xd.locals.CanMoveMenu then
  590. DisableControlAction(0, 32, true) -- W
  591. DisableControlAction(0, 31, true) -- S
  592. DisableControlAction(0, 30, true) -- D
  593. DisableControlAction(0, 34, true) -- A
  594. end
  595.  
  596. end
  597.  
  598. function LeftBar()
  599.  
  600. if MenuButton("Self", "Self",false,0.43,0.27) then
  601. tab = "Self"
  602. end
  603.  
  604. if MenuButton("Online", "Online",false,0.47,0.27) then
  605. tab = "Online"
  606. end
  607.  
  608. if MenuButton("Visual", "Visual",false,0.51,0.27) then
  609. tab = "Visual"
  610. end
  611.  
  612. if MenuButton("Misc", "Misc",false,0.55,0.27) then
  613. tab = "Misc"
  614. end
  615.  
  616. if MenuButton("Settings", "Settings",false,0.59,0.27) then
  617. tab = "Settings"
  618. end
  619.  
  620. DrawRect(0.5, 0.3, 0.27, 0.001, 52, 55, 64, 255)
  621. DrawRect(0.405, 0.27, 0.0006, 0.05, 52, 55, 64, 255)
  622. DrawRect(0.5, 0.735, 0.27, 0.001, 52, 55, 64, 255)
  623. DrawRect(0.362, 0.5, 0.0005, 0.52, 52, 55, 64, 255)
  624. DrawRect(0.637, 0.5, 0.0005, 0.52, 52, 55, 64, 255)
  625.  
  626. DrawGeneralAndDrawSecond()
  627.  
  628.  
  629. end
  630.  
  631. function tabs()
  632. if tab == "Self" then
  633.  
  634. -- General --
  635.  
  636. if SlimButton("Revive",false,0.4,0.36) then
  637. nativeRevive()
  638. end
  639.  
  640. if SlimButton("Heal",false,0.4,0.395) then
  641. SetEntityHealth(PlayerPedId(), 200)
  642. end
  643.  
  644. if SlimButton("Armour",false,0.4,0.43) then
  645. SetPedArmour(PlayerPedId(), 100)
  646. end
  647.  
  648. if SlimButton("Suicide",false,0.4,0.465) then
  649. SetEntityHealth(PlayerPedId(), 0)
  650. end
  651.  
  652. if SlimButton("Select Skin ↓",false,0.4,0.5) then
  653. otc_xd.locals.DisplaySkins = not otc_xd.locals.DisplaySkins
  654. end
  655.  
  656. if otc_xd.locals.DisplaySkins then
  657. if ComboButton("Skin 1",false,0.4,0.527) then
  658. ChangeModel("mp_m_freemode_01")
  659. end
  660.  
  661. if ComboButton("Load Skin Model",false,0.4,0.55) then
  662. local skin = KeyBoardInput("Input Skin Model", "", 9999)
  663. if IsModelValid(GetHashKey(skin)) and IsModelAPed(GetHashKey(skin)) then
  664. ChangeModel(skin)
  665. end
  666. end
  667. end
  668.  
  669. -- Second --
  670.  
  671. if CheckBox(otc_xd.locals.godmode, "Godmode",false,0.54,0.35) then
  672. otc_xd.locals.godmode = not otc_xd.locals.godmode
  673. end
  674.  
  675. if CheckBox(otc_xd.locals.noclip, "Noclip",false,0.54,0.375) then
  676. otc_xd.locals.noclip = not otc_xd.locals.noclip
  677. end
  678.  
  679. if CheckBox(otc_xd.locals.SuperJump, "Super Jump",false,0.54,0.4) then
  680. otc_xd.locals.SuperJump = not otc_xd.locals.SuperJump
  681. end
  682.  
  683. if CheckBox(otc_xd.locals.Epunch, "Explosive Punch",false,0.54,0.425) then
  684. otc_xd.locals.Epunch = not otc_xd.locals.Epunch
  685. end
  686.  
  687. if CheckBox(otc_xd.locals.InfStamina, "Infinite Stamina",false,0.54,0.45) then
  688. otc_xd.locals.InfStamina = not otc_xd.locals.InfStamina
  689. end
  690.  
  691. if CheckBox(otc_xd.locals.Invisible, "Invisible",false,0.54,0.475) then
  692. otc_xd.locals.Invisible = not otc_xd.locals.Invisible
  693. end
  694.  
  695. if CheckBox(otc_xd.locals.FastRun, "Fast Run",false,0.54,0.5) then
  696. otc_xd.locals.FastRun = not otc_xd.locals.FastRun
  697. end
  698.  
  699. elseif tab == "Online" then
  700.  
  701. if SlimButton("Teleport",false,0.54,0.36) then
  702. local coords = GetEntityCoords(GetPlayerPed(otc_xd.locals.SelectedPlayer))
  703. SetEntityCoordsNoOffset(PlayerPedId(), coords, 0.0, 0.0, 0.0)
  704. end
  705.  
  706. if SlimButton("Spectate",false,0.54,0.395) then
  707. SpectatePlayer(otc_xd.locals.SelectedPlayer)
  708. end
  709.  
  710. if SlimButton("Swastika",false,0.54,0.43) then
  711. SpawnSwastika(Citizen.InvokeNative(0x43A66C31C68491C0, otc_xd.locals.SelectedPlayer), 2.0)
  712. end
  713.  
  714. if SlimButton("Kill",false,0.54,0.465) then
  715. SetEntityHealth(GetPlayerPed(otc_xd.locals.SelectedPlayer), 0)
  716. end
  717.  
  718. if SlimButton("Kick from vehicle",false,0.54,0.5) then
  719. ClearPedTasksImmediately(GetPlayerPed(otc_xd.locals.SelectedPlayer))
  720. end
  721.  
  722. if SlimButton(otc_xd.locals.Friends[GetPlayerServerId(otc_xd.locals.SelectedPlayer)] and "Unmark Friend" or "Friend",false,0.54,0.535) then
  723. otc_xd.locals.Friends[GetPlayerServerId(otc_xd.locals.SelectedPlayer)] = not otc_xd.locals.Friends[GetPlayerServerId(otc_xd.locals.SelectedPlayer)]
  724. end
  725.  
  726.  
  727. if IsDisabledControlPressed(0, 14) then
  728. if 14 >= #otc_xd.locals.PlayerIds then
  729. scrool = scrool
  730. else
  731. if scrool+2 >= #otc_xd.locals.PlayerIds then
  732. scrool = #otc_xd.locals.PlayerIds
  733. else
  734. scrool = scrool + 2
  735. end
  736. end
  737. end
  738. if IsDisabledControlPressed(0, 15) then
  739. if scrool-2 <= 14 then
  740. scrool = 15
  741. else
  742. scrool = scrool - 2
  743. end
  744. end
  745. if #otc_xd.locals.PlayerIds <= 13 then
  746. for i = 1+(scrool-15), scrool-15+#otc_xd.locals.PlayerIds do
  747. local player = GetPlayerName(otc_xd.locals.PlayerIds[i])
  748. if OnlineButton(GetPlayerServerId(otc_xd.locals.PlayerIds[i]), player,false,0.37,0.635+(0.021*(i-scrool))) then
  749. otc_xd.locals.SelectedPlayer = otc_xd.locals.PlayerIds[i]
  750. end
  751. end
  752. else
  753. for i = 1+(scrool-15), scrool do
  754. local player = GetPlayerName(otc_xd.locals.PlayerIds[i])
  755. if OnlineButton(GetPlayerServerId(otc_xd.locals.PlayerIds[i]), player,false,0.37,0.635+(0.021*(i-scrool))) then
  756. otc_xd.locals.SelectedPlayer = otc_xd.locals.PlayerIds[i]
  757. end
  758. end
  759. end
  760.  
  761. elseif tab == "Misc" then
  762.  
  763. -- General --
  764.  
  765. if SlimButton("Weapon",false,0.4,0.36) then
  766. local weapon = KeyBoardInput("Weapon", "WEAPON_", 99999)
  767. if weapon then
  768. GiveWeaponToPed(PlayerPedId(), GetHashKey(weapon), 250, false, true)
  769. end
  770. end
  771.  
  772. if SlimButton("Trigger",false,0.4,0.395) then
  773. local trigger = KeyBoardInput("Lua code", "", 99999999)
  774. local lol = load(trigger)
  775. pcall(lol)
  776. end
  777.  
  778. if SlimButton("Vehicle",false,0.4,0.43) then
  779. local vehicle = KeyBoardInput("Vehicle Name", "", 99999)
  780. local r, g, b = KeyBoardInput("~r~Red", "", 3), KeyBoardInput("~g~Green", "", 3), KeyBoardInput("~b~Blue", "", 3)
  781. r, g, b = tonumber(r), tonumber(g), tonumber(b)
  782. local hash = GetHashKey(vehicle)
  783. if vehicle and IsModelAVehicle(hash) and IsModelValid(hash) then
  784. RequestModelSync(vehicle)
  785. local created = CreateVehicle(hash, GetEntityCoords(PlayerPedId()), GetEntityHeading(PlayerPedId()), true, true)
  786. if r and g and b then
  787. SetVehicleCustomPrimaryColour(created, r,g,b)
  788. SetVehicleCustomSecondaryColour(created, r, g, b)
  789. end
  790. end
  791. end
  792.  
  793. if SlimButton("Repair Vehicle",false,0.4,0.465) then
  794. Citizen.InvokeNative(0x115722B1B9C14C1C, Citizen.InvokeNative(0x9A9112A0FE9A4713, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false))
  795. Citizen.InvokeNative(0x79D3B596FE44EE8B, Citizen.InvokeNative(0x9A9112A0FE9A4713, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false), 0.0)
  796. Citizen.InvokeNative(0x34E710FF01247C5A, Citizen.InvokeNative(0x9A9112A0FE9A4713, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false), 0)
  797. Citizen.InvokeNative(0xFB8794444A7D60FB, Citizen.InvokeNative(0x9A9112A0FE9A4713, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false), false)
  798. Citizen.InvokeNative(0x1FD09E7390A74D54, Citizen.InvokeNative(0x9A9112A0FE9A4713, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false), 0)
  799. end
  800.  
  801. if SlimButton("Tp to waypoint",false,0.4,0.5) then
  802. if DoesBlipExist(GetFirstBlipInfoId(8)) then
  803. local blipIterator = GetBlipInfoIdIterator(8)
  804. local blip = GetFirstBlipInfoId(8, blipIterator)
  805. WaypointCoords = Citizen.InvokeNative(0xFA7C7F0AADF25D09, blip, Citizen.ResultAsVector()) --Thanks To Briglair [forum.FiveM.net]
  806. wp = true
  807.  
  808.  
  809.  
  810. local zHeigt = 0.0
  811. height = 1000.0
  812. while true do
  813. Citizen.Wait(0)
  814. if wp then
  815. if IsPedInAnyVehicle(GetPlayerPed(-1), 0) and
  816. (GetPedInVehicleSeat(GetVehiclePedIsIn(GetPlayerPed(-1), 0), -1) == GetPlayerPed(-1))
  817. then
  818. entity = GetVehiclePedIsIn(GetPlayerPed(-1), 0)
  819. else
  820. entity = GetPlayerPed(-1)
  821. end
  822.  
  823. SetEntityCoords(entity, WaypointCoords.x, WaypointCoords.y, height)
  824. FreezeEntityPosition(entity, true)
  825. local Pos = GetEntityCoords(entity, true)
  826.  
  827. if zHeigt == 0.0 then
  828. height = height - 25.0
  829. SetEntityCoords(entity, Pos.x, Pos.y, height)
  830. bool, zHeigt = GetGroundZFor_3dCoord(Pos.x, Pos.y, Pos.z, 0)
  831. else
  832. SetEntityCoords(entity, Pos.x, Pos.y, zHeigt)
  833. FreezeEntityPosition(entity, false)
  834. wp = false
  835. height = 1000.0
  836. zHeigt = 0.0
  837. break
  838. end
  839. end
  840. end
  841. end
  842. end
  843.  
  844. -- Second --
  845.  
  846. if CheckBox(otc_xd.locals.bunnyhop, "Bunnyhop",false,0.54,0.35) then
  847. otc_xd.locals.bunnyhop = not otc_xd.locals.bunnyhop
  848. end
  849.  
  850. if CheckBox(otc_xd.locals.InfAmmo, "Unlimited Ammo",false,0.54,0.375) then
  851. otc_xd.locals.InfAmmo = not otc_xd.locals.InfAmmo
  852. end
  853.  
  854. if CheckBox(otc_xd.locals.Eammo, "Explosive Ammo",false,0.54,0.4) then
  855. otc_xd.locals.Eammo = not otc_xd.locals.Eammo
  856. end
  857.  
  858. if CheckBox(otc_xd.locals.NoRel, "No reload",false,0.54,0.425) then
  859. otc_xd.locals.NoRel = not otc_xd.locals.NoRel
  860. end
  861.  
  862. if CheckBox(otc_xd.locals.HvH, "HvH mode (2016)",false,0.54,0.45) then
  863. otc_xd.locals.HvH = not otc_xd.locals.HvH
  864. end
  865.  
  866. if CheckBox(otc_xd.locals.TriggerBot, "Trigger Bot",false,0.54,0.475) then
  867. otc_xd.locals.TriggerBot = not otc_xd.locals.TriggerBot
  868. end
  869.  
  870. if CheckBox(otc_xd.locals.AntiAim, "Anti-Aim",false,0.54,0.5) then
  871. otc_xd.locals.AntiAim = not otc_xd.locals.AntiAim
  872. end
  873.  
  874.  
  875.  
  876. elseif tab == "Visual" then
  877.  
  878. -- General --
  879.  
  880. if SlimButton("ESP Color",false,0.4,0.36) then
  881. local r = KeyBoardInput("~r~Red", "", 3)
  882. local g = KeyBoardInput("~g~Green", "", 3)
  883. local b = KeyBoardInput("~b~Blue", "", 3)
  884.  
  885. if tonumber(r) ~= nil and tonumber(g) ~= nil and tonumber(b) ~= nil then
  886. otc_xd.locals.esp_color = { r = tonumber(r), g = tonumber(g), b = tonumber(b) }
  887. end
  888. end
  889. if CheckBox(otc_xd.locals.ESP, "ESP",false,0.54,0.35) then
  890. otc_xd.locals.ESP = not otc_xd.locals.ESP
  891. end
  892.  
  893. if CheckBox(otc_xd.locals.DrawImpact, "Draw impact",false,0.54,0.375) then
  894. otc_xd.locals.DrawImpact = not otc_xd.locals.DrawImpact
  895. end
  896.  
  897. if CheckBox(otc_xd.locals.Crosshair, "Crosshair",false,0.54,0.4) then
  898. otc_xd.locals.Crosshair = not otc_xd.locals.Crosshair
  899. end
  900.  
  901. if CheckBox(otc_xd.locals.Force3person, "Force third person",false,0.54,0.425) then
  902. otc_xd.locals.Force3person = not otc_xd.locals.Force3person
  903. end
  904.  
  905. if CheckBox(otc_xd.locals.Trials, "Trials",false,0.54,0.45) then
  906. otc_xd.locals.Trials = not otc_xd.locals.Trials
  907. end
  908.  
  909.  
  910. elseif tab == "Settings" then
  911.  
  912. -- General --
  913.  
  914. if SlimButton("Unload",false,0.4,0.36) then
  915. MenuEnabled = false
  916. end
  917.  
  918. if SlimButton("Menu Button",false,0.4,0.395) then
  919. local key = KeyBoardInput("Key, e.g. 121 ~r~INSERT", "", 9999)
  920. if key then
  921. for k, v in pairs(keys) do
  922. if tonumber(key) == v then
  923. OpenMenuKey = tonumber(key)
  924. end
  925. end
  926. end
  927. end
  928.  
  929. if SlimButton(Current_Config.." ↓",false,0.4,0.43) then
  930. otc_xd.locals.DisplayConfigs = not otc_xd.locals.DisplayConfigs
  931. end
  932.  
  933. if CheckBox(otc_xd.locals.CanMoveMenu, "Can move while menu on",false,0.54,0.35) then
  934. otc_xd.locals.CanMoveMenu = not otc_xd.locals.CanMoveMenu
  935. end
  936.  
  937. if CheckBox(otc_xd.locals.ShowPressedKeys, "Show pressed keys",false,0.54,0.375) then
  938. otc_xd.locals.ShowPressedKeys = not otc_xd.locals.ShowPressedKeys
  939. end
  940.  
  941. if CheckBox(otc_xd.locals.SafeMode, "Safe Mode",false,0.54,0.4) then
  942. otc_xd.locals.SafeMode = not otc_xd.locals.SafeMode
  943. end
  944.  
  945. if otc_xd.locals.DisplayConfigs then
  946. if ComboButton("Save Config",false,0.4,0.457) then
  947. Current_Config = "Save Config"
  948. otc_xd.locals.DisplayConfigs = false
  949. OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD = {
  950. locals = {
  951. esp_color = otc_xd.locals.esp_color,
  952. PlayerIds = GetActivePlayers(),
  953. SelectedPlayer = PlayerId(),
  954. DisplaySkins = otc_xd.locals.DisplaySkins,
  955. godmode = otc_xd.locals.godmode,
  956. noclip = otc_xd.locals.noclip,
  957. SuperJump = otc_xd.locals.SuperJump,
  958. Epunch = otc_xd.locals.Epunch,
  959. InfStamina = otc_xd.locals.InfStamina,
  960. Invisible = otc_xd.locals.Invisible,
  961. FastRun = otc_xd.locals.FastRun,
  962. bunnyhop = otc_xd.locals.bunnyhop,
  963. InfAmmo = otc_xd.locals.InfAmmo,
  964. Eammo = otc_xd.locals.Eammo,
  965. NoRel = otc_xd.locals.NoRel,
  966. HvH = otc_xd.locals.HvH,
  967. TriggerBot = otc_xd.locals.TriggerBot,
  968. AntiAim = otc_xd.locals.AntiAim,
  969. ESP = otc_xd.locals.ESP,
  970. DrawImpact = otc_xd.locals.DrawImpact,
  971. Crosshair = otc_xd.locals.Crosshair,
  972. Force3person = otc_xd.locals.Force3person,
  973. Trials = otc_xd.locals.Trials,
  974. DisplayConfigs = otc_xd.locals.DisplayConfigs,
  975. CanMoveMenu = otc_xd.locals.CanMoveMenu,
  976. ShowPressedKeys = otc_xd.locals.ShowPressedKeys,
  977. SafeMode = otc_xd.locals.SafeMode,
  978. Friends = otc_xd.locals.Friends
  979. }
  980. }
  981. end
  982.  
  983. if ComboButton("Load Config",false,0.4,0.48) then
  984. Current_Config = "Load Config"
  985. otc_xd = {
  986. locals = {
  987. esp_color = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.esp_color,
  988. PlayerIds = GetActivePlayers(),
  989. DisplaySkins = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.DisplaySkins,
  990. godmode = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.godmode,
  991. noclip = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.noclip,
  992. SuperJump = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.SuperJump,
  993. Epunch = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Epunch,
  994. InfStamina = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.InfStamina,
  995. Invisible = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Invisible,
  996. FastRun = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.FastRun,
  997. bunnyhop = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.bunnyhop,
  998. InfAmmo = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.InfAmmo,
  999. Eammo = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Eammo,
  1000. NoRel = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.NoRel,
  1001. HvH = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.HvH,
  1002. TriggerBot = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.TriggerBot,
  1003. AntiAim = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.AntiAim,
  1004. ESP = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.ESP,
  1005. DrawImpact = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.DrawImpact,
  1006. Crosshair = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Crosshair,
  1007. Force3person = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Force3person,
  1008. Trials = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Trials,
  1009. DisplayConfigs = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.DisplayConfigs,
  1010. CanMoveMenu = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.CanMoveMenu,
  1011. ShowPressedKeys = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.ShowPressedKeys,
  1012. SafeMode = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.SafeMode,
  1013. Friends = OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD.locals.Friends
  1014. }
  1015. }
  1016. otc_xd.locals.DisplayConfigs = false
  1017. end
  1018.  
  1019. if ComboButton("Reset Config",false,0.4,0.503) then
  1020. Current_Config = "Reset Config"
  1021. otc_xd.locals.DisplayConfigs = false
  1022. OTC_SAVED_CONFIG_SDGISDUHGIUSDHGSD = {
  1023. locals = {
  1024. esp_color = { r = 255, g = 255, b = 255 },
  1025. PlayerIds = GetActivePlayers(),
  1026. DisplaySkins = false,
  1027. godmode = false,
  1028. noclip = false,
  1029. SuperJump = false,
  1030. Epunch = false,
  1031. InfStamina = false,
  1032. Invisible = false,
  1033. FastRun = false,
  1034. bunnyhop = false,
  1035. InfAmmo = false,
  1036. Eammo = false,
  1037. NoRel = false,
  1038. HvH = false,
  1039. TriggerBot = false,
  1040. AntiAim = false,
  1041. ESP = false,
  1042. DrawImpact = false,
  1043. Crosshair = false,
  1044. Force3person = false,
  1045. Trials = false,
  1046. DisplayConfigs = false,
  1047. CanMoveMenu = true,
  1048. ShowPressedKeys = false,
  1049. SafeMode = false,
  1050. Friends = {}
  1051. }
  1052. }
  1053. end
  1054.  
  1055.  
  1056.  
  1057. end
  1058.  
  1059.  
  1060.  
  1061. elseif tab == 4 then
  1062.  
  1063.  
  1064.  
  1065. elseif tab == 5 then
  1066.  
  1067.  
  1068.  
  1069. end
  1070.  
  1071. local x, y = GetNuiCursorPosition()
  1072. local x_ez, y_ez = GetActiveScreenResolution()
  1073. local cursorX, cursorY = x / x_ez, y / y_ez
  1074. DrawRect(cursorX, cursorY, 0.01, 0.001, 255, 255, 255, 255)
  1075. DrawRect(cursorX, cursorY, 0.001, 0.015, 255, 255, 255, 255)
  1076.  
  1077. end
  1078. function meni()
  1079. ----------- MAIN ----------
  1080. text("otc v2",false,0.38,0,0.38, 0.255, true, 6)
  1081. text(GetPlayerName(PlayerId()),false,0.28,0,0.365, 0.735, false, 6)
  1082.  
  1083. DrawRect(0.5, 0.5, 0.28, 0.53, 45, 48, 57, 255) -- Główne
  1084. DrawRect(0.5, 0.228, 0.28, 0.016, 255, 177, 54, 255) -- Ten górny pasek
  1085.  
  1086. ----------- MAIN ----------
  1087.  
  1088. LeftBar()
  1089.  
  1090. tabs()
  1091.  
  1092.  
  1093. end
  1094.  
  1095. local function AddVectors(one, two)
  1096. return vector3(one.x + two.x, one.y + two.y, one.z + two.z)
  1097. end
  1098.  
  1099. function TriggerBot_Shoot(Player)
  1100. local head = GetPedBoneCoords(Player, 0x796E, 0.0, 0.0, 0.0)
  1101. SetPedShootsAtCoord(PlayerPedId(), head.x, head.y, head.z, true)
  1102. end
  1103.  
  1104. local function rage_bot_shoot(target, damage)
  1105. local boneTarget = GetPedBoneCoords(target, 0x796E, 0.0, 0.0, 0.0)
  1106. local _, weapon = GetCurrentPedWeapon(Citizen.InvokeNative(0xD80958FC74E988A6))
  1107. Citizen.InvokeNative(0x867654CBC7606F2C, AddVectors(boneTarget, vector3(0, 0, 0.1)), boneTarget, damage, true, weapon, 0, true, true, 1000.0)
  1108. end
  1109.  
  1110.  
  1111. local function rage_bot(lol, player)
  1112. if not Citizen.InvokeNative(0x3317DEDB88C95038, player) then
  1113. local _, weapon = GetCurrentPedWeapon(Citizen.InvokeNative(0xD80958FC74E988A6))
  1114. if not player == PlayerPedId() and not Friends[lol] then
  1115. rage_bot_shoot(player, GetWeaponDamage(weapon, 1))
  1116. end
  1117. end
  1118. end
  1119.  
  1120. local trials_table = {}
  1121. local impact_table = {}
  1122.  
  1123. Citizen.CreateThread(function()
  1124. while MenuEnabled do
  1125. Citizen.Wait(0)
  1126. if otc_xd.locals.bunnyhop and not IsPedInAnyVehicle(PlayerPedId()) then
  1127. if IsDisabledControlPressed(1, 22) then
  1128. TaskJump(PlayerPedId(), true)
  1129. Citizen.Wait(200)
  1130. end
  1131. end
  1132. end
  1133. end)
  1134.  
  1135. Citizen.CreateThread(function()
  1136.  
  1137. while MenuEnabled do
  1138. Citizen.Wait(0)
  1139.  
  1140. SetPedInfiniteAmmoClip(PlayerPedId(), otc_xd.locals.NoRel)
  1141. local lol, hash = GetCurrentPedWeapon(PlayerPedId())
  1142. SetPedInfiniteAmmo(PlayerPedId(), otc_xd.locals.InfAmmo, hash)
  1143.  
  1144. otc_xd.locals.PlayerIds = GetActivePlayers()
  1145.  
  1146. local color = RGBRainbow(1.0)
  1147.  
  1148. if otc_xd.locals.Eammo then
  1149. local bool, coords = GetPedLastWeaponImpactCoord(PlayerPedId())
  1150.  
  1151. if bool then
  1152. AddExplosion(coords, 2, 10000.0, true, false, 0)
  1153. end
  1154. end
  1155.  
  1156. if otc_xd.locals.godmode then
  1157. Citizen.InvokeNative(0x3882114BDE571AD4, Citizen.InvokeNative(0x43A66C31C68491C0, -1), true)
  1158. Citizen.InvokeNative(0x239528EACDC3E7DE, Citizen.InvokeNative(0x4F8644AF03D0E0D6), true)
  1159. Citizen.InvokeNative(0x8FE22675A5A45817, Citizen.InvokeNative(0x43A66C31C68491C0, -1))
  1160. Citizen.InvokeNative(0x3AC1F7B898F30C05, Citizen.InvokeNative(0x43A66C31C68491C0, -1))
  1161. Citizen.InvokeNative(0x0E98F88A24C5F4B8, Citizen.InvokeNative(0x43A66C31C68491C0, -1))
  1162. Citizen.InvokeNative(0xFAEE099C6F890BB8, Citizen.InvokeNative(0x43A66C31C68491C0, -1), true, true, true, true, true, true, true, true)
  1163. Citizen.InvokeNative(0x79F020FF9EDC0748, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false)
  1164. Citizen.InvokeNative(0x1760FFA8AB074D66, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false)
  1165. else
  1166. Citizen.InvokeNative(0x3882114BDE571AD4, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false)
  1167. Citizen.InvokeNative(0x239528EACDC3E7DE, Citizen.InvokeNative(0x4F8644AF03D0E0D6), false)
  1168. Citizen.InvokeNative(0x0E98F88A24C5F4B8, Citizen.InvokeNative(0x43A66C31C68491C0, -1))
  1169. Citizen.InvokeNative(0xFAEE099C6F890BB8, Citizen.InvokeNative(0x43A66C31C68491C0, -1), false, false, false, false, false, false, false, false)
  1170. Citizen.InvokeNative(0x79F020FF9EDC0748, Citizen.InvokeNative(0x43A66C31C68491C0, -1), true)
  1171. Citizen.InvokeNative(0x1760FFA8AB074D66, Citizen.InvokeNative(0x43A66C31C68491C0, -1), true)
  1172. end
  1173.  
  1174. if otc_xd.locals.HvH then
  1175.  
  1176. for i = 0, #otc_xd.locals.PlayerIds do
  1177. rage_bot(GetPlayerServerId(otc_xd.locals.PlayerIds[i]), Citizen.InvokeNative(0x43A66C31C68491C0, otc_xd.locals.PlayerIds[i]))
  1178. end
  1179.  
  1180. yaw = (yaw or 0) + math.random(10,20)
  1181. local ped_DSIHGUSDGSD = PlayerPedId()
  1182.  
  1183. SetEntityRotation(ped_DSIHGUSDGSD, 45.0, 0.0, yaw+0.0, 1, true)
  1184.  
  1185. end
  1186.  
  1187. if #notifications > 0 then
  1188. for notificationIndex = 1, #notifications do
  1189. local notification = notifications[notificationIndex]
  1190.  
  1191. if notification then
  1192. notification['opacity'] = (notification['opacity'] or (notification['time'] / 1000) * 60) - 1
  1193.  
  1194. local offset = 0.005 + (notificationIndex * 1.3)
  1195. local timer = (Citizen.InvokeNative(0x9CD27B0045628463) - notification['startTime']) / notification['time'] * 100
  1196. text(notification['text'],false,0.25,0,0.05, 0.01*offset)
  1197.  
  1198.  
  1199. if timer >= 100 then
  1200. table.remove(notifications, notificationIndex)
  1201. end
  1202. end
  1203. end
  1204. end
  1205.  
  1206. if otc_xd.locals.TriggerBot then
  1207. local Aiming, target = GetEntityPlayerIsFreeAimingAt(Citizen.InvokeNative(0x4F8644AF03D0E0D6), target)
  1208. if Aiming then
  1209. if IsEntityAPed(target) and not IsPedDeadOrDying(target, 0) and IsPedAPlayer(target) then
  1210. TriggerBot_Shoot(target)
  1211. end
  1212. end
  1213. end
  1214.  
  1215. if otc_xd.locals.DrawImpact then
  1216. local coords = GetEntityCoords(PlayerPedId())
  1217. local bool, coords2 = GetPedLastWeaponImpactCoord(PlayerPedId())
  1218. if bool then
  1219. table.insert(impact_table, { ["x"] = coords.x, ["y"] = coords.y, ["z"] = coords.z, ["x2"] = coords2.x, ["y2"] = coords2.y, ["z2"] = coords2.z, ["delay"] = 5000, ["startTime"] = GetGameTimer()})
  1220. end
  1221. end
  1222.  
  1223. if otc_xd.locals.DrawImpact then
  1224. if #impact_table > 0 then
  1225. for i = 1, #impact_table do
  1226. local current = impact_table[i]
  1227.  
  1228. if current then
  1229.  
  1230. local timer = (GetGameTimer() - current['startTime']) / current['delay'] * 100
  1231. DrawLine(current["x"], current["y"], current["z"], current["x2"], current["y2"], current["z2"], 255, 255, 255, 255)
  1232.  
  1233.  
  1234. if timer >= 100 then
  1235. table.remove(impact_table, i)
  1236. end
  1237. end
  1238. end
  1239. end
  1240. end
  1241.  
  1242. if otc_xd.locals.Trials then
  1243. local coords = GetEntityCoords(PlayerPedId())
  1244. table.insert(trials_table, { ["x"] = coords.x, ["y"] = coords.y, ["z"] = coords.z, ["delay"] = 1000, ["startTime"] = GetGameTimer()})
  1245. end
  1246.  
  1247. if otc_xd.locals.Trials then
  1248. if #trials_table > 0 then
  1249. for i = 1, #trials_table do
  1250. local current = trials_table[i]
  1251.  
  1252. if current then
  1253.  
  1254. local timer = (GetGameTimer() - current['startTime']) / current['delay'] * 100
  1255. DrawMarker(28, current['x'], current['y'], current['z'], 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 0.2, 0.2, 0.2, color.r, color.g, color.b, 255, false, true, 2, nil, nil, false)
  1256.  
  1257.  
  1258. if timer >= 100 then
  1259. table.remove(trials_table, i)
  1260. end
  1261. end
  1262. end
  1263. end
  1264. end
  1265.  
  1266. if otc_xd.locals.Crosshair then
  1267. if IsPlayerFreeAiming(PlayerId()) then
  1268. local bool, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
  1269. local ped = IsEntityAPed(entity)
  1270. local player = IsPedAPlayer(entity)
  1271. if bool and ped and player then
  1272. DrawRect(0.5, 0.5, 0.01, 0.001, 255, 0, 0, 255)
  1273. DrawRect(0.5, 0.5, 0.001, 0.015, 255, 0, 0, 255)
  1274. else
  1275. DrawRect(0.5, 0.5, 0.01, 0.001, 255, 255, 255, 255)
  1276. DrawRect(0.5, 0.5, 0.001, 0.015, 255, 255, 255, 255)
  1277. end
  1278. end
  1279. end
  1280.  
  1281. if otc_xd.locals.ShowPressedKeys then
  1282. for k, v in pairs(keys) do
  1283. if IsDisabledControlJustReleased(1, v) then
  1284. AddNotification("Key pressed: ".."~y~'"..k.."'")
  1285. end
  1286. end
  1287. end
  1288.  
  1289. if otc_xd.locals.Force3person then
  1290. Citizen.InvokeNative(0x5A4F9EDF1673F704, 0)
  1291. Citizen.InvokeNative(0xAC253D7842768F48, 0)
  1292. end
  1293.  
  1294. if otc_xd.locals.SuperJump then
  1295. SetSuperJumpThisFrame(PlayerId())
  1296. end
  1297.  
  1298. if otc_xd.locals.InfStamina then
  1299. RestorePlayerStamina(PlayerId(), 1.0)
  1300. end
  1301.  
  1302. if otc_xd.locals.Epunch then
  1303. SetExplosiveMeleeThisFrame(PlayerId())
  1304. end
  1305.  
  1306. if otc_xd.locals.FastRun then
  1307. SetRunSprintMultiplierForPlayer(PlayerId(), 2.49)
  1308. SetPedMoveRateOverride(GetPlayerPed(-1), 2.15)
  1309. else
  1310. SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
  1311. SetPedMoveRateOverride(GetPlayerPed(-1), 1.0)
  1312. end
  1313.  
  1314. if otc_xd.locals.noclip then
  1315. local currentSpeed = 2
  1316. local noclipEntity = IsPedInAnyVehicle(PlayerPedId(), false) and GetVehiclePedIsUsing(PlayerPedId()) or PlayerPedId()
  1317. FreezeEntityPosition(PlayerPedId(), true)
  1318. SetEntityInvincible(PlayerPedId(), true)
  1319.  
  1320. local newPos = GetEntityCoords(entity)
  1321.  
  1322. DisableControlAction(0, 32, true) --MoveUpOnly
  1323. DisableControlAction(0, 268, true) --MoveUp
  1324.  
  1325. DisableControlAction(0, 31, true) --MoveUpDown
  1326.  
  1327. DisableControlAction(0, 269, true) --MoveDown
  1328. DisableControlAction(0, 33, true) --MoveDownOnly
  1329.  
  1330. DisableControlAction(0, 266, true) --MoveLeft
  1331. DisableControlAction(0, 34, true) --MoveLeftOnly
  1332.  
  1333. DisableControlAction(0, 30, true) --MoveLeftRight
  1334.  
  1335. DisableControlAction(0, 267, true) --MoveRight
  1336. DisableControlAction(0, 35, true) --MoveRightOnly
  1337.  
  1338. DisableControlAction(0, 44, true) --Cover
  1339. DisableControlAction(0, 20, true) --MultiplayerInfo
  1340.  
  1341. local yoff = 0.0
  1342. local zoff = 0.0
  1343.  
  1344. if IsDisabledControlPressed(0, 32) then
  1345. yoff = 0.5
  1346. end
  1347. if IsDisabledControlPressed(0, 33) then
  1348. yoff = -0.5
  1349. end
  1350. if IsDisabledControlPressed(0, 34) then
  1351. SetEntityHeading(PlayerPedId(), GetEntityHeading(PlayerPedId()) + 3.0)
  1352. end
  1353. if IsDisabledControlPressed(0, 35) then
  1354. SetEntityHeading(PlayerPedId(), GetEntityHeading(PlayerPedId()) - 3.0)
  1355. end
  1356. if IsDisabledControlPressed(0, 44) then
  1357. zoff = 0.21
  1358. end
  1359. if IsDisabledControlPressed(0, 20) then
  1360. zoff = -0.21
  1361. end
  1362.  
  1363. newPos =
  1364. GetOffsetFromEntityInWorldCoords(noclipEntity, 0.0, yoff * (currentSpeed + 0.3), zoff * (currentSpeed + 0.3))
  1365.  
  1366. local heading = GetEntityHeading(noclipEntity)
  1367. SetEntityVelocity(noclipEntity, 0.0, 0.0, 0.0)
  1368. SetEntityRotation(noclipEntity, 0.0, 0.0, 0.0, 0, false)
  1369. SetEntityHeading(noclipEntity, heading)
  1370.  
  1371. SetEntityCollision(noclipEntity, false, false)
  1372. SetEntityCoordsNoOffset(noclipEntity, newPos.x, newPos.y, newPos.z, true, true, true)
  1373.  
  1374. FreezeEntityPosition(noclipEntity, false)
  1375. SetEntityInvincible(noclipEntity, false)
  1376. SetEntityCollision(noclipEntity, true, true)
  1377. end
  1378.  
  1379. if otc_xd.locals.AntiAim then
  1380. yaw = (yaw or 0) + math.random(10,20)
  1381. local ped_DSIHGUSDGSD = PlayerPedId()
  1382.  
  1383. SetEntityRotation(ped_DSIHGUSDGSD, 45.0, 0.0, yaw+0.0, 1, true)
  1384. end
  1385.  
  1386.  
  1387. if otc_xd.locals.ESP then
  1388. for i=0,#otc_xd.locals.PlayerIds do
  1389. local pPed = Citizen.InvokeNative(0x43A66C31C68491C0, otc_xd.locals.PlayerIds[i])
  1390. local cx, cy, cz = table.unpack(GetEntityCoords(Citizen.InvokeNative(0xD80958FC74E988A6, -1)))
  1391. local x, y, z = table.unpack(GetEntityCoords(pPed))
  1392. local disPlayerNames = 999999
  1393. local distance = math.floor(GetDistanceBetweenCoords(cx, cy, cz, x, y, z, true))
  1394. if ((distance < disPlayerNames)) then
  1395. if Citizen.InvokeNative(0x031E11F3D447647E, otc_xd.locals.PlayerIds[i], Citizen.ReturnResultAnyway()) then
  1396. DrawText3D(x, y, z+1.2, GetPlayerServerId(otc_xd.locals.PlayerIds[i]).." | "..GetPlayerName(otc_xd.locals.PlayerIds[i]), otc_xd.locals.esp_color.r,otc_xd.locals.esp_color.g,otc_xd.locals.esp_color.b)
  1397. elseif otc_xd.locals.Friends[GetPlayerServerId(otc_xd.locals.PlayerIds[i])] then
  1398. DrawText3D(x, y, z+1.2, GetPlayerServerId(otc_xd.locals.PlayerIds[i]).." | "..GetPlayerName(otc_xd.locals.PlayerIds[i]) .. " | Friend", 66, 135, 245)
  1399. else
  1400. DrawText3D(x, y, z+1.2, GetPlayerServerId(otc_xd.locals.PlayerIds[i]).." | "..GetPlayerName(otc_xd.locals.PlayerIds[i]), 255,255,255)
  1401. end
  1402. end
  1403. local message =
  1404. "Name: " ..
  1405. GetPlayerName(otc_xd.locals.PlayerIds[i]) ..
  1406. "\nServer ID: " ..
  1407. GetPlayerServerId(otc_xd.locals.PlayerIds[i]) ..
  1408. "\nDist: " .. math.round(GetDistanceBetweenCoords(cx, cy, cz, x, y, z, true), 1)
  1409. if ((distance < 999999)) then
  1410. DrawText3D(x, y, z - 1.0, message, otc_xd.locals.esp_color.r, otc_xd.locals.esp_color.g, otc_xd.locals.esp_color.b)
  1411. end
  1412. if otc_xd.locals.Friends[GetPlayerServerId(otc_xd.locals.PlayerIds[i])] then
  1413. DrawLineBox(pPed, 0, 0, 255, 255)
  1414. else
  1415. DrawLineBox(pPed, otc_xd.locals.esp_color.r, otc_xd.locals.esp_color.g, otc_xd.locals.esp_color.b, 255)
  1416. end
  1417. end
  1418. end
  1419. end
  1420. end)
  1421.  
  1422.  
  1423. Citizen.CreateThread(function()
  1424.  
  1425. while MenuEnabled do
  1426. Citizen.Wait(0)
  1427.  
  1428. if IsControlJustPressed(1, OpenMenuKey) then
  1429. DisplayMenu = not DisplayMenu
  1430. end
  1431. if DisplayMenu then
  1432. meni()
  1433. kontrols()
  1434.  
  1435. end
  1436.  
  1437. end
  1438. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement