Advertisement
Guest User

KQ Car Dyno config 1.0.0

a guest
Nov 18th, 2023
1,275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.60 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5. --- If you're testing the script and editing the values DO NOT simply restart the script. As this script is using custom models (dynos)
  6. --- it will crash if you just restart it. Instead use the `/kq_dyno_restart` command. It will safely restart the script without causing you to crash
  7.  
  8.  
  9. --- SETTINGS FOR ESX
  10. Config.esxSettings = {
  11.     enabled = true,
  12.     -- Whether or not to use the new ESX export method
  13.     useNewESXExport = true,
  14. }
  15.  
  16. --- SETTINGS FOR QBCORE
  17. Config.qbSettings = {
  18.     enabled = false,
  19. }
  20.  
  21.  
  22. --- BASIC
  23.  
  24. -- Torque units | 'nm' or 'lb-ft'
  25. Config.torqueUnits = 'nm'
  26.  
  27.  
  28. --- FRAMEWORK OPTIONS (MAKE SURE TO ENABLE YOUR FRAMEWORK IF USING ONE) <!>
  29. Config.jobWhitelist = {
  30.     enabled = true,
  31.     jobs = {
  32.         'mechanic',
  33.         'bennys',
  34.     }
  35. }
  36.  
  37. -- Discord webhook options
  38. Config.webhook = {
  39.     enabled = true, -- Whether to send the dyno sheets to the discord webhook
  40.  
  41.     -- To get the Discord webhook link, right click on a channel > Edit channel > Integrations > Webhooks > View webhooks > New webhook
  42.     url = 'YOUR_WEBHOOK_URL_HERE',
  43.  
  44.     -- Replace this with the name of your server or a title you want on your dyno sheets
  45.     title = 'KuzQuality - DynoTech',
  46.  
  47.     -- Whether to include certain parts of the users info in the webhook messages
  48.     includeUserName = true,
  49.     includeSteamId = true,
  50. }
  51.  
  52. -- Time it takes for the screens to turn off after a dyno run (in seconds)
  53. Config.screenTimeout = 30
  54.  
  55. -- Whether to display the dyno sheet on the screen as UI
  56. Config.displaySheetOnScreen = true
  57.  
  58.  
  59. -- Dynos setup
  60. -- coords = vector3 of the dyno location
  61. -- heading = heading of the dyno
  62. -- model = model defined in Config.dynoModels (By leaving this out, you will create a dyno without a model. Useful for MLOs with built-in dynos)
  63. -- displays = table of displays
  64. --      displayCoords = vector3 of the display location
  65. --      displayHeading = heading of the display
  66. --      displayType = display defined in Config.displayTypes
  67. -- jobs = Table of jobs which are allowed to use the dyno (false or nil to allow everyone to use it)
  68. Config.dynos = {
  69.     ['bennys'] = {
  70.         coords = vector3(-214.28, -1318.14, 30.9),
  71.         heading = 180.0,
  72.        
  73.         model = 'default_purple',
  74.        
  75.         displays = {
  76.             {
  77.                 displayCoords = vector3(-217.4, -1318.92, 32.55),
  78.                 displayHeading = 90.0,
  79.                 displayType = 'wall_tv_2',
  80.             },
  81.             {
  82.                 displayCoords = vector3(-211.5, -1320.6, 30.89),
  83.                 displayHeading = 250.0,
  84.                 displayType = 'stand',
  85.             }
  86.         },
  87.        
  88.         jobs = nil,
  89.     },
  90.     ['lsc_harmony'] = {
  91.         coords = vector3(1182.66, 2636.5, 37.78),
  92.         heading = 0.0,
  93.        
  94.         model = 'default_blue',
  95.        
  96.         displays = {
  97.             {
  98.                 displayCoords = vector3(1182.66, 2634.6, 39.3),
  99.                 displayHeading = 180.0,
  100.                 displayType = 'wall_tv',
  101.             },
  102.         },
  103.        
  104.         jobs = nil,
  105.     },
  106.     ['lsc_airport'] = {
  107.         coords = vector3(-1164.45, -2018.8, 13.18),
  108.         heading = 315.0,
  109.  
  110.         model = 'default_red',
  111.  
  112.         displays = {
  113.             {
  114.                 displayCoords = vector3(-1164.3, -2014.53, 14.13),
  115.                 displayHeading = 45.0,
  116.                 displayType = 'wall_tv',
  117.             },
  118.         },
  119.  
  120.         jobs = nil,
  121.     },
  122.     ['import_export_garage'] = {
  123.         coords = vector3(980.2, -3002.11, -39.65),
  124.         heading = 90.0,
  125.        
  126.         model = 'default_blue',
  127.        
  128.         displays = {
  129.             {
  130.                 displayCoords = vector3(978.5, -2999.35, -39.62),
  131.                 displayHeading = 0.0,
  132.                 displayType = 'stand',
  133.             },
  134.         },
  135.        
  136.         jobs = nil,
  137.     },
  138.     --['no_model_liberty_walk_mlo'] = {
  139.     --    coords = vector3(1148.40, -792.69, 57.5),
  140.     --    heading = 90.0,
  141.     --
  142.     --    displays = {
  143.     --        {
  144.     --            displayCoords = vector3(1148.29, -795.0, 58.35),
  145.     --            displayHeading = 190.0,
  146.     --            displayType = 'monitor',
  147.     --        },
  148.     --    },
  149.     --
  150.     --    jobs = nil,
  151.     --},
  152. }
  153.  
  154.  
  155. -- This is just used to fill the default dynos with their rollers
  156. Config.baseRollers = {
  157.     {
  158.         prop = 'kq_dyno_roller',
  159.         rotation = vector3(0.0, 90.0, 0.0),
  160.         offset = vector3(0.18, 0.6, -0.08),
  161.         direction = -1,
  162.         side = 1,
  163.     },
  164.     {
  165.         prop = 'kq_dyno_roller',
  166.         rotation = vector3(0.0, 90.0, 0.0),
  167.         offset = vector3(-0.18, 0.6, -0.08),
  168.         direction = -1,
  169.         side = 1,
  170.     },
  171.  
  172.     {
  173.         prop = 'kq_dyno_roller',
  174.         rotation = vector3(0.0, 90.0, 0.0),
  175.         offset = vector3(0.18, -1.18, -0.08),
  176.         direction = -1,
  177.         side = 2,
  178.     },
  179.     {
  180.         prop = 'kq_dyno_roller',
  181.         rotation = vector3(0.0, 90.0, 0.0),
  182.         offset = vector3(-0.18, -1.18, -0.08),
  183.         direction = -1,
  184.         side = 2,
  185.     },
  186. }
  187.  
  188. -- Dyno models
  189. Config.dynoModels = {
  190.     ['default_yellow'] = {
  191.         base = 'kq_dyno2_yellow',
  192.         textureVariation = 0,
  193.         heading = -90.0,
  194.         offset = vector3(0.0, 0.0, -0.04),
  195.         rollers = Config.baseRollers,
  196.     },
  197.     ['default_red'] = {
  198.         base = 'kq_dyno2_red',
  199.         textureVariation = 0,
  200.         heading = -90.0,
  201.         offset = vector3(0.0, 0.0, -0.04),
  202.         rollers = Config.baseRollers,
  203.     },
  204.     ['default_purple'] = {
  205.         base = 'kq_dyno2_purple',
  206.         textureVariation = 0,
  207.         heading = -90.0,
  208.         offset = vector3(0.0, 0.0, -0.04),
  209.         rollers = Config.baseRollers,
  210.     },
  211.     ['default_green'] = {
  212.         base = 'kq_dyno2_green',
  213.         textureVariation = 0,
  214.         heading = -90.0,
  215.         offset = vector3(0.0, 0.0, -0.04),
  216.         rollers = Config.baseRollers,
  217.     },
  218.     ['default_gray'] = {
  219.         base = 'kq_dyno2_gray',
  220.         textureVariation = 0,
  221.         heading = -90.0,
  222.         offset = vector3(0.0, 0.0, -0.04),
  223.         rollers = Config.baseRollers,
  224.     },
  225.     ['default_blue'] = {
  226.         base = 'kq_dyno2_blue',
  227.         textureVariation = 0,
  228.         heading = -90.0,
  229.         offset = vector3(0.0, 0.0, -0.04),
  230.         rollers = Config.baseRollers,
  231.     },
  232.     ['basic'] = {
  233.         base = 'kq_dyno',
  234.         textureVariation = 0,
  235.         heading = -90.0,
  236.         offset = vector3(0.0, 0.0, 0.0),
  237.         rollers = {
  238.             {
  239.                 prop = 'kq_dyno_roller',
  240.                 rotation = vector3(0.0, 90.0, 0.0),
  241.                 offset = vector3(0.18, 0.9, -0.08),
  242.                 direction = -1,
  243.                 side = 1,
  244.             },
  245.             {
  246.                 prop = 'kq_dyno_roller',
  247.                 rotation = vector3(0.0, 90.0, 0.0),
  248.                 offset = vector3(-0.18, 0.9, -0.08),
  249.                 direction = -1,
  250.                 side = 1,
  251.             },
  252.  
  253.             {
  254.                 prop = 'kq_dyno_roller',
  255.                 rotation = vector3(0.0, 90.0, 0.0),
  256.                 offset = vector3(0.18, -0.9, -0.08),
  257.                 direction = -1,
  258.                 side = 2,
  259.             },
  260.             {
  261.                 prop = 'kq_dyno_roller',
  262.                 rotation = vector3(0.0, 90.0, 0.0),
  263.                 offset = vector3(-0.18, -0.9, -0.08),
  264.                 direction = -1,
  265.                 side = 2,
  266.             },
  267.         }
  268.     },
  269. }
  270.  
  271. -- Display types
  272. -- prop = prop of the display
  273. -- offset = offset of the display (texture, not the prop)
  274. -- heading = heading of the display (texture, not the prop)
  275. -- size = size of the display
  276. Config.displayTypes = {
  277.     ['stand'] = {
  278.         prop = 'prop_cs_tv_stand',
  279.         offset = vector3(0.529, -0.08, 1.01),
  280.         heading = 180.0,
  281.         size = vector2(1.098, 0.54),
  282.     },
  283.     ['monitor'] = {
  284.         prop = 'prop_tv_flat_03',
  285.         offset = vector3(0.35, -0.01, 0.025),
  286.         heading = 180.0,
  287.         size = vector2(0.7, 0.4),
  288.     },
  289.     ['wall_tv'] = {
  290.         prop = 'prop_tv_flat_01',
  291.         offset = vector3(1.07, -0.06, -0.12),
  292.         heading = 180.0,
  293.         size = vector2(2.14, 1.2),
  294.     },
  295.     ['wall_tv_2'] = {
  296.         prop = 'xm_prop_x17_tv_flat_01',
  297.         offset = vector3(0.798, -0.046, 0.152),
  298.         heading = 180.0,
  299.         size = vector2(1.5, 0.832),
  300.     },
  301. }
  302.  
  303. -- https://docs.fivem.net/docs/game-references/controls/
  304. -- Use the input index for the "input" value
  305. Config.keybinds = {
  306.     start = {
  307.         label = 'E',
  308.         name = 'INPUT_PICKUP',
  309.         input = 38,
  310.     },
  311. }
  312.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement