Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QBCore = exports['qb-core']:GetCoreObject()
- Config = {
- Debug = false,
- Locale = 'en',
- newQBinventory = true,
- Progress = 'ox', -- 'qb' or 'ox'
- useXP = true, -- Check editable/server_functions.lua to add your own skill system
- -- Pickpocket Configuration
- pickpocket = {
- pickpocket_key = 'E', -- Changeable via Fivem Keybinds
- distance = 1.5, -- Recommended: 1.5
- robberyChance = 20, -- Chance to pickpocket
- stumbleChance = 22,
- fightBack = true, -- Set to false to disable NPC fight back
- fightChance = 11, -- 8% chance NPC fights back
- coolDown = 30 * 1000 -- In seconds
- },
- -- Loot/Rewards Configuration
- loot = {
- -- If a wallet/purse is given, then players won't get item loot, only the wallet or purse
- findLoot = 65, -- Chance of finding anything while pickpocketing
- walletChance = 33, -- Chance of receiving `wallet` or `purse` item
- findWalletCash = 68, -- Chance of finding cash in wallet or purse
- findWalletItems = 40, -- Chance of finding cash in wallet or purse
- itemAmount = { min = 1, max = 2 },
- reward = { min = 60, max = 100 },
- dirty = true, -- Enable dirty money
- dirtyItem = 'rolls',
- -- I recommend setting the item rewards for wallet/purses the same in all my resources if you use them
- wallet = { "cokebaggy", "flush_cutter", "pocket_lint" },
- purse = { "stolen_phone", "cokebaggy", "microfibercloth", "stolen_tablet", "wallet", "flush_cutter", "stolen_diamond_ring", "labkey", "rope", "drug_phone", "bandage", "pistol_mk2_barrel" },
- -- NPC Loot Tables
- npcLootTables = {
- ballas = { "cokebaggy", "lockpick", "drug_phone", "joint" },
- vagos = { "meth", "lockpick", "stolen_phone", "bandage" },
- lostmc = { "cokebaggy", "painkillers", "cryptostick", "joint" },
- rich = { "cokebaggy", "crisps", "cryptostick", "stolen_rolex" },
- civilians = { "crisps", "binoculars", "pocket_lint", "painkillers", "lighter" },
- bums = { "lighter", "meth", "plastic", "cokebaggy", "water_bottle", "pocket_lint" },
- default = { "lighter", "crisps", "binoculars", "pocket_lint" } -- Fallback loot
- },
- npcModels = {
- ballas = { [`g_m_y_ballaeast_01`] = true, [`g_m_y_ballaorig_01`] = true, [`g_m_y_ballasout_01`] = true, [`csb_ballasog`] = true, [`g_f_y_ballas_01`] = true },
- vagos = { [`g_m_y_mexgang_01`] = true, [`g_m_y_mexgoon_01`] = true, [`g_m_y_mexgoon_02`] = true, [`g_f_y_vagos_01`] = true, [`g_m_y_mexgoon_03`] = true },
- lostmc = { [`g_m_y_lost_01`] = true, [`g_m_y_lost_02`] = true, [`g_m_y_lost_03`] = true },
- rich = { [`s_m_m_bankman`] = true, [`u_m_m_bankman`] = true },
- bums = { [`a_m_o_tramp_01`] = true, [`a_f_m_tramp_01`] = true, [`u_m_y_militarybum`] = true, [`a_m_m_tramp_01`] = true, [`a_m_y_stbla_02`] = true, [`a_f_m_skidrow_01`] = true, [`a_f_m_trampbeac_01`] = true, [`a_f_y_rurmeth_01`] = true, [`a_m_m_mexlabor_01`] = true, [`a_m_m_mexcntry_01`] = true, [`a_m_o_beach_01`] = true, [`a_m_o_acult_02`] = true, [`a_m_o_soucent_03`] = true, [`a_m_o_soucent_02`] = true },
- civilians = { [`a_m_y_business_01`] = true, [`a_f_y_business_01`] = true, [`a_m_m_farmer_01`] = true }
- }
- },
- -- Alert Settings
- alertInfo = {
- alertChance = 70, -- 70% chance of police being notified
- dispatch = 'ps-dispatch' -- Alert handler | Check `editable/cl_alert.lua` to add your own!
- },
- -- Ped Settings
- pedSettings = {
- pedTypes = 'all', -- 'all', 'allowed', or 'denied' for NPC types
- pedList = {
- allowed = {
- [`a_f_m_soucentmc_01`] = true,
- [`a_f_m_tourist_01`] = true,
- [`a_f_m_soucent_02`] = true,
- [`a_m_m_farmer_01`] = true,
- [`a_m_m_malibu_01`] = true,
- [`a_m_m_soucent_01`] = true,
- [`a_m_m_bevhills_01`] = true,
- },
- denied = {
- [`mp_m_shopkeep_01`] = false,
- [`csb_ballasog`] = false,
- [`ig_ballasog`] = false,
- [`g_f_y_ballas_01`] = false,
- [`g_m_y_ballaeast_01`] = false,
- [`g_m_y_ballaorig_01`] = false,
- [`g_m_y_ballasout_01`] = false
- }
- }
- },
- -- Item Creation and Skill Learning
- auto_add_items = false, -- QB ONLY!
- useWallet = false, -- Set to false if you use my other theft resources and have this enabled in 1 of them. ONLY ENABLE ONCE!
- npcWallet = {
- wallet = { itemName = "wallet", label = "Wallet", weight = 100, type = 'item', image = 'wallet.png' },
- purse = { itemName = "purse", label = "Purse", weight = 100, type = 'item', image = 'purse.png' }
- },
- -- Pickpocket Skill Handling
- learnSkill = {
- enabled = true,
- useQuestions = true,
- ["pp_book_1"] = { model = "prop_novel_01", readingTime = 15000, correctAnswers = 10, learnskillChance = 3, label = "Pickpocket for Dummies Volume 1", weight = 200, type = "item", image = "pickpocket_book.png"},
- ["pp_book_2"] = { model = "prop_novel_01", readingTime = 12000, correctAnswers = 9, learnskillChance = 5, label = "Pickpocket for Dummies Volume 2", weight = 200, type = "item", image = "pickpocket_book.png"},
- ["pp_book_3"] = { model = "prop_novel_01", readingTime = 10000, correctAnswers = 8, learnskillChance = 8, label = "Pickpocket for Dummies Volume 3", weight = 200, type = "item", image = "pickpocket_book.png"}
- },
- -- Quiz Questions
- questions = {
- {question = "What do pickpockets look for first?", options = {"Wallets", "Keys", "Phones"}, correct = 1},
- {question = "Best way to pickpocket unnoticed?", options = {"Quick distraction", "Stealthy approach", "Large crowd"}, correct = 2},
- {question = "Easiest clothing for pickpocketing?", options = {"Loose pants", "Tight jeans", "Jackets with zippers"}, correct = 1},
- {question = "Common pickpocket tool?", options = {"Disguises", "Crowbars", "Knives"}, correct = 1},
- {question = "Best time for pickpocketing?", options = {"At night", "During a parade", "In a busy area"}, correct = 3},
- {question = "Common distraction technique?", options = {"Shoving victim", "Engaging in conversation", "Setting off fireworks"}, correct = 2},
- {question = "City known for pickpocketing?", options = {"Paris", "New York", "Tokyo"}, correct = 1},
- {question = "What do pickpockets target?", options = {"Credit cards", "Jewelry", "Cash"}, correct = 3},
- {question = "How do pickpockets avoid capture?", options = {"Hide items", "Run fast", "Blend in"}, correct = 3},
- {question = "Best defense against pickpockets?", options = {"Stay alert", "Carry large bags", "Wear bulky clothing"}, correct = 1}
- },
- -- Crouch Check
- CrouchCheck = function()
- return exports['qb-smallresources']:isCrouching()
- -- Add this to bottom of qb-smallresources `client/crouchprone.lua` or change to your own crouch check
- -- exports('isCrouching', function()
- -- return isCrouching
- -- end)
- end
- -- Notification Function
- Notification = function(title, message, length, type)
- TriggerEvent('QBCore:Notify', { caption = title, text = message }, type, length)
- end
- }
- -- DO NOT ALTER OR REMOVE
- _U = function(entry)
- return Locales[Config.Locale][entry]
- end
Add Comment
Please, Sign In to add comment