https://github.com/themusaigen/hook
Hooking library for GTA:SA (MP) in Lua language for 32-bit architecture.
https://github.com/themusaigen/hook
Last synced: about 1 month ago
JSON representation
Hooking library for GTA:SA (MP) in Lua language for 32-bit architecture.
- Host: GitHub
- URL: https://github.com/themusaigen/hook
- Owner: themusaigen
- License: mit
- Created: 2025-01-23T18:51:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T10:19:17.000Z (about 1 month ago)
- Last Synced: 2025-04-04T11:26:59.433Z (about 1 month ago)
- Language: Lua
- Size: 154 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/TsudaKageyu/minhook) (for trampoline code generation)
* Vyacheslav Patkov for implementing Hacker Disassemble Engine.## See also
* hook written using [moonly](https://github.com/themusaigen/moonly)
## License
`hook` licensed under `MIT` license. See `LICENSE` for details.