Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- HOW TO USE:
- --- https://i.imgur.com/xZMqzTc.gifv
- --- 1. Open Cheat table as usuall and enter your career.
- --- 2. In Cheat Engine click on "Memory View" button.
- --- 3. Press "CTRL + L" to open lua engine
- --- 4. Then press "CTRL + O" and open this script
- --- 5. Click on 'Execute' button to execute script and wait for 'done' message box.
- --- AUTHOR: ARANAKTU
- --- It may take a few mins. Cheat Engine will stop responding and it's normal behaviour. Wait until you get 'Done' message.
- --- This script will enable all added starheads.
- local headmodels_map = {
- 253102, -- Adil Aouchiche
- 247851, -- Bruno Guimaraes
- 240513, -- Ethan Hamilton
- 237328, -- Nathan Tella
- 236508, -- Adrian Dieguez
- 235073, -- Gregor Kobel
- 234640, -- Bakery Jatta
- 233728, -- Mamadou Doucoure
- 231823, -- Justin Hoogma
- 229477, -- Mike Steven Bahre
- 229487, -- Lukas Klunter
- 228082, -- Dzenis Burnic
- 227536, -- Moussa Marega
- 226766, -- Daniel Podence
- 226380, -- Hwang Hee Chan
- 224251, -- Robin Zentner
- 223909, -- Alex Palmer
- 222864, -- Carlos Rose
- 220932, -- Lovre Kalinic
- 215568, -- Jose Manuel Naranjo
- 215441, -- Sehrou Guirassy
- 214622, -- Jeremy Toljan
- 214947, -- Jean Philippe Gbamin
- 214096, -- Tim Kleindienst
- 212592, -- Andrew Farrell
- 208230, -- Andreas Samaris
- 207650, -- Emil Krafth
- 206003, -- Yvon Mvogo
- 200647, -- Josip Ilicic
- 199914, -- Allan Marques Loureiro
- 199069, -- Vincent Aboubakar
- 195033, -- Mathew Leckie
- 193942, -- Carlos Colback
- 192774, -- Kostas Manolas
- 184144, -- Nicolas Gaitan
- 183574, -- Max Kruse
- 183280, -- Adil Rami
- 169710, -- Liam Bridcutt
- 143076, -- Alejandro Gomez
- 146439, -- Alvaro Negredo
- 168607, -- Rafinha Ferreira
- 180334, -- Marcelo Guedes
- 183520, -- Fran Merida
- 189606, -- Julian Baumgartlinger
- 190243, -- Marwin Hitz
- 192658, -- Sebastian Jung
- 193469, -- Victor Ruiz Torre
- 194150, -- Simon Moore
- 194996, -- Borja Baston
- 204497, -- Kevin Stoger
- 204846, -- Jamal Blackman
- 219455, -- Jonathan Calleri
- 220182, -- Jason Denayer
- 222096, -- Harry Lewis
- 226677, -- Juninho Bacuna
- 229050, -- Oskar Buur Rasmussen
- 232207, -- Ivan Saponjic
- 232759, -- Josh Tymon
- 234571, -- Mesaque Dju
- 236043, -- Daniel Batty
- 236786, -- Martin Terrier
- 238061, -- Alfie Lewis
- 238186, -- Marcin Bulka
- 239368, -- Mitchel Bakker
- 240175, -- Bruno Jordao
- 240512, -- Luca Ercolani
- 242238, -- Oumar Solet
- 242364, -- Aliou Traore
- 242967, -- Callum Morton
- 243390, -- Ian Carl Poveda
- 243391, -- Iker Pozo
- 243393, -- Taylor Richards
- 243705, -- Florian Chabrolle
- 243710, -- Garissone Innocent
- 244809, -- Marcus Dewhurst
- 245021, -- Loum Mamadou
- 248603, -- Loic Mbe Soh
- 250874, -- Sean Adarkwa
- 251341, -- Marley Ake
- 251493, -- Abdallah Ali Mohamed
- 253568, -- Leonardo Campana
- 255150, -- Niels Nkounkou
- 167905, -- Antonio Valencia
- 186307, -- Marco Fabian
- 186805, -- Jefferson Montero
- 190456, -- Nathaniel Clyne
- 176919, -- Nahuel Guzman
- 186992, -- Jesus Duenas
- 188041, -- Rafael Carioca
- 192350, -- Javier Aquino
- 207715, -- Nicolas Lopez
- 214491 -- Luis Quinones
- }
- -- Don't touch anything below
- function inTable(tbl, item)
- for key, value in pairs(tbl) do
- if value == item then return key end
- end
- return false
- end
- gCTManager:init_ptrs()
- local game_db_manager = gCTManager.game_db_manager
- local memory_manager = gCTManager.memory_manager
- local first_record = game_db_manager.tables["players"]["first_record"]
- local record_size = game_db_manager.tables["players"]["record_size"]
- local written_records = game_db_manager.tables["players"]["written_records"]
- local row = 0
- local current_addr = first_record
- local last_byte = 0
- local is_record_valid = true
- local updated_players = 0
- while true do
- if row >= written_records then
- break
- end
- current_addr = first_record + (record_size*row)
- last_byte = readBytes(current_addr+record_size-1, 1, true)[1]
- is_record_valid = not (bAnd(last_byte, 128) > 0)
- if is_record_valid then
- local playerid = game_db_manager:get_table_record_field_value(current_addr, "players", "playerid")
- local headassetid = game_db_manager:get_table_record_field_value(current_addr, "players", "headassetid")
- if playerid > 0 and headassetid == playerid and inTable(headmodels_map, playerid) then
- game_db_manager:set_table_record_field_value(current_addr, "players", "hashighqualityhead", 1)
- game_db_manager:set_table_record_field_value(current_addr, "players", "headclasscode", 0)
- game_db_manager:set_table_record_field_value(current_addr, "players", "headassetid", playerid)
- updated_players = updated_players + 1
- end
- end
- row = row + 1
- end
- showMessage(string.format("Done\nUpdated head models: %d", updated_players))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement