Skip to content

themusaigen/hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hook

Hooking library written for GTA:SA (MP) in Lua language for 32-bit architecture.

Features

  • Auto-size detection.
  • Relay (hook object in callback parameters)
  • Hook installation without a callback (thanks to the relays)
  • Code generation for trampoline (thanks MinHook)
  • Hook-on-hook support.
  • Unloading in any conditions.
  • CPU context (general-purpose registers) retrieving.

Installation

Extract src directory to your moonloader/lib directory.

Usage / Examples

See demo/init.lua for examples and usage.

Credits

  • MinHook (for trampoline code generation)
  • Vyacheslav Patkov for implementing Hacker Disassemble Engine.

See also

License

hook licensed under MIT license. See LICENSE for details.

About

Hooking library for GTA:SA (MP) in Lua language for 32-bit architecture.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages