Saltar al contenido principal

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.',
}
}
}
}
}