Advertisement
Guest User

Smash n grab config 1.0.0

a guest
Feb 17th, 2023
1,519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.51 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5.  
  6. --- SETTINGS FOR ESX
  7. Config.esxSettings = {
  8.     enabled = true,
  9.     -- Whether or not to use the new ESX export method
  10.     useNewESXExport = true,
  11.    
  12.     -- Money account used when picking up cash or selling off items
  13.     moneyAccount = 'black_money',
  14. }
  15.  
  16. --- SETTINGS FOR QBCORE
  17. Config.qbSettings = {
  18.     enabled = false,
  19.     useNewQBExport = true, -- Make sure to uncomment the old export inside fxmanifest.lua if you're still using it
  20.    
  21.     -- Money account used when picking up cash or selling off items
  22.     moneyAccount = 'cash',
  23. }
  24.  
  25. -- Looting duration in ms
  26. Config.lootingDuration = 7000
  27.  
  28. -- Whether or not to lock vehicles which have loot inside them
  29. Config.lockVehicles = true
  30.  
  31. -- Font used for the 3d text
  32. Config.textFont = 4
  33.  
  34. -- Scale used for the 3d text
  35. Config.textScale = 1
  36.  
  37. -- Odds of loot spawning inside a parked npc vehicle by class given in percentage (0-100) (can use decimal values)
  38. Config.odds = {
  39.     [0] = 5, -- Compacts
  40.     [1] = 15, -- Sedans
  41.     [2] = 17.5, -- SUVs
  42.     [3] = 7, -- Coupes
  43.     [4] = 9, -- Muscle
  44.     [5] = 17.5, -- Sports Classics
  45.     [6] = 15, -- Sports
  46.     [7] = 20, -- Super
  47.     [8] = 0, -- Motorcycles
  48.     [9] = 12, -- Off-road
  49.     [10] = 0, -- Industrial
  50.     [11] = 0, -- Utility
  51.     [12] = 5, -- Vans
  52.     [13] = 0, -- Cycles
  53.     [14] = 0, -- Boats
  54.     [15] = 0, -- Helicopters
  55.     [16] = 0, -- Planes
  56.     [17] = 0, -- Service
  57.     [18] = 0, -- Emergency
  58.     [19] = 0, -- Military
  59.     [20] = 0, -- Commercial
  60.     [21] = 0, -- Trains
  61. }
  62.  
  63. Config.loot = {
  64.     {
  65.         model = 'prop_michael_backpack',
  66.         offset = vector3(0.0, -0.05, 0.05),
  67.         loot = 'electronics',
  68.         lootChance = 40,
  69.     },
  70.     {
  71.         model = 'prop_michael_backpack',
  72.         offset = vector3(0.0, -0.05, 0.05),
  73.         loot = 'clothes',
  74.         lootChance = 50,
  75.     },
  76.     {
  77.         model = 'bkr_prop_duffel_bag_01a',
  78.         offset = vector3(0.0, -0.05, 0.1),
  79.         loot = 'electronics',
  80.         lootChance = 60,
  81.     },
  82.     {
  83.         model = 'prop_cs_heist_bag_02',
  84.         offset = vector3(0.0, -0.05, 0.12),
  85.         loot = 'electronics',
  86.         lootChance = 70,
  87.     },
  88.     {
  89.         model = 'v_club_vu_djbag',
  90.         offset = vector3(0.0, 0.01, -0.18),
  91.         loot = 'electronics',
  92.         lootChance = 90,
  93.     },
  94.     {
  95.         model = 'prop_cs_heist_bag_02',
  96.         offset = vector3(0.0, -0.05, 0.12),
  97.         loot = 'clothes',
  98.         lootChance = 50,
  99.     },
  100.     {
  101.         model = 'prop_cs_heist_bag_02',
  102.         offset = vector3(0.0, -0.05, 0.12),
  103.         loot = 'cash',
  104.         lootChance = 50,
  105.     },
  106.     {
  107.         model = 'prop_cs_shopping_bag',
  108.         offset = vector3(0.0, 0.05, 0.3),
  109.         loot = 'clothes',
  110.         lootChance = 70,
  111.     },
  112.     {
  113.         model = 'prop_nigel_bag_pickup',
  114.         offset = vector3(0.0, -0.05, 0.12),
  115.         loot = 'clothes',
  116.         lootChance = 30,
  117.     },
  118.     {
  119.         model = 'prop_stat_pack_01',
  120.         offset = vector3(0.0, -0.07, -0.07),
  121.         loot = 'cash',
  122.         lootChance = 80,
  123.     },
  124.     {
  125.         model = 'hei_heist_acc_box_trinket_02',
  126.         offset = vector3(0.0, -0.05, 0.05),
  127.         loot = 'electronics',
  128.         lootChance = 60,
  129.     },
  130.     {
  131.         model = 'prop_cs_cardbox_01',
  132.         offset = vector3(0.0, 0.01, 0.03),
  133.         loot = 'clothes',
  134.         lootChance = 30,
  135.     },
  136.     {
  137.         model = 'prop_cs_cardbox_01',
  138.         offset = vector3(0.0, 0.01, 0.03),
  139.         loot = 'electronics',
  140.         lootChance = 30,
  141.     },
  142. }
  143.  
  144. Config.lootTypes = {
  145.     ['cash'] = {
  146.         money = {
  147.             chance = 100,
  148.             amount = {
  149.                 min = 50,
  150.                 max = 1000,
  151.             }
  152.         }
  153.     },
  154.     ['electronics'] = {
  155.         items = {
  156.             'kq_expensive_laptop',
  157.             'kq_expensive_watch',
  158.         },
  159.         money = {
  160.             chance = 30,
  161.             amount = {
  162.                 min = 50,
  163.                 max = 500,
  164.             }
  165.         }
  166.     },
  167.     ['clothes'] = {
  168.         items = {
  169.             'kq_expensive_bag',
  170.             'kq_expensive_sneakers',
  171.         },
  172.         money = {
  173.             chance = 70,
  174.             amount = {
  175.                 min = 100,
  176.                 max = 500,
  177.             }
  178.         }
  179.     },
  180. }
  181.  
  182. -- https://docs.fivem.net/docs/game-references/controls/
  183. -- Use the input index for the "input" value
  184. Config.keybinds = {
  185.     loot = {
  186.         label = 'E',
  187.         name = 'INPUT_PICKUP',
  188.         input = 38,
  189.     },
  190. }
  191.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement