Repository navigation
Home
Bartholomew Ho edited this page Nov 10, 2026
·
3 revisions
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.10.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.
| I want to… | Read |
|---|---|
| Play with .NET mods | Installing, then Troubleshooting if something's wrong |
| Try it out with one file and no project | Scripts |
| Write a mod | Your first mod in C# or Your first mod in VB |
| Look something up | The class pages in the sidebar, starting with Game and Player |
| Work on the SDK itself | Building this repo in the README |
- The platform API in .NET: game text, title-screen entries, files, the game database, settings, pages, hotkeys, commands, hooks and patches.
-
The
FH2classes: 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
.csor.vbfile 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.
Playing
Getting started
Writing mods
The FH2 classes
- Game
- Player
- Vehicle
- World
- Garage, CarCatalog, Profile
- UI and Hud
- Camera
- Audio
- ANNA
- Skills
- DebugOverlay
- Controller
- GameInput
- GameWindow
- Menus and UiElement
- SettingsTile
- ButtonIcons and Picture
- MapView, PhotoCamera, GarageCamera
More