βοΈConfiguration
Main Config (config.lua
)
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 theLocales
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
: Iftrue
, usesRS.CustomProgressBar
methods instead of default progress bars.
Discord Config (dicsordconfig.lua
or similar)
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
)
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 anamount
and ararity
.requireVehicle
/a
llowedVehicle
: Iftrue
, players must be in or near a specified vehicle model (e.g.,tractor2
).enableToolRequirement
: Iftrue
, players need a specified item/tool in their inventory to farm.
Processor & Seller (RS.processor
, RS.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.
Last updated