Guest User

Benite UI Config

a guest
Aug 8th, 2024
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.31 KB | Gaming | 0 0
  1. Config = {} -- Do not touch this line, duh🤦‍♂️
  2.  
  3. --
  4. -- GENERAL CONFIG
  5. -- Miscellaneous top-level options
  6. -- 🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪
  7.  
  8.   ---The FiveM framework to use. Options are: 'esx', 'qbcore', 'custom'.
  9.   ---NOTE: If you choose 'custom', you will need to implement your own framework implementations. See '/client/custom.lua'.
  10.     ---Default: 'esx'
  11.     ---@type SupportedFramework
  12.   Config.framework = 'esx'
  13.  
  14.   ---Supported languages for the UI.
  15.   ---These must respectively match the name of a JSON file in the 'languages' folder.
  16.     ---Default: { ['da'] = true, ['de'] = true, ['en'] = true, ['es'] = true, ['fr'] = true }
  17.     ---@enum (key) SupportedLanguage
  18.   Config.supportedLanguages = {
  19.     ['da'] = true,
  20.     ['de'] = true,
  21.     ['en'] = true,
  22.     ['es'] = true,
  23.     ['fr'] = true,
  24.   }
  25.  
  26.   ---The language to use for the UI. Default options are: 'en', 'da'.
  27.   ---This can easily be extended by adding more JSON files to the 'languages' folder.
  28.   ---Remember to add the language to the 'supportedLanguages' array above.
  29.     ---Default: 'en'
  30.     ---@type SupportedLanguage
  31.   Config.language = 'en'
  32.  
  33.  
  34.  
  35. --
  36. -- PERSONALISATION CONFIG
  37. -- Options related to the personalisation of the UI (colour etc.)
  38. -- 🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦
  39.  
  40.   ---Primary UI colour.
  41.     ---Default: { 8, 244, 192 }
  42.     ---@type RGBColor
  43.   Config.primaryColor = { 8, 244, 192 }
  44.  
  45.   ---Secondary UI colour.
  46.     ---Default: { 24, 34, 40 }
  47.     ---@type RGBColor
  48.   Config.secondaryColor = { 24, 34, 40 }
  49.  
  50.   ---Minimap vertical alignment. Options are: 'top', 'bottom'.
  51.     ---Default: 'top'
  52.     ---@type MinimapVerticalAlignment
  53.   Config.minimapVerticalAlignment = 'top'
  54.  
  55.   ---Allow user customisation of certain UI elements.
  56.     ---Default: true
  57.     ---@type boolean
  58.   Config.allowCustomisation = true
  59.  
  60.   ---Disallowed customisation options
  61.   ---Valid options are: 'language', 'primaryColor', 'secondaryColor', 'unitSystem', 'minimapVerticalAlignment', 'showFuel', 'showIndicators', 'speedoRumble'
  62.     ---Default: { 'primaryColor', 'secondaryColor' }
  63.     ---@type PersonalUIConfigOption[]
  64.   Config.disallowedCustomisationOptions = {
  65.     'primaryColor',
  66.     'secondaryColor',
  67.   }
  68.  
  69.  
  70.  
  71. --
  72. -- SPEEDOMETER CONFIG
  73. -- Options related to the speedometer
  74. -- 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩
  75.  
  76.   ---The unit system to use. Options are: 'metric', 'imperial'.
  77.     ---Default: 'metric'
  78.     ---@type SupportedUnitSystem
  79.   Config.unitSystem = 'metric'
  80.  
  81.   ---Show fuel level on the speedometer.
  82.     ---Default: true
  83.     ---@type boolean
  84.   Config.showFuel = true
  85.  
  86.   ---Show turn signals on the speedometer.
  87.     ---Default: true
  88.     ---@type boolean
  89.   Config.showIndicators = true
  90.  
  91.   ---The speed at which the player is considered to be speeding.
  92.   ---This affects things such as when the speedometer will start rumbling.
  93.   ---Set this value to -1 (or any negative number) to disable speeding checks -
  94.   ---this will disable rumbling effects etc.
  95.   ---NOTE: This value is in metres/second regardless of above unit system.
  96.     ---Default: 54
  97.     ---@type number
  98.   Config.speedingLimit = 54
  99.  
  100.  
  101.  
  102. --
  103. -- ESX CONFIG
  104. -- Settings related to the ESX framework - Ignore if not using the ESX framework
  105. -- 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨
  106.  
  107.   ---The name of the ESX hunger stat.
  108.     ---Default: 'hunger'
  109.     ---@type string
  110.   Config.hungerStatName = 'hunger'
  111.  
  112.   ---The name of the ESX thirst stat.
  113.     ---Default: 'thirst'
  114.     ---@type string
  115.   Config.thirstStatName = 'thirst'
  116.  
  117.  
  118.  
  119. --
  120. -- STATUS CONFIG
  121. -- Options related to the status display on the bottom left of the screen
  122. -- 🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧
  123.  
  124.   ---Display hunger/thirst UI elements.
  125.     ---Default: true
  126.     ---@type boolean
  127.   Config.enableNeeds = true
  128.  
  129.  
  130.  
  131. --
  132. -- ADVANCED CONFIG
  133. -- Do not change unless you know what you are doing!
  134. -- 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
  135.  
  136.   ---The refresh rate of certain tick-dependent UI elements (e.g. stamina, heading, speedometer) in milliseconds.
  137.   ---The lower the value, the more accurate the UI will be, but the more resources it will consume.
  138.     ---Default: 150ms
  139.     ---@type number
  140.   Config.refreshRate = 150
  141.  
  142.   ---The minimum number of degrees of heading change to trigger a heading update.
  143.   ---The lower the value, the more accurate the UI will be, but the more resources it will consume.
  144.     ---Default: 5.0
  145.     ---@type number
  146.   Config.headingThreshold = 5.0
  147.  
  148.   ---The minimum distance the player must move to trigger a location update.
  149.   ---The lower the value, the more accurate the UI will be, but the more resources it will consume.
  150.     ---Default: 5.0
  151.     ---@type number
  152.   Config.locationThreshold = 5.0
  153.  
  154.   ---The minimum change in stamina to trigger a stamina update.
  155.   ---The lower the value, the more accurate the UI will be, but the more resources it will consume.
  156.     ---Default: 0.005
  157.     ---@type number
  158.   Config.staminaThreshold = 0.005
Advertisement
Add Comment
Please, Sign In to add comment