Skip to content

πŸ₯ƒ FX-MOONSHINEV2 ​

Advanced moonshine production system for RedM with interiors, crafting, delivery missions, farming, and law mechanics.


πŸ“¦ INSTALLATION ​

bash
ensure fx-moonshinev2

β€’ Place the script inside resources/fx-moonshinev2 β€’ Add ensure fx-moonshinev2 to your server.cfg β€’ Restart your server β€’ Make sure oxmysql and objectloader are started


βš™οΈ DEPENDENCIES ​

text
oxmysql
objectloader

β€’ oxmysql β†’ required for database system β€’ objectloader β†’ required for props and map objects β€’ Script will not work without these


πŸ—„οΈ SQL INSTALLATION ​

sql
CREATE TABLE IF NOT EXISTS `fx_moonshinev2` (...);
CREATE TABLE IF NOT EXISTS `fx_moonshinev2_shells` (...);

β€’ Stores moonshine machines and interiors β€’ Required for saving player data


πŸ“¦ VORP ITEM INSTALL ​

sql
('moonshinetable', 'Moonshine Distiller Machine', ...),
('moonshine_original', 'Moonshine Original', ...),
('moonshine_blueflame', 'Moonshine Blueflame', ...),
('moonshine_red', 'Moonshine Redflame', ...),
('mulberry', 'Mulberry', ...),
('blackmulberry', 'Black Mulberry', ...),
('grape', 'Grape', ...),
('mp001_p_mp_still01x', 'Moonshine Still 1', ...)

β€’ Required items for VORP inventory β€’ Includes machines, materials, and production items β€’ Item names must match config


πŸ“¦ RSG ITEM INSTALL ​

lua
moonshine_original = { name = 'moonshine_original', label = 'Moonshine Original', ... },
mulberry = { name = 'mulberry', label = 'Mulberry', ... },
mp001_p_mp_still01x = { name = 'mp001_p_mp_still01x', label = 'Moonshine Still', ... },

β€’ Required items for RSG inventory β€’ Same items must exist as VORP β€’ Must be usable items


βš™οΈ BASIC SETTINGS ​

lua
Config.Language = "en"
Config.MaximumCreateMoonshineTable = 2
Config.MaxCraftMultipler = 5

β€’ Language β†’ system language β€’ MaximumCreateMoonshineTable β†’ max still per player β€’ MaxCraftMultipler β†’ max batch crafting


🏠 INTERIOR SYSTEM ​

lua
Config.Shells = {
  ["moonshine_interior1"] = {
    interiorid = 77313
  }
}

β€’ Defines moonshine interiors β€’ Each player can own interiors β€’ Includes stash, NPC, menu, camera


lua
Config.AllowMoonshineInShell = false

β€’ Prevent placing machines inside interiors β€’ Avoids exploit setups


πŸ§ͺ CRAFT SYSTEM ​

lua
Config.Moonshines = {
  ["mp006_p_moonshiner_still01x"] = {
    items = {
      {
        label = "Moonshine Original",
      }
    }
  }
}

β€’ Defines crafting recipes β€’ Each still has unique production list β€’ Supports XP and progression


lua
requiredItems = {
  {name = "blackmulberry", count = 1}
}

β€’ Required materials for crafting


lua
rewardItems = {
  {name="moonshine_original", count = 1}
}

β€’ Items given after crafting


πŸ“ˆ LEVEL SYSTEM ​

lua
Config.Levels = {
  [1] = 1000,
  [2] = 2000,
}

β€’ Defines XP progression β€’ Unlocks recipes


🌾 FARMING SYSTEM ​

lua
Config.FarmingZone = {
  ["mulberry"] = {
    item = "mulberry"
  }
}

β€’ Resource gathering zones β€’ Used for crafting


🚚 DELIVERY SYSTEM ​

lua
Config.Customers = {
  {
    name = "BILL WILLIAMSON"
  }
}

β€’ NPC buyers for moonshine β€’ Generates delivery missions


lua
deliveryHours = {
  enabled = true,
  start = 20,
  finish = 1
}

β€’ Time-based delivery system


πŸš” LAW SYSTEM ​

lua
Config.LawmenJobs = {
  ["sheriff"] = true
}

β€’ Defines law roles


lua
Config.ActiveLawmenPlayerCount = 2

β€’ Minimum required lawmen


πŸ’£ EXPLOSION SYSTEM ​

lua
Config.ExplosionItem = "dynamite"
Config.ExplosionTime = 30

β€’ Allows destroying moonshine setups


lua
Config.ExplosionDefuseItem = "lockpick"

β€’ Defuse mechanic


🎯 PROMPT SYSTEM ​

lua
Config.Prompts = {
  ["interactMoonshine"] = {
    Label = "Moonshine Distiller Machine"
  }
}

β€’ Interaction system


πŸ”” NOTIFY SYSTEM ​

lua
Notify({
  text = "Production started",
  type = "success"
})

β€’ Framework-based notifications


βš™οΈ SERVER CONFIG ​

lua
SV_Config.Webhook = {
  url = ""
}

β€’ Discord logging system


⚠️ IMPORTANT NOTES ​

β€’ oxmysql and objectloader must be running β€’ SQL tables must be installed β€’ Item names must match config β€’ Players need materials for crafting β€’ Interiors are limited


🚨 COMMON MISTAKES ​

β€’ Craft not working β†’ missing items β€’ Interior not spawning β†’ wrong config β€’ Delivery not starting β†’ no mission β€’ Explosion not working β†’ missing item β€’ XP not increasing β†’ config issue


🏁 SUMMARY ​

FX-MOONSHINEV2 provides:

β€’ Full production system β€’ Interior system β€’ Delivery missions β€’ Farming system β€’ Law mechanics β€’ Advanced crafting & leveling


Β© Fixitfy Development

⚑ Premium RedM scripts crafted with performance & quality in mind.