An open API service indexing awesome lists of open source software.

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.

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.