Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- This script will remove the Black Live Matters from player shirts
- --- 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
- require 'lua/GUI/forms/playerseditorform/consts';
- require 'lua/consts';
- local comp_desc = get_components_description_player_edit()
- -- Might be different in your save, change if needed.
- local BLM_nameid = 34009
- -- players table
- local sizeOf = 112
- -- iterate over all players in 'players' database table
- local i = 0
- local current_playerjerseynameid = 0
- local updated_players = 0
- while true do
- local playerjerseynameid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERJERSEYNAMEID'])
- current_playerjerseynameid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'firstPlayerDataPtr', playerjerseynameid_record.getOffset(0)+(i*sizeOf))), playerjerseynameid_record.Binary.Startbit), (bShl(1, playerjerseynameid_record.Binary.Size) - 1))
- if (current_playerjerseynameid == BLM_nameid) then
- writeQword('playerDataPtr', readPointer('firstPlayerDataPtr') + i*sizeOf)
- local commonnameid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['COMMONNAMEID'])
- local current_commonnameid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'firstPlayerDataPtr', commonnameid_record.getOffset(0)+(i*sizeOf))), commonnameid_record.Binary.Startbit), (bShl(1, commonnameid_record.Binary.Size) - 1))
- if ( current_commonnameid > 0) then
- --- Set playernamejerseyid equal to commonnameid
- ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERJERSEYNAMEID']).Value = current_commonnameid
- else
- --- Set playernamejerseyid equal to lastnameid
- local lastnameid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['LASTNAMEID'])
- local current_lastnameid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'firstPlayerDataPtr', lastnameid_record.getOffset(0)+(i*sizeOf))), lastnameid_record.Binary.Startbit), (bShl(1, lastnameid_record.Binary.Size) - 1))
- ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERJERSEYNAMEID']).Value = current_lastnameid
- end
- updated_players = updated_players + 1
- end
- i = i + 1
- if i >= 26000 then
- break
- end
- end
- showMessage(string.format("Done\nFixed %d players", updated_players))
Add Comment
Please, Sign In to add comment