The Library Scripthook features a hooking library to find pattern, patch function calls/jumps with your own, overwriting opcodes/functions etc. Simply create a lua script or use the ExampleDLL to create your plugin and start creating yor mod. Lua and Library Scripthook for Mafia 3 allowing you to run your own code in Mafia 3.