🏷️ Advanced Water Cistern System
Bring realistic water management to your server! This script adds fully-interactive water cisterns and tanker vehicles with a clean NUI, persistent storage and ox_inventory / ox_target support.
✨ Features
- Realistic water collecting
Players can collect water from rivers/lakes with empty bottles; each bottle fills one by one with a looping animation until the inventory is full or the process is stopped. - Persistent cisterns (JSON)
All registered fixed cisterns and their current water levels are automatically saved indata/cistern.jsonand restored after server restart. - Fixed & mobile cisterns
– Place and register unlimited fixed cisterns on the map.
– Use tanker vehicles to transport water between locations.
– Transfer water from vehicle tanks into fixed cisterns with an in-game selection menu. - Modern NUI interface
A simple, responsive UI built with HTML/JS:
– Shows cistern name, capacity and fill level.
– Buttons to take water, pour one, pour all, or empty vehicle into cistern.
– Only empty bottles are accepted when taking water; only full bottles can be poured. - ox_inventory & ox_target ready
– Context actions appear automatically when you’re near water or a cistern.
– Uses proper item checks and server events.
– No need for “Press E” prompts. - Optimized and lightweight
All actions are server-synchronized and stored efficiently in JSON with backups to avoid data loss.
📦 What’s Included
- Full FiveM resource with client/server Lua and NUI files.
data/cistern.jsonfor persistent storage.- Easy command to register new cisterns:
/cistern_register x y z "Name" capacity - Configuration ready to plug into ox_inventory item names.
💬 Support: https://discord.gg/STNkCwHr
📸 Preview