βοΈConfiguration
The main configuration is handled in Config.lua
and settings.lua
. You can customize various aspects of the shop such as shop locations, notification texts, and payment methods.
Config = {}
Config.Framework = "auto" -- Automatically detect the framework
Config.Debug = false
Config.Shops = { -- Shop locations with interaction distance
{ coords = vector3(1551.9551, 2190.3506, 79.2), distance = 2.5 },
{ coords = vector3(1545.9310, 2199.3469, 78.7333), distance = 2.5 }
}
Config.BlacklistedJobs = { "police", "ambulance", "sheriff" } -- Jobs that are not allowed to access the shop
-- Black-Money handling
Config.BlackMoney = {
Mode = "account", -- "account" = use normal black-money account | "item" = treat black-money as inventory item
ItemName = "black_money" -- Name of the item that represents dirty money when Mode = "item"
}
Config.PaymentMethods = { -- Payment methods accepted by the shop
cash = false, -- Cash payment is not accepted
blackmoney = true -- Black money is accepted
}
Config.OpenHour = 0 -- Opening hour (8 AM in 24-hour format)
Config.CloseHour = 24 -- Closing hour (10 PM in 24-hour format)
Config.ShopClosedNotify = "The shop is closed! Opening hours: %02d:00 - %02d:00." -- Message displayed when the shop is closed
Config.Blips = true -- Enable map blips for the shop
Config.BlipSprite = 52 -- Map icon sprite ID
Config.BlipColor = 1 -- Map icon color
Config.BlipScale = 0.8 -- Map icon scale
Config.BlipName = "Black Market" -- Name of the shop on the map
Config.Marker = true -- Enable markers for shop interaction
Config.MarkerType = 1 -- Marker type ID
Config.MarkerScale = 0.5 -- Marker scale size
Config.MarkerColor = { r = 255, g = 0, b = 0, a = 100 } -- Marker color in RGBA format
Config.NPCs = {
{ Enabled = true, Model = "cs_jimmydisanto", Coords = vector3(1552.0342, 2189.8137, 77.9433), Heading = 1.4488, Scenario = "WORLD_HUMAN_SMOKING" },
{ Enabled = true, Model = "a_m_m_business_01", Coords = vector3(1545.9310, 2199.3469, 78.7333), Heading = 47.8049, Scenario = "WORLD_HUMAN_STAND_IMPATIENT" }
}
-- Notify/Help Notify System
Config.UseCustomNotify = false -- Use custom notify event
Config.UseCustomHelpNotify = false -- Use custom help notify event
Config.Functions = {
["notify"] = function(ntype, title, text, time)
TriggerEvent("delta_hud:notification", "info", "Fishing", text, 5000)
end,
["helpnotify"] = function(key, text)
TriggerEvent("revolution_helpnotify:showHelpNotify", text, "E")
end,
}
Config.ShopText = "~r~[~INPUT_PICKUP~] ~w~Open the Black Market~n~~r~Best deals in the shadows!" -- Interaction text displayed in-game
Config.NotifyTexts = {
NotEnoughMoney = "You do not have enough cash!",
PurchaseSuccessCash = "You purchased %s items for $%s (Cash).",
NotEnoughBlackMoney = "You do not have enough black money!",
PurchaseSuccessBlackMoney = "You purchased %s items for $%s (Black Money).",
JobBlocked = "Your job is restricted from accessing the Black Market!",
InventoryFull = "Your inventory is full!",
WeaponFull = "You already own this weapon!"
}
Config.UseWeaponsAsItems = false
Config.WeaponSpawnWithAmmo = true
Config.ShopItems = {
electro = {
{
name = "phone",
label = "Mobile Phone",
price = {min=200, max=220},
image = "phone.png",
description = "<span style='color:#3498DB;'>A smartphone to stay connected on the go.</span>"
},
{
name = "radio",
label = "Radio",
price = 100,
image = "radio.png",
description = "<span style='color:#1ABC9C;'>A handy radio to communicate at any time.</span>"
},
{
name = "laptop",
label = "Laptop",
price = {min=1200, max=1500},
image = "laptop.png",
description = "<span style='color:#2ECC71;'>A compact laptop. Work from anywhere, anytime.</span>"
},
{
name = "tablet",
label = "Tablet",
price = 800,
image = "tablet.png",
description = "<span style='color:#9B59B6;'>A portable tablet for entertainment and productivity.</span>"
},
{
name = "camera",
label = "Camera",
price = 500,
image = "camera.png",
description = "<span style='color:#EC7063;'>Capture memories with a high-quality camera.</span>"
},
{
name = "headphones",
label = "Headphones",
price = 150,
image = "headphones.png",
description = "<span style='color:#95A5A6;'>Noise-cancelling headphones for immersive sound.</span>"
},
{
name = "charger",
label = "Phone Charger",
price = 35,
image = "charger.png",
description = "<span style='color:#BDC3C7;'>A USB phone charger to keep your battery full.</span>"
},
{
name = "usb_stick",
label = "USB Stick",
price = 20,
image = "usb.png",
description = "<span style='color:#7F8C8D;'>Portable storage device for quick file transfers.</span>"
}
},
other = {
{
name = "weapon_pistol",
label = "Pistol",
price = {min=2500, max=3000},
ammo = 20,
image = "weapon_pistol.png",
description = "<span style='color:#E74C3C;'>A Gun. Perfect for bad People.</span>"
},
{
name = "rose",
label = "Red Rose",
price = 15,
image = "rose.png",
description = "<span style='color:#E74C3C;'>A romantic rose. Perfect for special occasions.</span>"
},
{
name = "needle",
label = "Needle",
price = 5,
image = "needle.png",
description = "<span style='color:#7F8C8D;'>A small but sharp needle. Can come in handy.</span>"
},
{
name = "notebook",
label = "Notebook",
price = 20,
image = "notebook.png",
description = "<span style='color:#2E4053;'>A simple notebook to jot down notes and ideas.</span>"
},
{
name = "postcard",
label = "Postcard",
price = 10,
image = "postcard.png",
description = "<span style='color:#D35400;'>Send greetings with a themed postcard.</span>"
},
{
name = "watch",
label = "Wrist Watch",
price = 150,
image = "watch.png",
description = "<span style='color:#BA4A00;'>An elegant watch to keep track of time in style.</span>"
},
{
name = "umbrella",
label = "Umbrella",
price = 60,
image = "umbrella.png",
description = "<span style='color:#34495E;'>A reliable umbrella for unexpected rain.</span>"
},
{
name = "newspaper",
label = "Newspaper",
price = 5,
image = "newspaper.png",
description = "<span style='color:#BDC3C7;'>Keep up with the latest news and events.</span>"
}
}
}
Note: The above snippet is a condensed version. Your full configuration includes additional logic for items, price finalization, and Discord embed updates.
Config.Discord = {
Webhook = "YOUR_DCTOKEN_HERE",
ServerName = "My RP Server",
Message = "Hello dear players,\nBlack Market Preise have just been updated!",
Color = 9323693,
IconURL = "https://files.catbox.moe/w2vub0.webp",
FooterText = "Your Server Team"
}
Last updated