Home Features Install API
MODDING FRAMEWORK • v1.8.0

Mon Bazou
Modding API

The ultimate toolkit for modding Mon Bazou. Clean, organized, and comprehensive — write mods in minutes, not hours.

28
Modules
30+
Events
BepInEx
Platform

Forget Singletons.
Just Call the API.

🛡️

Stress-Free Modding

We handle null checks, Singleton instancing, and game state validation. Your mod won't crash from missing references.

⚡

Write Mods in Minutes

Functions like "Build Garage" or "Spawn Bolt" are just one line. No more hunting down which GameObject holds the money variable.

🧹

Clean & Readable

Instead of digging through GameC, UiManager, PlayerControl — just type EconomyAPI.Cash. Your code stays maintainable.

🔧

Comprehensive

Covers almost every aspect of the game — from Vehicle Tuning (ECU, Turbo) to World States (Weather, Buildings) to Economy and NPCs.

🔮

Multiplayer Ready

Mods built with this API will be automatically synchronized in MonBazouMP multiplayer in future versions.

📡

Event-Driven

30+ game events via Harmony patches — OnCashReceived, OnFishCaught, OnDayChanged, and more. No polling, just subscribe.

28 Modules.
Every Game System.

Each module is a static class under MonBazouAPI.Modules. Just import and call.

🚗

VehicleAPI

State, ignition, fuel, doors, teleport, find closest vehicle

🏎️

VehicleTuningAPI

Engine power, turbo, RPM, suspension, grip, camber, mass

🔩

VehicleStateAPI

Gears, inputs, lights, doors, hood, trunk, fuel, colors, dents

🧍

PlayerAPI

Position, teleport, held items, bolts, tools, inventory

❤️

NeedsAPI

Hunger, thirst, energy, anxiety, bladder — fill or drain

💰

EconomyAPI

Cash, add/spend money, total earned/spent, afford check

🏠

BuildingAPI

Garage, cottage, bunker, sugar shack, hydro — build instantly

🍯

SugarShackAPI

Syrup, heater, pumps, valves, upgrades, tubing

🌍

WorldAPI

Days, time, day/night, fast nights toggle

🌦️

WeatherAPI

Temperature, clear/rain/snow/fog, set time, add hours

📦

SpawnerAPI

50+ items, bolts, tires, seeds, trees, food, tools, parts

🛒

StoresAPI

Teleport to stores, buy free, unlock items, unlock all

🌱

GardenAPI

Patches, water, fertilize, harvest, grow instantly, trees

🎣

FishingAPI

Fish count, records, spots, caught fish by type

🏁

RacingAPI

Speedway, championship, best times, wins, derby

👮

PoliceAPI

Tickets, bills, criminal record, pay/clear all

🧑‍🤝‍🧑

ActorAPI

All NPCs, friendship levels, positions, max friendship

🍺

DrunkAPI

Drunk level, sober up, vomit, get fully drunk

🎰

SlotMachineAPI

Credits, bets, cash out, reset machine

🐕

PetAPI

Leo (pet) — teleport to player

🏚️

BunkerAPI

Exists check, position, teleport to bunker

⚡

GeneratorAPI

Start/stop, kill switch, hydro status

📋

ToDoListAPI

Tasks, stats, complete task, check status

🏆

AchievementAPI

Check/complete achievements, list all types

📺

UIAPI

Pause, cursor, errors, hints, localized text

🔔

NotificationAPI

Chat bubbles, alerts, success messages, custom popups

📻

RadioAPI

Toggle, next/prev track, is playing

💾

SaveAPI

Int/float/string storage per mod, cross-save compatible

Your First Mod
In 5 Minutes

1

Install BepInEx & API

Drop MonBazouAPI.dll into BepInEx/plugins/. Add it as a Reference in your C# project.

2

Declare Dependency

[BepInPlugin("com.you.modname", "My Mod", "1.0.0")]
[BepInDependency("com.revolution4.monbazouapi")]
public class MyMod : BaseUnityPlugin { }
3

Call Any Module

using MonBazouAPI.Modules;

void Update()
{
    if (Input.GetKeyDown(KeyCode.F5))
    {
        EconomyAPI.AddMoney(100000);

        if (VehicleAPI.IsPlayerInVehicle)
        {
            VehicleTuningAPI.SetTurboBoost(3.5f);
            VehicleTuningAPI.SetRevLimiter(9500);
            NotificationAPI.ShowMessage("🚀 Car Upgraded!");
        }
    }
}

30+ Game Events
Via Harmony Patches

Subscribe to game events — no polling needed. The API hooks into game systems automatically.

💰 Economy

  • OnCashReceived
  • OnCashSpent
  • OnItemBought
  • OnItemUsed

🚗 Vehicle

  • OnVehicleEngineToggled
  • OnVehicleLightsToggled
  • OnVehicleDoorToggled
  • OnVehicleHoodToggled
  • OnVehicleTrunkReleased
  • OnTrailerAttached / Detached

🌱 Garden

  • OnDirtPatchCreated / Removed
  • OnPlantSeeded
  • OnPlantHarvested
  • OnPlotWatered
  • OnPlotFertilized
  • OnPlotDesinfected

🌍 World & Other

  • OnGameLoaded
  • OnDayChanged
  • OnTick
  • OnFishCaught
  • OnQuestCompleted
  • OnFurnitureDoorToggled
  • OnVehicleRadioToggled

Example: Subscribe to Events

void Awake()
{
    GameEvents.OnCashReceived += amount =>
        Logger.LogInfo($"Player earned ${amount}!");

    GameEvents.OnFishCaught += (type, size) =>
        NotificationAPI.ShowChat("Fisher", $"Caught {type}! {size}kg");

    GameEvents.OnDayChanged += day =>
        NeedsAPI.FillAll();
}

Real Code.
Real Mods.

🤖 Auto-Maintenance

Automatically water plants and fix player needs.

GardenAPI.WaterAll();

if (NeedsAPI.Hunger < 20)
{
    NeedsAPI.FillHunger();
    NotificationAPI.ShowMessage("🍔 Fed!");
}

💾 Easy Save System

Save and load mod data with one line each.

SaveAPI.SetInt("MyMod", "Level", 5);
int level = SaveAPI.GetInt("MyMod", "Level", 1);

SaveAPI.SetString("MyMod", "Name", "Player1");
string name = SaveAPI.GetString("MyMod", "Name", "");

🌦️ Weather Controller

Change weather, time, and temperature on the fly.

WeatherAPI.SetClear();
WeatherAPI.SetTemperature(25f);
WeatherAPI.SetTime(12, 0);

WorldAPI.FastNightsEnabled = true;

Mods Powered by
MonBazouAPI

Real mods built on top of the API. Each one uses API modules to interact with the game.

🚀 Want your mod featured here? Build it with MonBazouAPI and let us know!

Build Your
First Mod Today

Download the API, add it as a reference, and start creating.