Installation
Overview
Placeable crafting stations for FiveM with fuel, durability, and timed cooking slots. Stations can be player-placed (persistent or temporary) or defined as fixed world points in config. XP system supports four providers: internal, ml_skills, DevHub, or custom.
Quick Start
- Download from CFX Portal
- Extract to your
resourcesfolder asml_smelter_stations - Add to
server.cfg:
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_smelter_stationsml_smelter_stations must start AFTER ml_bridge.
- Register the station placement items in your inventory system (see Item Registration below)
- Restart the server
Database
Tables are created automatically on first start:
ml_smelter_stations: Stores persistent and fixed station positions, metadata (fuel state, cooking slots, durability), and ownership
ml_smelter_xp: Stores player XP and level data (only created when Config.XP.Provider = 'internal')
Item Registration
Register the following items in your inventory system. Each station type in Config.Stations requires a placement item:
campfire_kit: Places a temporary campfireforge_kit: Places a persistent forge
Item names are configurable per station in Config.Stations[stationType].item.
Station items support a furnacelife metadata field (0-100) that preserves station durability when picked up and re-placed. The metadata is registered automatically on resource start.
Verify
After starting, the version banner prints to the server console:
1[ml_smelter_stations] Resource started
2[ml_smelter_stations] Developed by Micio Mods | miciomods.itWith `Config.Debug = true`, the internal XP provider also logs when its table is ready:
1[ml_smelter_stations] [XP] Internal database table ready.- Station props not spawning. Verify the prop model names in
Config.Stationsare valid GTA V props. EnableConfig.Debug = trueto see spawn logs. - Recipes not showing. Check that the recipe
categorymatches one of the station'scook_categories. - XP not tracking. Confirm
Config.XP.Enabled = trueand theProvidervalue matches a valid option ('internal','ml_skills','devhub','custom'). - Station limit reached. Players can own up to
Config.MaxStationsPerPlayerstations. Fixed stations do not count toward this limit. - Old stations not being deleted.
Config.DeleteOldmust be a number (days). CheckConfig.DeleteOptionsfor conditions that prevent deletion (e.g.,DeleteOnlyIfEmpty).