Config Preview
Dream Secret Dealerā
DreamCore.lua
DreamLocales = {} -- Do not touch this!!!
DreamFramework = {} -- Do not touch this!!!
DreamCore = {} -- Do not touch this!!!
-- Dream Secret Dealer Settings
DreamCore.Language = 'en'
DreamCore.GiveCredits = true -- Set to false if you don't want to give credits
DreamCore.Blip = {
dealerSpawning = {
car = {
isMain = {
show = true,
sprite = 426,
scale = 1.0,
color = 35
},
support = {
show = true,
sprite = 818,
scale = 0.8,
color = 44
}
},
heli = {
isMain = {
show = true,
sprite = 422,
scale = 1.0,
color = 35
},
support = {
show = true,
sprite = 422,
scale = 0.8,
color = 44
}
}
}
}
DreamCore.InformantsCooldown = 60000 -- Time in ms for the informant cooldown after a conversation
DreamCore.Informants = {
[1] = {
name = 'Tony',
model = 'csb_ballasog',
coords = vector4(128.8308, -1945.3152, 21.15, 45.5087),
blip = {
show = false, -- Show blip for the informant to everyone
item = 'bigt_note', -- Only show when the player has the item | Irrelevant if show = true
sprite = 280,
scale = 0.8,
color = 5
},
prop = {
show = true,
model = 'v_ret_fh_chair01',
offset = vector3(0.2, 0.0, -1.0),
heading = 250.00,
attach = function(PedEntity, PropEntity)
AttachEntityToEntity(
PedEntity,
PropEntity,
-1,
0.0, -0.1, -1.3,
0.0, 0.0, 175.0,
false, false, false, false, 2, true
)
end
},
animation = { "timetable@michael@on_chairidle_a", "on_chair_a" },
notification = {
icon = 'CHAR_MP_SNITCH', -- Notification Icon (https://wiki.rage.mp/wiki/Notification_Pictures)
},
cam = {
duration = 5000,
speed = 0.75,
playerAnimation = { "missheistdockssetup1clipboard@idle_a", "idle_a" }
},
requirements = {
neededRequirementPoints = 60,
possibleRequirements = {
-- ā”ļø Define the possible requirements here. This will be checked when the player wants to meet the secret dealer.
{
type = 'weapon',
stages = {
{ weapon = 'WEAPON_PISTOL', points = 5 },
{ weapon = 'WEAPON_COMBATPISTOL', points = 10 },
{ weapon = 'WEAPON_PISTOL50', points = 15 },
{ weapon = 'WEAPON_ASSAULTRIFLE', points = 40 },
-- Add more weapons here
}
},
{
type = 'item',
stages = {
{ item = 'weed', points = 5 },
{ item = 'meth', points = 10 },
{ item = 'coke', points = 15 },
-- Add more items here
}
},
-- Tuncion XP Integration
-- ā¹ļø Will be ignored if DreamCore.TuncionXP.activate = false
-- ā”ļø You only get points for the highest reached stage
{
type = 'tuncion_xp',
stages = {
{ minLevel = 2, points = 10 },
{ minLevel = 5, points = 20 },
{ minLevel = 8, points = 30 },
{ minLevel = 10, points = 40 },
-- Add more levels here
}
}
}
}
}
}
DreamCore.SpawnSecretDealer = {
-- ā”ļø Define the logic for when the secret dealer should appear.
minCops = 3, -- š® Minimum number of cops required online
minPlayer = 2, -- š„ Minimum number of players requested
timeRestriction = { -- ā° Time restriction for the dealer to appear (Real Life Time)
activate = true, -- Set to false to disable time restriction
from = 11, -- 11:00
to = 22 -- 22:00
},
spawnChance = 25, -- Percentage chance (0-100) that the dealer will have the chance to spawn
playerRequestMultiplier = {
activate = true, -- Set to false to disable the player multiplier
[1] = 1.0, -- No multiplier
[2] = 0.9, -- 10% faster
[3] = 0.8, -- 20% faster
[4] = 0.7, -- 30% faster
[5] = 0.6 -- 40% faster
-- Add more here
},
timePeriod = { -- Time periods in ms for the dealer to appear
1 * 60000, -- 1 minute
45 * 60000 -- 45 minutes
}
}
DreamCore.ShowRemainingDealerTime = true -- Shows the remaining time until the dealer despawns in the shop menu
DreamCore.ShowPriceTypeInfo = true -- Shows a warning for dynamic prices and info for fixed prices in the shop menu
DreamCore.SecretDealer = {
-- ā”ļø Define the secret dealers here. You can add multiple dealers with different vehicles, peds, and shops.
-- ā ļø These are just examples ā you need to customize everything to fit your needs! ā ļø
-- It can be really powerful if you add your own items or weapons to integrate into your roleplay story.
-- EXAMPLES REMOVE FOR DOCS BECAUSE OF PERFORMANCE!!!
}
DreamCore.TuncionXP = {
-- š Tuncion XP integration ā https://github.com/Tuncion/tuncion_xp
-- ā” activate = true = use XP/Level system from Tuncion
-- ā activate = false = ignore / no XP integration
-- šÆ adjust XP values below for specific actions
activate = false,
resourceName = 'tuncion_xp',
-- š Actions (XP)
buyItem = 25,
requestDealer = 5
}
DreamCore.Inventory = function()
if GetResourceState('ox_inventory') == 'started' then
return 'ox'
else
return 'default' -- For all other inventory systems which not have special systems
end
end
DreamCore.Target = function()
if GetResourceState('ox_target') == 'started' then
return 'ox'
elseif GetResourceState('qb-target') == 'started' then
return 'qb'
else
return error('No target system found! Please adjust DreamCore.Target!!!')
end
end
DreamCore.Notify = function(text, type, duration)
-- Always clientside
-- Params:
-- text: message: string
-- type: info, success, warning, error
-- duration: time in ms
-- Default Values
local type = type or 'info'
local duration = duration or 5000
-- Ox Notification (ox_lib)
lib.notify({
type = type,
position = 'center-right',
title = DreamLocales[DreamCore.Language]['NotifyHeader'],
description = text,
duration = duration
})
end
DreamCoreExt.lua
DreamCore.Webhooks = {
Enabled = true,
-- Base Data
Color = '10169855', -- Change the Color of the Webhook
Author = 'Dream Secret Dealer', -- Change the Author of the Webhook
IconURL = 'https://i.imgur.com/vDc2B6l.png', -- Change the IconURL of the Webhook
-- Webhook URLs
BuyItem = 'https://canary.discord.com/api/webhooks/XXX/XXX',
SpawnDealer = 'https://canary.discord.com/api/webhooks/XXX/XXX',
}
Dream Secret Dealer Localesā
Reminder: You can create your own locale file in your language š
en.lua
DreamLocales['en'] = {
['NotifyHeader'] = 'Secret Dealer',
['Informant'] = {
['Talk'] = 'Talk',
['Conversation'] = {
['Cooldown'] = {
['Title'] = 'Secret ???',
['Description'] = 'Ayo, get the fuck outta here, homie!'
},
['AlreadyContacted'] = {
['Title'] = 'Secret ???',
['Description'] = 'Ayo, you already talked to this dude, chill out!'
},
['Newbie'] = {
['Title'] = 'Secret ???',
['Description'] = 'Yo bro, you lost or somethinā? Haha, lilā man, better head back home to ya mama.'
},
['Eliable'] = {
['Title'] = 'Secret Dealer',
['Description'] = 'Yo, I know a homie, he ābout to pull up in the hood soon wit a mad stack. Dudeās all ābout them moves, feel me? But damn, the pigs be on they shit right now. Iāll hit you when the coastās clean, bro.'
}
}
},
['SecretDealer'] = {
['Blip'] = {
['Main'] = 'Secret Dealer [Main]',
['Support'] = 'Secret Dealer [Support]',
},
['Spawn'] = {
['Title'] = 'Secret Dealer',
['Description'] = 'Ay yo, he pulled up heavy, bro ā keep it low, he got them packs on deck, move smooth, ya feel me?'
},
['Support'] = {
['Talk'] = 'Talk',
['Unknown'] = 'Unknown',
['ToYou'] = 'To you',
['RandomPhrases'] = {
['Random1'] = 'Yo, you got the stuff? No cops around, right?',
['Random2'] = "Aināt no freebies, ese. You pay or you bounce.",
['Random3'] = "Man, I been standinā here all day. Aināt no one movinā weight like us.",
['Random4'] = "Better keep your mouth shut, homie. The feds listeninā.",
['Random5'] = "Heh, last fool tried to mess with us still limpinā, bro.",
['Random6'] = "Yo, yo, chill! You lookinā like a cop, fool.",
['Random7'] = "Hah, you smell that? Thatās money, baby!",
['Random8'] = "Ayo, donāt touch me, ese. You donāt wanna catch these hands.",
['Random9'] = "Yo, I aināt seen my mama in two weeks, bro. This grind real.",
['Random10'] = "You tryna act tough? Iāll show you tough, fool.",
['Random11'] = "Man, I miss my car⦠got impounded last week. F*ck the pigs!",
['Random12'] = "Haha! You see that? Thatās what real hustle look like, homes.",
['Random13'] = "Yo, you ever been to El Burro Heights? Wild sh*t down there.",
['Random14'] = "Bruh, my cousin got locked up again. Same damn story.",
['Random15'] = "Iām just here so I donāt get shot, you feel me?",
['Random16'] = "Psst⦠you hear that? Nah? Exactly. Keep it that way.",
['Random17'] = "Yo, I donāt trust that dude. He got snitch vibes.",
['Random18'] = "We makinā moves, hermano. Big ones.",
['Random19'] = "Ayo, this aināt no playground. Keep steppinā if you broke.",
['Random20'] = "Haha! You funny, dawg. But not funnier than my Glock.",
['Random21'] = "You ever seen a kilo up close? Didnāt think so.",
['Random22'] = "Damn, I need a taco, man. Been guardinā this fool all day.",
['Random23'] = "Stay cool, mi pana. Trouble comes quick out here.",
['Random24'] = "Yo, that new guy better not screw this up.",
['Random25'] = "Aināt nobody touchinā my corner, bro. Nobody.",
['Random26'] = "Bro⦠you ever just stare at the sky and wonder⦠how broke you are?",
['Random27'] = "Keep movinā, fool. Aināt no sightseeing here.",
['Random28'] = "Haha, I told you! We run this block, carnal!",
['Random29'] = "Yo, got a cig? Nah? Then why you talkinā to me?",
['Random30'] = "They say money donāt buy happiness⦠yeah, right.",
['Random31'] = "You lookinā lost, homie. You sure you in the right hood?",
['Random32'] = "Donāt make me call the boss, homes. You donāt want that smoke.",
['Random33'] = "Yo, I swear, this heat makinā me see ghosts, bro.",
['Random34'] = "Fool said heād pay me tomorrow⦠been three tomorrows now.",
['Random35'] = "Haha, relax bro, I aināt gonna rob you⦠yet.",
-- ā¹ļø Feel free to add more random phrases
}
},
['Seller'] = {
['TargetShop'] = 'Secret Dealer [Shop]',
['Menu'] = {
['Title'] = 'š¼ Secret Dealer',
['NoItems'] = 'No items available for sale',
['RemainingTime'] = {
['Title'] = 'Remaining Time',
['Description'] = 'The dealer will leave in %s seconds'
},
['Category'] = {
['Description'] = 'Click here to see the available products'
},
['Item'] = {
['Description'] = 'Price: %s$',
['Metadata'] = {
['DynamicPrices'] = {
['Title'] = 'ā ļø Warning',
['Description'] = 'The prices are dynamic and may vary significantly.'
},
['FixedPrices'] = {
['Title'] = 'ā ļø Warning',
['Description'] = 'The prices are fixed and will not change.'
}
}
},
['Dialog'] = {
['Title'] = 'š¼ Secret Dealer',
['Description'] = 'š¦ Item: %s \n šø Price: %s$ \n\nAre you sure you want to buy this item?',
['Buy'] = 'ā
Buy',
['Cancel'] = 'ā Cancel'
}
},
['Buy'] = {
['Success'] = 'You successfully bought %s for %s$',
['Error'] = {
['ItemNotFound'] = 'The item you are trying to buy does not exist.',
['NotEnoughMoney'] = 'You do not have enough money to buy this item.',
['InvalidItem'] = 'The item you are trying to buy is invalid.',
['InventoryFull'] = 'You cannot carry that much of this item.',
}
}
}
}
}