Advertisement
Guest User

Ped looting default config 1.0.0

a guest
Apr 15th, 2024
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.07 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5. -------------------------------------------------
  6. --- FRAMEWORK SETTINGS
  7. -------------------------------------------------
  8. Config.esxSettings = {
  9.     enabled = true,
  10.     -- Whether or not to use the new ESX export method
  11.     useNewESXExport = true,
  12.  
  13.     -- Enable this if you're using a very old version of ESX
  14.     oldEsx = false,
  15.  
  16.     moneyAccount = 'black_money',
  17. }
  18.  
  19. Config.qbSettings = {
  20.     enabled = false,
  21.  
  22.     moneyAccount = 'cash',
  23. }
  24.  
  25. Config.target = {
  26.     enabled = false,
  27.     system = 'ox_target' -- 'qtarget' or 'qb-target' or 'ox_target'  (Other systems might work as well)
  28. }
  29.  
  30. -- When not using target
  31. -- '3d-text', 'top-left', 'help-text'
  32. Config.inputType = '3d-text'
  33.  
  34. -- Font used for the 3d text
  35. Config.textFont = 4
  36.  
  37. -- Scale used for the 3d text
  38. Config.textScale = 1.0
  39.  
  40.  
  41. -----------------------------
  42. --- LOOT SETTINGS
  43. -----------------------------
  44. -- Duration for which the loot will be available on the ground
  45. -- Time in seconds
  46. Config.lootLifespan = 45
  47.  
  48. Config.dropOnRagdoll = {
  49.     -- When true, peds will drop their loot when ragdoll
  50.     -- When false, peds will only drop their loot when dead
  51.     enabled = false,
  52.  
  53.     -- Chance of dropping loot when ragdolling (instead of death) (0 - 100)
  54.     chance = 100,
  55. }
  56.  
  57.  
  58.  
  59. -----------------------------
  60. --- PICKUP OPTIONS
  61. -----------------------------
  62. -- Max pickup distance
  63. Config.pickupDistance = 1.4
  64.  
  65. -- Keybinds. Only when not using targeting
  66. Config.keybinds = {
  67.     pickup = {
  68.         label = 'E',
  69.         input = 38,
  70.     }
  71. }
  72.  
  73. Config.animation = {
  74.     duration = 1,
  75.     dict = 'mp_take_money_mg',
  76.     anim = 'put_cash_into_bag_loop',
  77.     flag = 1,
  78.  
  79.     -- Whether the prop should get attached to the hand on pickup
  80.     holdProp = true,
  81. }
  82.  
  83. -- Outline of the items
  84. Config.outline = {
  85.     enabled = true,
  86.     color = {
  87.         r = 255,
  88.         g = 255,
  89.         b = 255,
  90.         a = 255,
  91.     }
  92. }
  93.  
  94. -----------------------------
  95. --- GLOBAL LOOT
  96. -----------------------------
  97. -- Loot which can be dropped by all human peds
  98. Config.globalLoot = {
  99.     ['nothing'] = {
  100.         chance = 75,
  101.     },
  102.     ['wallet'] = {
  103.         chance = 15,
  104.         money = {
  105.             min = 2,
  106.             max = 50,
  107.         },
  108.         props = {
  109.             'prop_ld_wallet_pickup',
  110.             'prop_ld_wallet_01',
  111.             'prop_ld_wallet_02',
  112.             'prop_ld_purse_01',
  113.         },
  114.     },
  115.     ['phone'] = {
  116.         chance = 10,
  117.         item = {
  118.             name = 'phone',
  119.         },
  120.         props = {
  121.             'p_amb_phone_01',
  122.             'prop_amb_phone',
  123.         },
  124.     },
  125. }
  126.  
  127. -----------------------------
  128. --- LOOT PER TYPE
  129. -----------------------------
  130.  
  131. -- See constants.lua for the full list of types
  132. Config.lootPerType = {
  133.     ['gangs'] = {
  134.         types = {
  135.             PED_TYPE_GANG_ALBANIAN,
  136.             PED_TYPE_GANG_BIKER_1,
  137.             PED_TYPE_GANG_BIKER_2,
  138.             PED_TYPE_GANG_ITALIAN,
  139.             PED_TYPE_GANG_RUSSIAN,
  140.             PED_TYPE_GANG_RUSSIAN_2,
  141.             PED_TYPE_GANG_IRISH,
  142.             PED_TYPE_GANG_JAMAICAN,
  143.             PED_TYPE_GANG_AFRICAN_AMERICAN,
  144.             PED_TYPE_GANG_KOREAN,
  145.             PED_TYPE_GANG_CHINESE_JAPANESE,
  146.             PED_TYPE_GANG_PUERTO_RICAN,
  147.         },
  148.         loot = {
  149.             ['nothing'] = {
  150.                 chance = 70,
  151.             },
  152.             ['cash'] = {
  153.                 chance = 10,
  154.                 money = {
  155.                     min = 50,
  156.                     max = 500,
  157.                 },
  158.                 props = {
  159.                     'bkr_prop_moneypack_01a',
  160.                     'bkr_prop_money_unsorted_01',
  161.                     'bkr_prop_money_wrapped_01',
  162.                 },
  163.             },
  164.             ['coke'] = {
  165.                 chance = 20,
  166.                 item = {
  167.                     name = 'coke',
  168.                     min = 1,
  169.                     max = 2,
  170.                 },
  171.                 props = {
  172.                     'imp_prop_impexp_coke_pile',
  173.                 },
  174.             },
  175.         },
  176.     },
  177.     ['animals'] = {
  178.         types = {
  179.             PED_TYPE_ANIMAL,
  180.         },
  181.         loot = {
  182.             ['nothing'] = {
  183.                 chance = 30,
  184.             },
  185.             ['meat'] = {
  186.                 amount = {
  187.                     min = 1,
  188.                     max = 3,
  189.                 },
  190.                 chance = 70,
  191.                 item = {
  192.                     name = 'steak',
  193.                 },
  194.                 props = {
  195.                     'prop_cs_steak',
  196.                 },
  197.             },
  198.         },
  199.     },
  200. }
  201.  
  202. -----------------------------
  203. --- LOOT PER PED MODEL
  204. -----------------------------
  205.  
  206. -- Ped models list: https://docs.fivem.net/docs/game-references/ped-models/
  207. Config.lootPerModel = {
  208.     ['fancy'] = {
  209.         models = {
  210.             'a_f_y_bevhills_01',
  211.             'a_f_y_bevhills_02',
  212.             'a_f_y_bevhills_03',
  213.             'a_f_y_bevhills_04',
  214.             'a_f_y_business_01',
  215.             'a_f_y_business_02',
  216.             'a_f_y_business_03',
  217.             'a_f_y_business_04',
  218.             'a_m_m_bevhills_01',
  219.             'a_m_m_bevhills_02',
  220.             'a_m_m_business_01',
  221.             'a_m_y_busicas_01',
  222.             'a_m_y_business_01',
  223.             'a_m_y_business_02',
  224.             'a_m_y_business_03',
  225.             'a_m_y_stbla_02',
  226.             'a_m_y_smartcaspat_01',
  227.         },
  228.         loot = {
  229.             ['nothing'] = {
  230.                 chance = 50,
  231.             },
  232.             ['briefcase'] = {
  233.                 chance = 10,
  234.                 item = {
  235.                     name = 'secret_documents',
  236.                     -- When no min and max values are specified. It will always be just one item
  237.                 },
  238.                 props = {
  239.                     'prop_ld_case_01',
  240.                     'prop_ld_suitcase_01',
  241.                 },
  242.             },
  243.             ['money_briefcase'] = {
  244.                 chance = 15,
  245.                 money = {
  246.                     min = 300,
  247.                     max = 1500,
  248.                 },
  249.                 props = {
  250.                     'prop_ld_case_01',
  251.                     'prop_ld_suitcase_01',
  252.                 },
  253.             },
  254.             ['rich wallet'] = {
  255.                 chance = 25,
  256.                 money = {
  257.                     min = 100,
  258.                     max = 700,
  259.                 },
  260.                 props = {
  261.                     'prop_ld_wallet_pickup',
  262.                     'prop_ld_wallet_01',
  263.                     'prop_ld_wallet_02',
  264.                     'prop_ld_purse_01',
  265.                 },
  266.             }
  267.         },
  268.     },
  269.     ['zombie'] = {
  270.         models = {
  271.             'u_m_y_zombie_01',
  272.         },
  273.         loot = {
  274.             ['meat'] = {
  275.                 chance = 100,
  276.                 amount = {
  277.                     min = 2,
  278.                     max = 5,
  279.                 },
  280.                 item = {
  281.                     name = 'steak',
  282.                 },
  283.                 props = {
  284.                     'prop_cs_steak',
  285.                 },
  286.             },
  287.         },
  288.     },
  289. }
  290.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement