Advertisement
Guest User

Catalytic converter default config

a guest
Feb 8th, 2023
1,491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.43 KB | None | 0 0
  1. Config = {}
  2.  
  3. -- Type in 'esx' or 'qbcore' depending on your framework
  4. -- Type in '' if you are using standalone version
  5. Config.framework = 'esx'
  6.  
  7. -- Enable if you are using standalone version of the script
  8. Config.command = {
  9.     enabled = true,
  10.     command = 'cut_cat'
  11. }
  12. --If vehicle's catalytic converter can be cut if someone is inside a vehicle
  13. Config.canCutIfVehicleOccupied = true
  14.  
  15. --If item should be one time use
  16. Config.toolOneTimeUse = true
  17.  
  18. Config.cuttingMinigame = {
  19.     -- how long the player has to search before cutting the catalytic converter out (in ms)
  20.     searchingTime = 7000,
  21.     -- how many inputs player has to make to cut out the converter
  22.     cuttingLength = 30,
  23.     -- how long player has to wait when misclicking (in ms)
  24.     cuttingMessedUpDuration = 5000,
  25.     -- inputs player has to make to cut
  26.     cuttingKeybinds = {
  27.         'A',
  28.         'D',
  29.         'W',
  30.     }
  31. }
  32.  
  33. Config.sound = {
  34.     -- whether or not to use custom sounds for when the cat is cut
  35.     enabled = true,
  36.     -- The sound name (can be found in vehicles.meta)
  37.     sound = 'TORNADO6',
  38. }
  39.  
  40. Config.smokeScale = 0.9
  41. Config.smokeOpacity = 0.1
  42.  
  43. --Item that is used to cut the catalytic converters
  44. Config.toolName = 'angle_grinder'
  45. --Item that will be given after cutting the catalytic converter out
  46. Config.catItemName = 'catalytic_converter'
  47.  
  48. --Catalytic converter can not be stolen from these vehicles
  49. Config.blacklistedVehicles = {
  50.     'police',
  51.     'ambulance'
  52. }
  53.  
  54. Config.selling = {
  55.     {
  56.         location = {
  57.             x = -215.2, y = 6278.6, z =31.48, h = 266.0,
  58.         },
  59.        
  60.         pedModel = 'a_m_y_soucent_02',
  61.        
  62.         duration = 2000,
  63.        
  64.         items = {
  65.             {
  66.                 item = 'catalytic_converter',
  67.                 label = 'Catalytic converter',
  68.                 price = math.random(75, 150),
  69.             },
  70.         },
  71.        
  72.         blip = {
  73.             enabled = true,
  74.             sprite = 761,
  75.             color = 76,
  76.             scale = 0.7,
  77.         },
  78.     }
  79. }
  80.  
  81. ----------------------------------------------------------------------------------------------
  82. --- KEYBINDS
  83. ----------------------------------------------------------------------------------------------
  84. -- https://docs.fivem.net/docs/game-references/controls/
  85. -- Use the input index for the "input" value
  86. Config.keybinds = {
  87.     interact = {
  88.         label = 'E',
  89.         input = 38,
  90.     },
  91. }
  92.  
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement