Installation

2 min readUpdated Today

Overview

ML Water Stations manages placeable liquid containers. Players place tanks, fill them with liquids (water, fuel, oil, chemicals), extract into bottles or jerry cans, and repair damaged tanks. Includes 3D DUI fill indicators, weather-based rain collection, decay mechanics, and fixed station support.

Quick Start

  1. Download from CFX Portal
  2. Extract to your resources folder as ml_water_stations
  3. Add to server.cfg:
server.cfg
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_water_stations
Load Order

ml_water_stations must start AFTER ml_bridge.

Database

The table is created automatically on first start:

ml_water_stations: Stores tank positions, owner, liquid level, health, and fixed station IDs

Item Registration

Register the items from _INSTALL/ox_items.txt in your inventory system:

  • small_water_tank, medium_water_tank, large_water_tank: Placeable tank items
  • bottle_empty, jug_empty, bucket_empty: Empty containers for liquid extraction
  • bottle_water, jug_water, bucket_water: Filled water containers
  • bottle_fuel, jug_fuel, bucket_fuel: Filled fuel containers
  • steel: Repair material

Copy images from _INSTALL/images/ into your inventory's image folder.

Verify

After starting, the console will print:

lua
1[ml_water_stations] Resource started
2[ml_water_stations] Developed by Micio Mods | miciomods.it
  • Tank model not loading. Ensure your server is not blocking base GTA props (prop_air_watertank1, etc.). Custom props must be streamed correctly.
  • Can't collect liquid. Verify collection items (bottle_empty, bucket_empty) are registered in your inventory and match names in Config.FillItems.
  • DUI circle not appearing. Check Config.ENABLE_DUI = true and that the player is within duiDistance of the tank.
  • Rain not filling tanks. Verify Config.EnableRainCollection = true and the tank's liquid type is listed in Config.RainyFillableTypes.