Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {} -- Do not touch this line, duh🤦♂️
- --
- -- FEARRP
- -- 🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪
- ---Enable server-wide FearRP.
- ---When enableServerwideFearRP is false;
- ---FearRP will only be enabled in specified FearRP zones.
- ---When enableServerwideFearRP is true;
- ---FearRP will only be disabled in specified FearRP-free zones.
- Config.enableServerwideFearRP = true
- ---The amount of time (in milliseconds) someone has to aim at another player
- ---for them to be subject to FearRP.
- Config.fearRPAimThreshold = 1500
- ---Makes players exempt from FearRP if they are already
- ---armed with a weapon.
- Config.exemptFromFearRPWhenArmed = true
- ---Makes players exempt from FearRP if they are in a vecihle.
- Config.exemptFromFearRPWhenInVehicle = false
- ---Makes players carrying melee weapons subject to FearRP if
- ---the aggressor is aiming at them with a firearm outside of melee distance.
- ---Likewise, this makes players exempt from FearRP if they are carrying
- ---a melee weapon and the aggressor is within melee range.
- ---NOTE: Logically, this requires Config.exemptFromFearRPWhenArmed = true
- Config.respectMeleeDistance = true
- ---Requires the aggressor to be visible to the target
- ---in order for them to be subject to FearRP.
- Config.aggressorMustBeVisible = true
- ---The ranges at which weapons of each category start making
- ---players subject to FearRP.
- ---'Default' is the default distance if nothing else is specified.
- ---Weapon categories are defined at at: shared/weapons.lua
- Config.fearRPWeaponCategoryRanges = {
- Default = 20.0,
- Sniper = 25.0,
- Rifle = 25.0,
- Shotgun = 15.0,
- Pistol = 15.0,
- StunGun = 10.0,
- Melee = 3.0
- }
- ---These weapon categories are considered "unarmed", meaning
- ---they cannot make players subject to or exempt from FearRP.
- Config.unarmedWeaponCategories = {
- Unarmed = true,
- FireExtinguisher = true,
- Thrown = true,
- PetrolCan = true,
- HackingDevice = true,
- MetalDetector = true,
- }
- ---The message to be displayed whenever a player is subject to
- ---FearRP.
- Config.fearRPMessage = 'FearRP'
- ---Disable provided FearRP effects: Slowing, grayout, etc.
- ---This exposes two client events: 'startFearRP' and 'endFearRP',
- ---which developers can use to make their own implementations.
- ---NOTE: This does *NOT* disable FearRP scripts!
- ---The scripts still check for FearRP, but will only emit the
- ---previously mentioned custom events when FearRP is detected.
- ---To fully disable FearRP, simply comment out lines 21 and 26
- ---in fxmanifest.lua
- Config.customFearRP = false
- --
- -- VDM PROTECTION
- -- 🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦
- ---Enable server-wide VDM protection.
- ---When enableServerwideVDMProtection is false;
- ---VDM protection will only be enabled in specified VDM protected zones.
- ---When enableServerwideVDMProtection is true;
- ---VDM protection will only be disabled in specified VDM zones.
- Config.enableServerwideVDMProtection = true
- ---The minimum speed (km/h) the vehicle has to be traveling
- ---for VDM protection to kick in.
- Config.vdmSpeedThreshold = 5.0
- --
- -- ZONES
- -- 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
- ---Add zones with different RP rules than the rest of the server.
- ---This allows for zones to selectively enforce or not enforce specific rules.
- ---Under the hood, these are PolyZone zones,
- ---options can be any PolyZone options,
- ---flags must be either 'FearRP' or 'VDMProtection' and have a boolean value.
- ---If a flag is not set, the rule follows server-wide set rueles.
- ---Meaning, if server-wide FearRP is off, but a zone has no FearRP flag,
- ---the zone will still not have FearRP.
- ---Same goes the other way; if server-wide FearRP is on, but a zone has
- ---no FearRP flag, FearRP will still be enabled in the zone.
- Config.zones = {
- -- Example zone at LSIA, where players are exempt from FearRP,
- -- and where VDM protection is turned off.
- -- {
- -- points = {
- -- vector2(-1511.4802246094, -2527.4428710938),
- -- vector2(-1507.1087646484, -2519.2883300781),
- -- vector2(-1524.5710449219, -2522.0954589844),
- -- vector2(-1540.4826660156, -2549.4895019531),
- -- vector2(-1515.4621582031, -2551.8537597656),
- -- vector2(-1509.3863525391, -2539.2575683594)
- -- },
- -- flags = {
- -- FearRP = false,
- -- VDMProtection = false
- -- },
- -- options = {
- -- debugPoly = true
- -- }
- -- }
- }
Advertisement
Add Comment
Please, Sign In to add comment