Advertisement
Guest User

Placeable items config 1.0.0

a guest
Jun 30th, 2023
1,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.28 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5. --- SETTINGS FOR ESX
  6. Config.esxSettings = {
  7.     enabled = true,
  8.     -- Whether or not to use the new ESX export method
  9.     useNewESXExport = true,
  10. }
  11.  
  12. --- SETTINGS FOR QBCORE
  13. Config.qbSettings = {
  14.     enabled = false,
  15.     useNewQBExport = true, -- Make sure to uncomment the old export inside fxmanifest.lua if you're still using it
  16. }
  17.  
  18. -- I DO NOT RECOMMEND USING TARGET AS SOME SMALLER PROPS MAY BE DIFFICULT TO PICKUP FROM THE TRUCK BED (USING CERTAIN TARGET SYSTEMS)
  19. Config.target = {
  20.     enabled = false,
  21.     system = 'ox_target' -- 'qtarget' or 'qb-target' or 'ox_target'  (Other systems might work as well)
  22. }
  23.  
  24. -- When not using target
  25. -- '3d-text', 'top-left', 'help-text'
  26. Config.inputType = '3d-text'
  27.  
  28. -- Font used for the 3d text
  29. Config.textFont = 4
  30.  
  31. -- Scale used for the 3d text
  32. Config.textScale = 1.0
  33.  
  34. -- Outline shown on props that the player can pickup
  35. Config.outline = {
  36.     enabled = true,
  37.     color = {
  38.         r = 126,
  39.         g = 207,
  40.         b = 147,
  41.         a = 144,
  42.     }
  43. }
  44.  
  45. -- Command which will open the "place an item" menu
  46. Config.menuCommand = {
  47.     enabled = true,
  48.     command = 'placeitem',
  49.    
  50.     aliasEnabled = true,
  51.     aliasCommand = 'pi',
  52. }
  53.  
  54. -- Whether or not to disable item stacking (placing items on top of other items)
  55. -- This can rarely cause collision issues with some vehicles. Therefore its off by default
  56. Config.disallowItemStacking = true
  57.  
  58. -- Whether or not to make all items placeable.
  59. -- When disabled only the items defined below will be placeable
  60. Config.makeEverythingPlaceable = {
  61.     enabled = false,
  62.     fallbackProp = 'hei_prop_heist_box',
  63. }
  64.  
  65. -- Whether or not players will be allowed to place items on roofs of cars
  66. Config.allowPlacingOnRoofs = true
  67.  
  68. -- All placeable items with the amounts and props defined
  69. -- https://gta-objects.xyz/objects
  70. Config.items = {
  71.     ['gold'] = {
  72.         [1] = 'prop_gold_bar',
  73.         [6] = 'prop_ld_gold_chest',
  74.     },
  75.     ['traffic_cone'] = {
  76.         [1] = 'prop_mp_cone_02',
  77.     },
  78. }
  79.  
  80. -- https://docs.fivem.net/docs/game-references/controls/
  81. -- Use the input index for the "input" value
  82. Config.keybinds = {
  83.     openMenu = {
  84.         enabled = true,
  85.         key = 'F4',
  86.     },
  87.     pickup = {
  88.         label = 'E',
  89.         name = 'INPUT_PICKUP',
  90.         input = 38,
  91.         duration = 1000,
  92.     },
  93.     place = {
  94.         label = 'E',
  95.         name = 'INPUT_PICKUP',
  96.         input = 38,
  97.     },
  98.     cancelPlacing = {
  99.         label = 'Backspace',
  100.         name = 'INPUT_CELLPHONE_CANCEL',
  101.         input = 177,
  102.     },
  103.     exit = {
  104.         label = 'Escape',
  105.         name = 'INPUT_CELLPHONE_CANCEL',
  106.         input = 177,
  107.     },
  108.     arrowUp = {
  109.         label = 'Arrow up',
  110.         name = 'INPUT_CELLPHONE_UP',
  111.         input = 172,
  112.     },
  113.     arrowDown = {
  114.         label = 'Arrow down',
  115.         name = 'INPUT_CELLPHONE_DOWN',
  116.         input = 173,
  117.     },
  118.     upAlternative = {
  119.         label = 'Scroll up',
  120.         name = 'INPUT_VEH_CINEMATIC_UP_ONLY',
  121.         input = 96,
  122.     },
  123.     downAlternative = {
  124.         label = 'Scroll down',
  125.         name = 'INPUT_VEH_CINEMATIC_DOWN_ONLY',
  126.         input = 97,
  127.     },
  128.     confirm = {
  129.         label = 'Enter',
  130.         name = 'INPUT_FRONTEND_ACCEPT',
  131.         input = 201,
  132.     },
  133. }
  134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement