Skip to content

Instantly share code, notes, and snippets.

View Elliot-Markus-John-Adams's full-sized avatar

Elliot Markus John Adams Elliot-Markus-John-Adams

View GitHub Profile
# Python script for IDA Pro to rename all native functions for Grand Theft Auto V in the GTA5.exe.
# Executable version used for dump: 1.0.2944.0
# Not to be used for online modifications, for educational purposes only.
natives = [
(0x4EDE34FBADD967A6, 0x0160bc58, "WAIT"),
(0xE81651AD79516E48, 0x0160b644, "START_NEW_SCRIPT"),
(0xB8BA7F44DF1575E1, 0x0160b728, "START_NEW_SCRIPT_WITH_ARGS"),
(0xEB1C67C3A5333A92, 0x0160b768, "START_NEW_SCRIPT_WITH_NAME_HASH"),
(0xC4BB298BD441BE78, 0x0160b7ac, "START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS"),
@Elliot-Markus-John-Adams
Elliot-Markus-John-Adams / natives.py
Last active January 9, 2025 15:49
GTA5 Native Renamer
# Python script for IDA Pro to rename all native functions for Grand Theft Auto V in the GTA5.exe.
# Executable version used for dump: 1.0.2824.0
# Not to be used for online modifications, for educational purposes only.
natives = [
( 0x4EDE34FBADD967A6, 0x4EDE34FBADD967A6, 0x15f6978, "WAIT"),
( 0xE81651AD79516E48, 0xe81651ad79516e48, 0x15f6364, "START_NEW_SCRIPT"),
( 0xB8BA7F44DF1575E1, 0xb8ba7f44df1575e1, 0x15f6448, "START_NEW_SCRIPT_WITH_ARGS"),
( 0xEB1C67C3A5333A92, 0xeb1c67c3a5333a92, 0x15f6488, "START_NEW_SCRIPT_WITH_NAME_HASH"),
( 0xC4BB298BD441BE78, 0xc4bb298bd441be78, 0x15f64cc, "START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS"),
_UI_FEED_POST_HELP_TEXT ( 0x049D5C615BD38BAD ) = Text top left of screen ( aka help text)
_UI_FEED_POST_LOCATION_SHARD = ( 0xD05590C1AB38F068 ) = Text at center top of screen ( rectangle with title of area & subtitle)
_UI_FEED_POST_OBJECTIVE = ( 0xCEDBF17EFCC0E4A4 ) = Text at center bottom of screen
_UI_FEED_POST_SAMPLE_TOAST ( 0x26E87218390E6729 ) = Like _UI_FEED_POST_HELP_TEXT but with textures.
_UI_FEED_POST_MISSION_NAME = ( 0x2024F4F333095FB1 ) = Displays text (mission name) at the bottom right of screen.
_UI_FEED_POST_SAMPLE_TOAST_RIGHT = ( 0xB249EBCB30DD88E0 ) = Text at the center right of the screen. Kind of like _UI_FEED_POST_HELP_TEXT but without the rectangle around it.
_UI_FEED_POST_RETICLE_MESSAGE = ( 0x893128CDB4B81FBB ) = Text at the center of the screen. (Maybe used for debug?)
_UI_FEED_POST_ONE_TEXT_SHARD = ( 0x860DDFE97CC94DF0 ) = Text at the center top of the screen, large scaling.
struct sFeedData
@Elliot-Markus-John-Adams
Elliot-Markus-John-Adams / RDR2 Native Renamer
Last active March 27, 2023 16:40
Python script for IDA Pro to rename all native functions for Red Dead Dedemption 2 in the RDR2.exe. Executable version used for dump: 1.0.1491.18
# not to be used for online modifications, for educational purposes only.
natives = [
( 0x4EDE34FBADD967A6, 0x2ae3f50, "WAIT" ),
( 0x83666F9FB8FEBD4B, 0x2ae0264, "TIMERA" ),
( 0xC9D9444186B5A374, 0x2ae0278, "TIMERB" ),
( 0xC1B1E9A034A63A62, 0x2ae01bc, "SETTIMERA" ),
( 0x5AE11BC36633DE4E, 0x2ae01d4, "SETTIMERB" ),
( 0x0000000050597EE2, 0x2ae028c, "TIMESTEP" ),
( 0x0BADBFA3B172435F, 0x2ae0228, "SIN" ),