Navigation
Browse the developer docs

FH2 Mod Platform for .NET

Start here

Where to begin: playing, your first mod, writing mods and the FH2 classes.

By Bartholomew Ho (qiangqiang101) · MIT license · v0.12.0 · 15 Nov 2026 · repository · original page

On this page

FH2 Mod Platform for .NET lets you write FH2 Mod Platform mods for Forza Horizon 2 in C# or VB.NET. You don't need addresses, hooks or memory reads: the FH2 classes give you the game itself.

ANNA.Items("Car").Add("Repair", Sub() Player.Car?.Repair())
AddHandler Game.Tick, Sub() If Player.Car?.SpeedKmh > 300 Then UI.Notify("Slow down", "")
If World.Waypoint IsNot Nothing Then Player.TeleportTo(World.Waypoint.Value)

0.12.0 is a preview. The API can still change before 1.0, and some classes haven't been tested much in the game yet. See Known issues.

Where to start

I want to…Read
Play with .NET modsInstalling, then Troubleshooting if something's wrong
Try it out with one file and no projectScripts
Write a modYour first mod in C# or Your first mod in VB
Look something upThe class pages in the sidebar, starting with Game and Player
Work on the SDK itselfBuilding this repo in the README

What's in the box

  • The platform API in .NET: game text, title-screen entries, files, the game database, settings, pages, hotkeys, commands, hooks and patches.
  • The FH2 classes: your car and every other car, the world, the HUD, sounds, the controller, menus, the mouse and keyboard, and FH2 ANNA's menu.
  • Two ways to ship: hosted (rebuild and reload while the game runs) or NativeAOT (one DLL, like any C++ mod). See Hosted or NativeAOT?.
  • Scripts: drop a .cs or .vb file in a folder and it runs. See Scripts.
  • A console (~ in game): the log as it's written, and a prompt for every mod's commands.
Copied from the wiki page Home at commit 7396a07 · MIT license
MIT License

Copyright (c) 2026 Bartholomew Ho

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.