Advertisement
TATATATRATATATA

Untitled

Feb 16th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. --- HOW TO USE:
  2. --- https://i.imgur.com/xZMqzTc.gifv
  3. --- 1. Open Cheat table as usuall and enter your career.
  4. --- 2. In Cheat Engine click on "Memory View" button.
  5. --- 3. Press "CTRL + L" to open lua engine
  6. --- 4. Then press "CTRL + O" and open this script
  7. --- 5. Click on 'Execute' button to execute script and wait for 'done' message box.
  8.  
  9. --- AUTHOR: ARANAKTU
  10.  
  11. --- It may take a few mins. Cheat Engine will stop responding and it's normal behaviour. Wait until you get 'Done' message.
  12.  
  13. --- This script will enable all added starheads.
  14.  
  15. local headmodels_map = {
  16. 253102, -- Adil Aouchiche
  17. 247851, -- Bruno Guimaraes
  18. 240513, -- Ethan Hamilton
  19. 237328, -- Nathan Tella
  20. 236508, -- Adrian Dieguez
  21. 235073, -- Gregor Kobel
  22. 234640, -- Bakery Jatta
  23. 233728, -- Mamadou Doucoure
  24. 231823, -- Justin Hoogma
  25. 229477, -- Mike Steven Bahre
  26. 229487, -- Lukas Klunter
  27. 228082, -- Dzenis Burnic
  28. 227536, -- Moussa Marega
  29. 226766, -- Daniel Podence
  30. 226380, -- Hwang Hee Chan
  31. 224251, -- Robin Zentner
  32. 223909, -- Alex Palmer
  33. 222864, -- Carlos Rose
  34. 220932, -- Lovre Kalinic
  35. 215568, -- Jose Manuel Naranjo
  36. 215441, -- Sehrou Guirassy
  37. 214622, -- Jeremy Toljan
  38. 214947, -- Jean Philippe Gbamin
  39. 214096, -- Tim Kleindienst
  40. 212592, -- Andrew Farrell
  41. 208230, -- Andreas Samaris
  42. 207650, -- Emil Krafth
  43. 206003, -- Yvon Mvogo
  44. 200647, -- Josip Ilicic
  45. 199914, -- Allan Marques Loureiro
  46. 199069, -- Vincent Aboubakar
  47. 195033, -- Mathew Leckie
  48. 193942, -- Carlos Colback
  49. 192774, -- Kostas Manolas
  50. 184144, -- Nicolas Gaitan
  51. 183574, -- Max Kruse
  52. 183280, -- Adil Rami
  53. 169710, -- Liam Bridcutt
  54. 143076, -- Alejandro Gomez
  55. 146439, -- Alvaro Negredo
  56. 168607, -- Rafinha Ferreira
  57. 180334, -- Marcelo Guedes
  58. 183520, -- Fran Merida
  59. 189606, -- Julian Baumgartlinger
  60. 190243, -- Marwin Hitz
  61. 192658, -- Sebastian Jung
  62. 193469, -- Victor Ruiz Torre
  63. 194150, -- Simon Moore
  64. 194996, -- Borja Baston
  65. 204497, -- Kevin Stoger
  66. 204846, -- Jamal Blackman
  67. 219455, -- Jonathan Calleri
  68. 220182, -- Jason Denayer
  69. 222096, -- Harry Lewis
  70. 226677, -- Juninho Bacuna
  71. 229050, -- Oskar Buur Rasmussen
  72. 232207, -- Ivan Saponjic
  73. 232759, -- Josh Tymon
  74. 234571, -- Mesaque Dju
  75. 236043, -- Daniel Batty
  76. 236786, -- Martin Terrier
  77. 238061, -- Alfie Lewis
  78. 238186, -- Marcin Bulka
  79. 239368, -- Mitchel Bakker
  80. 240175, -- Bruno Jordao
  81. 240512, -- Luca Ercolani
  82. 242238, -- Oumar Solet
  83. 242364, -- Aliou Traore
  84. 242967, -- Callum Morton
  85. 243390, -- Ian Carl Poveda
  86. 243391, -- Iker Pozo
  87. 243393, -- Taylor Richards
  88. 243705, -- Florian Chabrolle
  89. 243710, -- Garissone Innocent
  90. 244809, -- Marcus Dewhurst
  91. 245021, -- Loum Mamadou
  92. 248603, -- Loic Mbe Soh
  93. 250874, -- Sean Adarkwa
  94. 251341, -- Marley Ake
  95. 251493, -- Abdallah Ali Mohamed
  96. 253568, -- Leonardo Campana
  97. 255150, -- Niels Nkounkou
  98. 167905, -- Antonio Valencia
  99. 186307, -- Marco Fabian
  100. 186805, -- Jefferson Montero
  101. 190456, -- Nathaniel Clyne
  102. 176919, -- Nahuel Guzman
  103. 186992, -- Jesus Duenas
  104. 188041, -- Rafael Carioca
  105. 192350, -- Javier Aquino
  106. 207715, -- Nicolas Lopez
  107. 214491 -- Luis Quinones
  108. }
  109.  
  110. -- Don't touch anything below
  111.  
  112. function inTable(tbl, item)
  113. for key, value in pairs(tbl) do
  114. if value == item then return key end
  115. end
  116. return false
  117. end
  118.  
  119. gCTManager:init_ptrs()
  120. local game_db_manager = gCTManager.game_db_manager
  121. local memory_manager = gCTManager.memory_manager
  122.  
  123. local first_record = game_db_manager.tables["players"]["first_record"]
  124. local record_size = game_db_manager.tables["players"]["record_size"]
  125. local written_records = game_db_manager.tables["players"]["written_records"]
  126.  
  127. local row = 0
  128. local current_addr = first_record
  129. local last_byte = 0
  130. local is_record_valid = true
  131. local updated_players = 0
  132.  
  133. while true do
  134. if row >= written_records then
  135. break
  136. end
  137. current_addr = first_record + (record_size*row)
  138. last_byte = readBytes(current_addr+record_size-1, 1, true)[1]
  139. is_record_valid = not (bAnd(last_byte, 128) > 0)
  140. if is_record_valid then
  141. local playerid = game_db_manager:get_table_record_field_value(current_addr, "players", "playerid")
  142. local headassetid = game_db_manager:get_table_record_field_value(current_addr, "players", "headassetid")
  143. if playerid > 0 and headassetid == playerid and inTable(headmodels_map, playerid) then
  144. game_db_manager:set_table_record_field_value(current_addr, "players", "hashighqualityhead", 1)
  145. game_db_manager:set_table_record_field_value(current_addr, "players", "headclasscode", 0)
  146. game_db_manager:set_table_record_field_value(current_addr, "players", "headassetid", playerid)
  147.  
  148. updated_players = updated_players + 1
  149. end
  150. end
  151. row = row + 1
  152. end
  153.  
  154. showMessage(string.format("Done\nUpdated head models: %d", updated_players))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement