DreamScripts

Pickpocket Config

Feb 12th, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.11 KB | Source Code | 0 0
  1. QBCore = exports['qb-core']:GetCoreObject()
  2.  
  3. Config = {
  4.     Debug = false,
  5.     Locale = 'en',
  6.     newQBinventory = true,
  7.     Progress = 'ox',  -- 'qb' or 'ox'
  8.     useXP = true,  -- Check editable/server_functions.lua to add your own skill system
  9.     auto_add_items = false,  -- QB ONLY!
  10.     useWallet = false,  -- Set to false if you use my other theft resources and have this enabled in 1 of them. ONLY ENABLE ONCE!
  11.    
  12.     -- Items Info
  13.     npcWallet = {
  14.         wallet = { itemName = "wallet", label = "Wallet", weight = 100, type = 'item', image = 'wallet.png' },
  15.         purse = { itemName = "purse", label = "Purse", weight = 100, type = 'item', image = 'purse.png' }
  16.     },
  17.  
  18.     -- Pickpocket Configuration
  19.     pickpocket = {
  20.         pickpocket_key = 'E',  -- Changeable via Fivem Keybinds
  21.         distance = 1.5,  -- Recommended: 1.5
  22.         robberyChance = 76,  -- Chance for NPC to flee
  23.         stumbleChance = 22,
  24.         fightBack = true,  -- Set to false to disable NPC fight back
  25.         fightChance = 11,  -- 8% chance NPC fights back
  26.         coolDown = 30 * 1000  -- In seconds
  27.     },
  28.  
  29.     -- Loot/Rewards Configuration
  30.     loot = {
  31.         -- If a wallet/purse is given, then players won't get item loot, only the wallet or purse
  32.         findLoot = 65,  -- Chance of finding anything while pickpocketing
  33.         walletChance = 33,  -- Chance of receiving `wallet` or `purse` item
  34.         findWalletCash = 68,  -- Chance of finding cash in wallet or purse
  35.         findWalletItems = 40,  -- Chance of finding cash in wallet or purse
  36.         itemAmount = { min = 1, max = 2 },
  37.         reward = { min = 60, max = 100 },
  38.         dirty = true,  -- Enable dirty money
  39.         dirtyItem = 'rolls',        
  40.         -- I recommend setting the item rewards for wallet/purses the same in all my resources if you use them
  41.         wallet = { "cokebaggy", "flush_cutter", "pocket_lint" },
  42.         purse = { "stolen_phone", "cokebaggy", "microfibercloth", "stolen_tablet", "wallet", "flush_cutter", "stolen_diamond_ring", "labkey", "rope", "drug_phone", "bandage", "pistol_mk2_barrel" },
  43.        
  44.         -- NPC Loot Tables
  45.         npcLootTables = {
  46.             ballas = { "cokebaggy", "lockpick", "drug_phone", "joint" },
  47.             vagos = { "meth", "lockpick", "stolen_phone", "bandage" },
  48.             lostmc = { "cokebaggy", "painkillers", "cryptostick", "joint" },
  49.             rich = { "cokebaggy", "crisps", "cryptostick", "stolen_rolex" },
  50.             civilians = { "crisps", "binoculars", "pocket_lint", "painkillers", "lighter" },
  51.             bums = { "lighter", "meth", "plastic", "cokebaggy", "water_bottle", "pocket_lint" },
  52.             default = { "lighter", "crisps", "binoculars", "pocket_lint" }  -- Fallback loot
  53.         },
  54.  
  55.         npcModels = {
  56.             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 },
  57.             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 },
  58.             lostmc = { [`g_m_y_lost_01`] = true, [`g_m_y_lost_02`] = true, [`g_m_y_lost_03`] = true },
  59.             rich = { [`s_m_m_bankman`] = true, [`u_m_m_bankman`] = true },
  60.             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 },
  61.             civilians = { [`a_m_y_business_01`] = true, [`a_f_y_business_01`] = true, [`a_m_m_farmer_01`] = true }
  62.         }
  63.     },
  64.  
  65.     -- Alert Settings
  66.     alertInfo = {
  67.         alertChance = 70,  -- 70% chance of police being notified
  68.         dispatch = 'ps-dispatch'  -- Alert handler
  69.     },
  70.  
  71.     -- Ped Settings
  72.     pedSettings = {
  73.         pedTypes = 'all',  -- 'all', 'allowed', or 'denied' for NPC types
  74.         pedList = {
  75.             allowed = {
  76.                 [`a_f_m_soucentmc_01`] = true,
  77.                 [`a_f_m_tourist_01`] = true,
  78.                 [`a_f_m_soucent_02`] = true,
  79.                 [`a_m_m_farmer_01`] = true,
  80.                 [`a_m_m_malibu_01`] = true,
  81.                 [`a_m_m_soucent_01`] = true,
  82.                 [`a_m_m_bevhills_01`] = true,
  83.             },
  84.             denied = {
  85.                 [`mp_m_shopkeep_01`] = false,
  86.                 [`csb_ballasog`] = false,
  87.                 [`ig_ballasog`] = false,
  88.                 [`g_f_y_ballas_01`] = false,
  89.                 [`g_m_y_ballaeast_01`] = false,
  90.                 [`g_m_y_ballaorig_01`] = false,
  91.                 [`g_m_y_ballasout_01`] = false
  92.             }
  93.         }
  94.     }  
  95. }
  96.  
  97.  -- Notification Function
  98. Config.Notification = function(title, message, length, type)
  99.     TriggerEvent('QBCore:Notify', { caption = title, text = message }, type, length)
  100. end  
  101.  
  102. -- Localization
  103. _U = function(entry)
  104.     return Locales[Config.Locale][entry]
  105. end
  106.  
Add Comment
Please, Sign In to add comment