RISK SCRIPTS
TEBEXDISCORD
  • Welcome to RISK DOCUMENTAION
  • Discord Integration
    • Discord Webhooks
    • Discord Bot Token
  • SCRIPTS
    • πŸ””Notify
      • βš™οΈInstallation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ & Troubleshooting
    • 🚚Cargo Job
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ & Troubleshooting
    • πŸ–ΌοΈLoadingscreen
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • Driving-School
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ & Troubleshooting
    • 🎣FREE AFK Fishing Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🚘Vehicle Shop
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🐝Beekeeping Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ”ŽAdvanced Metal Detector Script
      • πŸ“Editable
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ›οΈ24/7 Market
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ›οΈWeapon Market
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ›οΈBlack Market Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸš—Simple Garage
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🎲4 in Row Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸŽ’Outfit Bag Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • βš™οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ”˜Radial Menu
      • πŸ’‘Installation
      • βš™οΈCommands & Event Triggers
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ—’οΈTicTacToe / X and O
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🏦Simple Banking System
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • βš™οΈAdvanced Crafting System
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🚜Farming System
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ•Pizza Delivery Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • 🍾Spin the Bottle
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸŽ‡Firework Script
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
    • πŸ“¦Blindfold
      • πŸ’‘Installation
      • βš™οΈConfiguration
      • πŸ•΅οΈβ€β™‚οΈUsage
      • ❔FAQ / Troubleshooting
Powered by GitBook
On this page
  1. SCRIPTS
  2. Farming System

Configuration

Main Config (config.lua)

RS = {}

RS.Language = 'en'          -- or 'de', etc.
RS.Framework = "auto"       -- "auto", "esx", or "qbcore"

-- Functions for notifications & help text
RS.notify = function(msg)
    TriggerEvent("delta_hud:notification", "info", "info", msg, 5000)
end

RS.DisplayHelpText = function(str)
    TriggerEvent("revolution_helpnotify:showHelpNotify", str, "E")
end

-- Marker configuration
RS.marker = {
    enabled = true,
    bobUpAndDown = true,
    faceCamera = true,
    rotate = false,
    drawDistance = 50,
    type = 21,
    color = { r=0, g=182, b=242, a=150 },
    scale = { x=1.0, y=1.0, z=1.0 }
}

-- Locales & function
Locales = { ... }  -- Contains 'en', 'de', etc.

RS.UseCustomProgressBar = false
RS.CustomProgressBar = {
    PushProgressbar = function(msg, time) ... end,
    CancelProgressbar = function() ... end
}

-- DetectFramework() helper function, etc.

Key Points

  • RS.Language: Which language to pull from the Locales table (en, de, etc.).

  • RS.Framework: Allows auto-detection of ESX/QBCore or manual selection.

  • RS.marker: Settings for markers (e.g., color, scale, draw distance).

  • RS.notify / RS.DisplayHelpText: Replace these with your server’s preferred notification/help display events if needed.

  • RS.UseCustomProgressBar: If true, uses RS.CustomProgressBar methods instead of default progress bars.

Discord Config (dicsordconfig.lua or similar)

DCConfig = {
  WebhookURL = "https://discord.com/api/webhooks/yourapihere",
  AdminWebhookURL = "https://discord.com/api/webhooks/yourapihere",
  PriceUpdateEmbed = {
    title = "Β» **New Selling Prices After Server Restart** Β«",
    color = 3447003,
    includeTimestamp = true,
    footer = {
      text = "RISK SCRIPTS",
      icon_url = "https://files.catbox.moe/37ed2b.png"
    },
    author = {
      name = "FARMING PRICE",
      icon_url = "https://files.catbox.moe/37ed2b.png"
    },
    fields = {
      {
        name = "Note",
        value = "Prices change every server restart.",
        inline = false
      }
    }
  }
}

Key Points

  • WebhookURL: For general notifications (e.g., price updates).

  • AdminWebhookURL: For logging sales or admin-related events.

  • PriceUpdateEmbed: Controls how price update messages appear in the Discord embed.

Farm Config (farmConfig.lua)

RS.FarmingConfig = {
  farmingPoints = {
    {
      name = 'Kiesel',
      type = 'regular',
      location = vector3(1140.9744, 1978.5764, 60.7245),
      radius = 9,
      cycleTime = 10,
      afkFarmingEnabled = true,
      afkCycleTime = 10,
      itemsToFarm = {
        { name='kiesel', label='Kiesel', amount=1, rarity=1.0 },
        { name='wasser', label='Wasser', amount=1, rarity=1.0 },
        { name='sand', label='Sand', amount=1, rarity=0.05 },
      },
      requireVehicle = true,
      allowedVehicle = 'tractor2',
      allowedVehicleLabel = 'Tractor',
      -- more settings...
    },
    -- more farming points...
  },
  enableToolRequirement = false,
  requiredTool = { name='farm_tool', label='Farming Tool' }
}

Key Points

  • farmingPoints: Each table entry is a separate β€œfarming area” on the map.

  • type: "regular" or "prop". In "prop" mode, you specify prop models to spawn.

  • afkFarmingEnabled: Whether players can let the script repeatedly farm for them until cancelled.

  • itemsToFarm: A list of potential items, each with an amount and a rarity.

  • requireVehicle / allowedVehicle: If true, players must be in or near a specified vehicle model (e.g., tractor2).

  • enableToolRequirement: If true, players need a specified item/tool in their inventory to farm.

Processor & Seller (RS.processor, RS.seller)

RS.processor = {
  {
    name='Kiesel',
    location=vector3(1211.1456,1857.8119,78.9115),
    required={ name='kiesel', amount=10 },
    receive={ name='sand', amount=1 },
    processing_time=20,
    allowed_jobs={'police'},-- or all
    -- more settings...
  },
  -- more processing stations...
}

RS.seller = {
  {
    name='Sand',
    location=vector3(1708.4001, -1610.4089, 113.814),
    item={ name='sand', label='Sand', min_price=150, max_price=250 },
    sell_time=10,
    payment_type='black_money',
    allowed_jobs={'police'},-- or all
    -- more seller stations...
  },
  -- more selling points...
}

Key Points

  • RS.processor: Where raw items (e.g., kiesel) get turned into processed items (sand).

    • processing_time: how many seconds it takes to process.

    • allowed_jobs: only these jobs can use this station.

  • RS.seller: NPC or location to sell processed items.

    • min_price/max_price: dynamic price range.

    • sell_time: how long it takes to sell a batch.

    • payment_type: whether players get paid in cash, black money, or bank.

PreviousInstallationNextUsage

Last updated 5 months ago

🚜
βš™οΈ