Your web browser, Internet Explorer is out of date.

Please download one of these up-to-date, free and excellent browsers:

Microsoft Edge, Mozilla Firefox, Google Chrome or Brave Browser

Mafia 3 ScriptHook

Script Hook

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

List of all available commands follows in the next few hours, meanwhile you can tryout Mafia2’s scripting commands (which can be found here), as they don’t have really changed.

Mafia 3 Script Hook is completly open source and can be found at https://github.com/MartinJK/Mafia3ScriptHook

If you want to reload Lua scripts while being in the game, simply press F1 and all Lua scripts in side the scripts/ folder will reload.

Scripting Documentation

A list of functions; parameters; strings can be found here: https://mega.nz/#F!VscigCQQ!yl3PBpGpZ075v6K5x6PICA

If you need help or are experiencing troubles, don’t hesitate to ask for help: https://videogamemods.com/mafia/forums/topic/mafia-3-modding-mega-thread/

ScriptHook implemented functions:

printToLog("YourLogfile", "String"); // e.g. printToLog("Test.log", "Test");
bindKey("k", "ContentToExecute") // e.g. bindKey("k", "printToLog('Test.log', 'test')");
unbindKey("k"); // (removes all bindings of key "k", even in other scripts)
setTimeout("5000", "ContentToExecute") // e.g.  setTimeout("5000",  "printToLog('Test.log', 'test')"); (5000 = 5000ms)

An example file for scripting can be found here: https://github.com/MartinJK/Mafia3ScriptHook/blob/master/files/scripts/dev.lua

NOTE
Please be careful with pressing keys, spaming keys / executing the same things too often in a short time period can cause the game to crash!


Video Game Mods

Video Game Mods is bringing modding communities together under a unified network. The original community creator retains control over the content and community for the game.

Start your own Modding Community

We allow modders to manage their own modding community using our platform for hosting and sharing mods, unlimited usage to grow your community without the hassle of hosting.

Get in touch

Follow us on social media

Please take a moment to follow us on social media, we will be posting new updates and featued mods. Theres going to be exciting new competitions for great prizes.