Installation

2 min readUpdated 2 weeks ago

Overview

ML Liquid Stations manages placeable liquid containers. Players place water and fuel tanks, pour liquid in, fill bottles and jerry cans from them, and repair damaged tanks. Tanks show a 3D fill gauge, collect rain, wear down over time, and can also be fixed stations on the map.

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: tank positions, owner, liquid level, health and fixed station IDs
  • ml_water_stations_base_machines: tanks built as Outpost base pieces

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.