Last active
January 5, 2024 18:04
-
-
Save JuniorDjjr/dd8832265ea09e405d64f6e1ad864468 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
CLEO script for GTA:SA wrote in GTA3script language (0.2.0) | |
Description: Removes dealer help box by hacking his external script changing 88FE: opcode ("NOT IS_HELP_MESSAGE_BEING_DISPLAYED") | |
into 0485: ("IS_PC_VERSION") (also called as "return_true" by modders) | |
*/ | |
{ | |
NOP | |
LVAR_INT mAdress | |
LVAR_INT tempVar | |
mainloop: | |
WAIT 0 | |
GET_SCRIPT_STRUCT_NAMED DEALER mAdress | |
IF mAdress > NULL | |
mAdress += 16 //base ip | |
READ_MEMORY mAdress 4 FALSE mAdress | |
mAdress += 2980 //offset | |
READ_MEMORY mAdress 1 FALSE tempVar | |
IF tempVar = 0xFE //88FE: | |
WRITE_MEMORY mAdress 2 0x8504 FALSE | |
ENDIF | |
ENDIF | |
GOTO mainloop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment