Guest User

Benite Anti-FailRP config.lua

a guest
Jan 24th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.76 KB | None | 0 0
  1. Config = {} -- Do not touch this line, duh🤦‍♂️
  2.  
  3. --
  4. -- FEARRP
  5. -- 🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪
  6.  
  7.   ---Enable server-wide FearRP.
  8.   ---When enableServerwideFearRP is false;
  9.   ---FearRP will only be enabled in specified FearRP zones.
  10.   ---When enableServerwideFearRP is true;
  11.   ---FearRP will only be disabled in specified FearRP-free zones.
  12.   Config.enableServerwideFearRP = true
  13.  
  14.   ---The amount of time (in milliseconds) someone has to aim at another player
  15.   ---for them to be subject to FearRP.
  16.   Config.fearRPAimThreshold = 1500
  17.  
  18.   ---Makes players exempt from FearRP if they are already
  19.   ---armed with a weapon.
  20.   Config.exemptFromFearRPWhenArmed = true
  21.  
  22.   ---Makes players exempt from FearRP if they are in a vecihle.
  23.   Config.exemptFromFearRPWhenInVehicle = false
  24.  
  25.   ---Makes players carrying melee weapons subject to FearRP if
  26.   ---the aggressor is aiming at them with a firearm outside of melee distance.
  27.   ---Likewise, this makes players exempt from FearRP if they are carrying
  28.   ---a melee weapon and the aggressor is within melee range.
  29.   ---NOTE: Logically, this requires Config.exemptFromFearRPWhenArmed = true
  30.   Config.respectMeleeDistance = true
  31.  
  32.   ---Requires the aggressor to be visible to the target
  33.   ---in order for them to be subject to FearRP.
  34.   Config.aggressorMustBeVisible = true
  35.  
  36.   ---The ranges at which weapons of each category start making
  37.   ---players subject to FearRP.
  38.   ---'Default' is the default distance if nothing else is specified.
  39.   ---Weapon categories are defined at at: shared/weapons.lua
  40.   Config.fearRPWeaponCategoryRanges = {
  41.     Default = 20.0,
  42.     Sniper = 25.0,
  43.     Rifle = 25.0,
  44.     Shotgun = 15.0,
  45.     Pistol = 15.0,
  46.     StunGun = 10.0,
  47.     Melee = 3.0
  48.   }
  49.  
  50.   ---These weapon categories are considered "unarmed", meaning
  51.   ---they cannot make players subject to or exempt from FearRP.
  52.   Config.unarmedWeaponCategories = {
  53.     Unarmed = true,
  54.     FireExtinguisher = true,
  55.     Thrown = true,
  56.     PetrolCan = true,
  57.     HackingDevice = true,
  58.     MetalDetector = true,
  59.   }
  60.  
  61.   ---The message to be displayed whenever a player is subject to
  62.   ---FearRP.
  63.   Config.fearRPMessage = 'FearRP'
  64.  
  65.   ---Disable provided FearRP effects: Slowing, grayout, etc.
  66.   ---This exposes two client events: 'startFearRP' and 'endFearRP',
  67.   ---which developers can use to make their own implementations.
  68.   ---NOTE: This does *NOT* disable FearRP scripts!
  69.   ---The scripts still check for FearRP, but will only emit the
  70.   ---previously mentioned custom events when FearRP is detected.
  71.   ---To fully disable FearRP, simply comment out lines 21 and 26
  72.   ---in fxmanifest.lua
  73.   Config.customFearRP = false
  74.  
  75.  
  76.  
  77. --
  78. -- VDM PROTECTION
  79. -- 🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦
  80.  
  81.   ---Enable server-wide VDM protection.
  82.   ---When enableServerwideVDMProtection is false;
  83.   ---VDM protection will only be enabled in specified VDM protected zones.
  84.   ---When enableServerwideVDMProtection is true;
  85.   ---VDM protection will only be disabled in specified VDM zones.
  86.   Config.enableServerwideVDMProtection = true
  87.  
  88.   ---The minimum speed (km/h) the vehicle has to be traveling
  89.   ---for VDM protection to kick in.
  90.   Config.vdmSpeedThreshold = 5.0
  91.  
  92.  
  93.  
  94. --
  95. -- ZONES
  96. -- 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
  97.  
  98.   ---Add zones with different RP rules than the rest of the server.
  99.   ---This allows for zones to selectively enforce or not enforce specific rules.
  100.   ---Under the hood, these are PolyZone zones,
  101.   ---options can be any PolyZone options,
  102.   ---flags must be either 'FearRP' or 'VDMProtection' and have a boolean value.
  103.   ---If a flag is not set, the rule follows server-wide set rueles.
  104.   ---Meaning, if server-wide FearRP is off, but a zone has no FearRP flag,
  105.   ---the zone will still not have FearRP.
  106.   ---Same goes the other way; if server-wide FearRP is on, but a zone has
  107.   ---no FearRP flag, FearRP will still be enabled in the zone.
  108.   Config.zones = {
  109.     -- Example zone at LSIA, where players are exempt from FearRP,
  110.     -- and where VDM protection is turned off.
  111.     -- {
  112.     --   points = {
  113.     --     vector2(-1511.4802246094, -2527.4428710938),
  114.     --     vector2(-1507.1087646484, -2519.2883300781),
  115.     --     vector2(-1524.5710449219, -2522.0954589844),
  116.     --     vector2(-1540.4826660156, -2549.4895019531),
  117.     --     vector2(-1515.4621582031, -2551.8537597656),
  118.     --     vector2(-1509.3863525391, -2539.2575683594)
  119.     --   },
  120.     --   flags = {
  121.     --     FearRP = false,
  122.     --     VDMProtection = false
  123.     --   },
  124.     --   options = {
  125.     --     debugPoly = true
  126.     --   }
  127.     -- }
  128.   }
Advertisement
Add Comment
Please, Sign In to add comment