saints row iv · hook points

Saints Row IV Hook Points

Best places to hook for mods and tools.

Hook Points14 rows

All addresses are for this exact exe build and never move (no ASLR). Statically derived - not tested in-game.

GoalWhereAddressNotes
Run code every framegame_frame_tick00724f40Main thread, once per frame.
Know when gameplay startsgs_in_game_enter00861f70Called when IN_GAME is entered.
Add your own Lua commandslua_gameplay_vm_init00bbd970After it runs, register with lua_pushcclosure (011fb310) + lua_setfield (011fb680).
Run Lua codeluaL_loadbuffer + lua_pcall011fc650 / 011fb960Use the mission engine pointer at 03429790.
Get the playerget_local_player00b639c0Or read the pointer at 02E9DC38.
Change healthhuman+0x1E20-Float; max at +0x1E10.
Change cashplayer+0x1E08-Int, cents.
Intercept all damagehuman_take_damage00adeb60God mode / damage scaling.
Replace any game filemods folder011060e0Drop the file into 'mods' next to the exe.
See every file openedcf_find_file010b7b00
Change weapon upgrade statsweapon_upgrades.xtbl00d6d5c0Data edit, no code needed.
Stop cheats flagging savescheats.xtbl Dont_Flag_As_Cheating00857f30Data edit.
Raise a memory limitsys_alloc_region size in game_memory_budget_init00726620Patch the size constant.
Watch co-op messagesnet_register_msg table02DB9420Hook a handler pointer.

Built from SR4_Game_Explained.xlsx (650 KB), if you'd rather filter it in Excel. SaintsRowIV.exe v1.0.6.1 (Steam). Names are ours unless they're Volition's own Lua or C++ class names.