Home Features Download API
MODDING FRAMEWORK โ€ข v1.5.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.