Advertisement
Guest User

GTA V 1.17 OFFSETS

a guest
Nov 17th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1. private PS3API PS3 = new PS3API(SelectAPI.ControlConsole);
  2. private byte[] XPLongFoundsBytes = new byte[33554432];
  3. private byte[] XPBytes = new byte[]
  4. {
  5. 0,
  6. 0,
  7. 0,
  8. 220,
  9. 0,
  10. 0,
  11. 0,
  12. 10,
  13. 0,
  14. 0,
  15. 0,
  16. 0,
  17. 255,
  18. 255,
  19. 255,
  20. 255,
  21. 255,
  22. 255,
  23. 255,
  24. 255,
  25. 0,
  26. 0,
  27. 0,
  28. 0,
  29. 0,
  30. 0,
  31. 0,
  32. 0,
  33. 0,
  34. 0,
  35. 0,
  36. 0,
  37. 0,
  38. 0,
  39. 0,
  40. 0,
  41. 0,
  42. 0,
  43. 0,
  44. 0,
  45. 0,
  46. 0,
  47. 0,
  48. 0,
  49. 0,
  50. 0,
  51. 0,
  52. 0,
  53. 0,
  54. 0,
  55. 0,
  56. 0,
  57. 255,
  58. 255,
  59. 255,
  60. 255,
  61. 0,
  62. 0,
  63. 0,
  64. 0,
  65. 0,
  66. 0,
  67. 0,
  68. 0,
  69. 0,
  70. 0,
  71. 0,
  72. 0,
  73. 0,
  74. 0,
  75. 0,
  76. 0,
  77. 0,
  78. 0,
  79. 0,
  80. 0,
  81. 0,
  82. 0,
  83. 0,
  84. 0,
  85. 255,
  86. 255,
  87. 255,
  88. 255,
  89. 0,
  90. 0,
  91. 0,
  92. 0,
  93. 0,
  94. 0,
  95. 0,
  96. 0,
  97. 255,
  98. 255,
  99. 255,
  100. 255,
  101. 0,
  102. 0,
  103. 0,
  104. 0,
  105. 255,
  106. 255,
  107. 255,
  108. 255,
  109. 255,
  110. 255,
  111. 255,
  112. 255,
  113. 0,
  114. 0,
  115. 0,
  116. 0,
  117. 0,
  118. 0,
  119. 0,
  120. 0,
  121. 0,
  122. 0,
  123. 0,
  124. 0,
  125. 0,
  126. 0,
  127. 0,
  128. 0,
  129. 0,
  130. 0,
  131. 0,
  132. 0,
  133. 0,
  134. 0,
  135. 0,
  136. 0,
  137. 0,
  138. 0,
  139. 0,
  140. 0,
  141. 0,
  142. 0,
  143. 0,
  144. 0,
  145. 255,
  146. 255,
  147. 255,
  148. 255
  149. };
  150. private byte[] CashLongFoundsBytes = new byte[33554432];
  151. private byte[] CashBytes = new byte[]
  152. {
  153. 0,
  154. 0,
  155. 0,
  156. 0,
  157. 1,
  158. 126,
  159. 17,
  160. 144,
  161. 16,
  162. 0,
  163. 98,
  164. 16,
  165. 0,
  166. 0,
  167. 0,
  168. 0,
  169. 1,
  170. 126,
  171. 17,
  172. 144,
  173. 16,
  174. 0,
  175. 164,
  176. 16,
  177. 0,
  178. 0,
  179. 0,
  180. 0,
  181. 1,
  182. 126,
  183. 17,
  184. 144,
  185. 16,
  186. 0,
  187. 230,
  188. 19,
  189. 0,
  190. 0,
  191. 0,
  192. 0,
  193. 1,
  194. 126,
  195. 17,
  196. 144,
  197. 16,
  198. 1,
  199. 40,
  200. 16,
  201. 0,
  202. 0,
  203. 0,
  204. 0,
  205. 1,
  206. 126,
  207. 17,
  208. 144,
  209. 16,
  210. 1,
  211. 106,
  212. 18,
  213. 0,
  214. 0,
  215. 0,
  216. 0,
  217. 1,
  218. 126,
  219. 19,
  220. 36,
  221. 16,
  222. 0,
  223. 98,
  224. 16,
  225. 0,
  226. 0,
  227. 0,
  228. 0,
  229. 1,
  230. 126,
  231. 19,
  232. 36
  233. };
  234. private byte[] LastLongFoundsBytes = new byte[33554432];
  235. private byte[] LastBytes = new byte[]
  236. {
  237. 0,
  238. 0,
  239. 0,
  240. 16,
  241. 0,
  242. 0,
  243. 0,
  244. 0,
  245. 255,
  246. 255,
  247. 255,
  248. 255,
  249. 255,
  250. 255,
  251. 255,
  252. 255,
  253. 0,
  254. 0,
  255. 0,
  256. 0,
  257. 0,
  258. 0,
  259. 0,
  260. 0,
  261. 0,
  262. 0,
  263. 0,
  264. 0,
  265. 0,
  266. 0,
  267. 0,
  268. 0,
  269. 0,
  270. 0,
  271. 0,
  272. 0,
  273. 0,
  274. 0,
  275. 0,
  276. 0,
  277. 255,
  278. 255,
  279. 255,
  280. 255,
  281. 0,
  282. 0,
  283. 0,
  284. 0,
  285. 0,
  286. 0,
  287. 0,
  288. 0,
  289. 0,
  290. 0,
  291. 0,
  292. 0,
  293. 0,
  294. 0,
  295. 0,
  296. 0,
  297. 0,
  298. 0,
  299. 0,
  300. 0,
  301. 0,
  302. 0,
  303. 0,
  304. 0,
  305. 255,
  306. 255,
  307. 255,
  308. 255,
  309. 0,
  310. 0,
  311. 0,
  312. 0,
  313. 0,
  314. 0,
  315. 0,
  316. 0,
  317. 255,
  318. 255,
  319. 255,
  320. 255,
  321. 0,
  322. 0,
  323. 0,
  324. 0,
  325. 255,
  326. 255,
  327. 255,
  328. 255,
  329. 255,
  330. 255,
  331. 255,
  332. 255
  333. };
  334. private byte[] SomeLongFoundsBytes = new byte[33554432];
  335. private byte[] SomeBytes = new byte[]
  336. {
  337. 0,
  338. 0,
  339. 39,
  340. 16,
  341. 63,
  342. 128,
  343. 0,
  344. 0,
  345. 63,
  346. 128,
  347. 0,
  348. 0,
  349. 0,
  350. 0,
  351. 1,
  352. 0,
  353. 63,
  354. 128,
  355. 0,
  356. 0,
  357. 63,
  358. 128,
  359. 0,
  360. 0,
  361. 63,
  362. 128,
  363. 0,
  364. 0,
  365. 63,
  366. 128,
  367. 0,
  368. 0,
  369. 63,
  370. 128,
  371. 0,
  372. 0,
  373. 63,
  374. 128,
  375. 0,
  376. 0,
  377. 63,
  378. 128,
  379. 0,
  380. 0,
  381. 63,
  382. 128,
  383. 0,
  384. 0
  385. };
  386. private byte[] TaxiLongFoundsBytes = new byte[33554432];
  387. private byte[] TaxiBytes = new byte[]
  388. {
  389. 28,
  390. 177,
  391. 255,
  392. 244,
  393. 0,
  394. 0,
  395. 0,
  396. 0,
  397. 199,
  398. 3,
  399. 219,
  400. 95
  401. };
  402. private byte[] SNSLongFoundsBytes = new byte[33554432];
  403. private byte[] SNSBytes = new byte[]
  404. {
  405. 0,
  406. 0,
  407. 0,
  408. 16,
  409. 249,
  410. 230,
  411. 170,
  412. 75
  413. };
  414. private byte[] JBLongFoundsBytes = new byte[33554432];
  415. private byte[] JBBytes = new byte[]
  416. {
  417. 62,
  418. 171,
  419. 85,
  420. 85
  421. };
  422. private byte[] GarageLongFoundsBytes = new byte[33554432];
  423. private byte[] GarageBytes = new byte[]
  424. {
  425. 82,
  426. 65,
  427. 68,
  428. 73,
  429. 79,
  430. 95,
  431. 49,
  432. 56,
  433. 95,
  434. 57,
  435. 48,
  436. 83,
  437. 95,
  438. 82,
  439. 79,
  440. 67,
  441. 75,
  442. 0,
  443. 0,
  444. 0,
  445. 0,
  446. 0,
  447. 0,
  448. 0,
  449. 0,
  450. 0,
  451. 0,
  452. 0,
  453. 0,
  454. 0,
  455. 0,
  456. 0,
  457. 0,
  458. 0,
  459. 0,
  460. 0,
  461. 0,
  462. 0,
  463. 0,
  464. 0,
  465. 0,
  466. 0,
  467. 0,
  468. 0,
  469. 0,
  470. 0,
  471. 0,
  472. 0,
  473. 0,
  474. 0,
  475. 0,
  476. 0,
  477. 0,
  478. 0,
  479. 0,
  480. 0,
  481. 0,
  482. 0,
  483. 0,
  484. 0,
  485. 0,
  486. 0,
  487. 0,
  488. 0,
  489. 255,
  490. 255,
  491. 255,
  492. 255,
  493. 255,
  494. 255,
  495. 255,
  496. 255,
  497. 0,
  498. 0,
  499. 0,
  500. 0,
  501. 0,
  502. 0,
  503. 0,
  504. 0
  505. };
  506. private byte[] ModelLongFoundsBytes = new byte[33554432];
  507. private byte[] ModelBytes = new byte[]
  508. {
  509. 24,
  510. 206,
  511. 87,
  512. 208
  513. };
  514. private uint SomeOffsetOne = 0u;
  515. private uint SNSOffsetOne = 0u;
  516. private uint JBOffsetOne = 0u;
  517. private uint GarageOffsetOne = 0u;
  518. private uint ModelOffsetOne = 0u;
  519. private int SNSPlusNumber = 8;
  520. private int JBPlusNumber = 4;
  521. private int GarageMinaseNumber = 96;
  522. private int ModelMinaseNumber = 20;
  523. private uint SNSStartOffset = 838860800u;
  524. private uint JBStartOffset = 838860800u;
  525. private uint GarageStartOffset = 855638016u;
  526. private uint ModelStartOffset = 844103680u;
  527. private uint ZeroOffset = 0u;
  528. public int NumberOffsets = 0;
  529. private IContainer components = null;
  530.  
  531. public static string ByteToString(byte[] any)
  532. {
  533. string text = BitConverter.ToString(any);
  534. return text.Replace("-", "");
  535. }
  536. private string Make(string h)
  537. {
  538. StringBuilder stringBuilder = new StringBuilder();
  539. for (int i = 0; i <= h.Length - 2; i += 2)
  540. {
  541. stringBuilder.Append(Convert.ToString(Convert.ToChar(int.Parse(h.Substring(i, 2), NumberStyles.HexNumber))));
  542. }
  543. stringBuilder.Replace('\0', ' ');
  544. return stringBuilder.ToString();
  545. }
  546. public static string GetTemporaryDirectory()
  547. {
  548. return Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
  549. }
  550.  
  551. public uint ContainsSequence(byte[] toSearch, byte[] toFind, uint StartOffset)
  552. {
  553. int num = 0;
  554. IL_31:
  555. uint result;
  556. while (num + toFind.Length < toSearch.Length)
  557. {
  558. bool flag = true;
  559. int i = 0;
  560. while (i < toFind.Length)
  561. {
  562. if (toSearch[num + i] == toFind[i])
  563. {
  564. i++;
  565. }
  566. else
  567. {
  568. flag = false;
  569. IL_26:
  570. if (!flag)
  571. {
  572. num += 16;
  573. goto IL_31;
  574. }
  575. int num2 = (int)(StartOffset + (uint)num);
  576. uint num3 = (uint)num2;
  577. result = num3;
  578. return result;
  579. }
  580. }
  581. goto IL_26;
  582. }
  583. result = 0u;
  584. return result;
  585. }
  586. public uint ContainsSequence_by_KranK_ModZ(byte[] toSearch, byte[] toFind, uint StartOffset, int bytes)
  587. {
  588. int num = 0;
  589. IL_31:
  590. uint result;
  591. while (num + toFind.Length < toSearch.Length)
  592. {
  593. bool flag = true;
  594. int i = 0;
  595. while (i < toFind.Length)
  596. {
  597. if (toSearch[num + i] == toFind[i])
  598. {
  599. i++;
  600. }
  601. else
  602. {
  603. flag = false;
  604. IL_26:
  605. if (!flag)
  606. {
  607. num += bytes;
  608. goto IL_31;
  609. }
  610. this.NumberOffsets++;
  611. int num2 = (int)(StartOffset + (uint)num);
  612. result = (uint)num2;
  613. return result;
  614. }
  615. }
  616. goto IL_26;
  617. }
  618. result = 0u;
  619. return result;
  620. }
  621. private uint Search(byte[] Search, uint Start, int Length, int bytes)
  622. {
  623. byte[] toSearch = this.PS3.Extension.ReadBytes(Start, Length);
  624. uint num = this.ContainsSequence_by_KranK_ModZ(toSearch, Search, Start, bytes);
  625. uint result;
  626. if (num.Equals(this.ZeroOffset))
  627. {
  628. result = 0u;
  629. }
  630. else
  631. {
  632. int num2 = 0;
  633. for (int i = 0; i < Search.Length; i++)
  634. {
  635. int num3 = (int)Search[i];
  636. if (num3 == 1)
  637. {
  638. num2++;
  639. }
  640. }
  641. uint num4 = num + (uint)num2;
  642. result = num4;
  643. }
  644. return result;
  645. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement