BetterFight Evolved offers a comprehensive set of exports for customizing and integrating its features. For enhanced security, it is strongly recommended to rename these exports , which can be done easily as they trigger internal functions, maintaining functionality regardless of the export name. This design allows server administrators to protect against potential exploitation while retaining full access to BFE's powerful customization options.
GetWeaponRecoil SetWeaponRecoil ResetWeaponRecoil
CLIENT
This function returns the current recoil value of the specified weapon.
Copy local recoilData = exports['cis_BetterFightEvolved']:GetWeaponRecoil(GetHashKey('WEAPON_PISTOL'))
CLIENT
This function stores a custom recoil multiplier for the specified weapon. This multiplier is applied on top of the base recoil configuration when the weapon is fired.
Copy exports['cis_BetterFightEvolved']:SetWeaponRecoil(GetHashKey('WEAPON_PISTOL'), 1.5)
CLIENT
This function removes any custom recoil multiplier set for the specified weapon, reverting it to use the default configuration.
Copy exports['cis_BetterFightEvolved']:ResetWeaponRecoil(GetHashKey('WEAPON_PISTOL'))
MultiplyGeneralRecoil ResetGeneralRecoil
CLIENT
This function sets a global recoil multiplier that affects all weapons. It's applied in addition to weapon-specific settings.
Copy exports['cis_BetterFightEvolved']:MultiplyGeneralRecoil(1.2) -- Increases all recoil by 20%
CLIENT
This function removes any global recoil multiplier, setting it back to the default value of 1.00.
Copy exports['cis_BetterFightEvolved']:ResetGeneralRecoil()
GetWeaponTemperature SetWeaponTemperature ResetWeaponTemperature
CLIENT
Returns the current temperature of a specific weapon.
Copy local temp = exports['cis_BetterFightEvolved']:GetWeaponTemperature(GetHashKey('WEAPON_PISTOL'))
CLIENT
Sets the temperature of a specific weapon.
Copy exports['cis_BetterFightEvolved']:SetWeaponTemperature(GetHashKey('WEAPON_PISTOL'), 50.0)
CLIENT
Resets the temperature of a specific weapon to its default value (0.0).
Copy exports['cis_BetterFightEvolved']:ResetWeaponTemperature(GetHashKey('WEAPON_PISTOL'))
GetWeaponOverheatThreshold SetWeaponOverheatThreshold IsWeaponOverheated ResetWeaponOverheatThreshold
CLIENT
Returns the overheat threshold for a specific weapon.
Copy local threshold = exports['cis_BetterFightEvolved']:GetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'))
CLIENT
Sets the overheat threshold for a specific weapon.
Copy exports['cis_BetterFightEvolved']:SetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'), 200.0)
CLIENT
Checks if a specific weapon is currently overheated.
Copy local isOverheated = exports['cis_BetterFightEvolved']:IsWeaponOverheated(GetHashKey('WEAPON_PISTOL'))
CLIENT
Resets the overheat threshold of a specific weapon to its default value.
Copy exports['cis_BetterFightEvolved']:ResetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'))
ToggleCrosshair GetCrosshairPresets SetCrosshairPreset
CLIENT
Enables or disables the crosshair.
Copy exports['cis_BetterFightEvolved']:ToggleCrosshair(true) -- Enable crosshair
exports['cis_BetterFightEvolved']:ToggleCrosshair(false) -- Disable crosshair
CLIENT
Returns all available crosshair presets.
Copy local presets = exports['cis_BetterFightEvolved']:GetCrosshairPresets()
CLIENT
Applies a specific crosshair preset.
Copy exports['cis_BetterFightEvolved']:SetCrosshairPreset('Preset 1')
exports['cis_BetterFightEvolved']:SetCrosshairPreset('Preset 2')
GetCrosshairSettings SetCrosshairSettings
CLIENT
Returns the current crosshair settings.
Copy local settings = exports['cis_BetterFightEvolved']:GetCrosshairSettings()
CLIENT
Applies custom crosshair settings.
Copy exports['cis_BetterFightEvolved']:SetCrosshairSettings({
showOuterLines = true,
outerLineOpacity = 0.5,
outerLineLength = 6,
outerLineThickness = 2,
outerLineOffset = 12,
showCenterDot = true,
centerDotSize = 3,
centerDotOpacity = 1,
crosshairColor = '#FF0000',
crosshairOpacity = 1,
showOutline = true,
outlineThickness = 1,
outlineColor = '#000000',
outlineOpacity = 1,
centerDotType = 'dot',
lineType = '4'
})
GetWeaponDamage SetWeaponDamage ResetWeaponDamage
CLIENT
Returns the current damage multiplier for a specific weapon.
Copy local damageMultiplier = exports['cis_BetterFightEvolved']:GetWeaponDamage(GetHashKey('WEAPON_PISTOL'))
CLIENT
Sets a custom damage multiplier for a specific weapon.
Copy local damageMultiplier = exports['cis_BetterFightEvolved']:SetWeaponDamage(GetHashKey('WEAPON_PISTOL', 0.8))
CLIENT
Resets the damage multiplier of a specific weapon to its default value.
Copy local damageMultiplier = exports['cis_BetterFightEvolved']:ResetWeaponDamage(GetHashKey('WEAPON_PISTOL'))
ToggleTriggerBot GetTriggerBotStatus SetTriggerBotMaxRange SetTriggerBotRefreshRate
CLIENT
Enables or disables the triggerbot feature.
Copy exports['cis_BetterFightEvolved']:ToggleTriggerBot(true) -- Enable triggerbot
exports['cis_BetterFightEvolved']:ToggleTriggerBot(false) -- Disable triggerbot
CLIENT
Returns the current status and settings of the triggerbot.
Copy local triggerBotStatus = exports['cis_BetterFightEvolved']:GetTriggerBotStatus()
CLIENT
Sets the maximum range for the triggerbot.
Copy exports['cis_BetterFightEvolved']:SetTriggerBotMaxRange(50.0)
CLIENT
Sets the refresh rate for the triggerbot.
Copy exports['cis_BetterFightEvolved']:SetTriggerBotRefreshRate(100)
ToggleRemoveWhipping GetRemoveWhippingStatus
CLIENT
Enables or disables the removal of weapon whipping animations.
Copy exports['cis_BetterFightEvolved']:ToggleRemoveWhipping(true) -- Enable removal
exports['cis_BetterFightEvolved']:ToggleRemoveWhipping(false) -- Disable removal
CLIENT
Enables or disables the removal of weapon whipping animations.
Copy local whippingStatus = exports['cis_BetterFightEvolved']:GetRemoveWhippingStatus()
ToggleHeadshotRemoval GetHeadshotRemovalStatus
CLIENT
Enables or disables player's headshot removal.
Copy exports['cis_BetterFightEvolved']:ToggleHeadshotRemoval(true) -- Enable prevention
exports['cis_BetterFightEvolved']:ToggleHeadshotRemoval(false) -- Disable prevention
CLIENT
Returns the current status of headshot removal.
Copy local haedshotRemovalStatus = exports['cis_BetterFightEvolved']:GetHeadshotRemovalStatus()
Enables or disables prevention of one-shot melee kills.
ToggleMeleeOneShotPrevention GetMeleeOneShotPreventionStatus
CLIENT
Enables or disables prevention of one-shot melee kills.
Copy exports['cis_BetterFightEvolved']:ToggleMeleeOneShotPrevention(true) -- Enable prevention
exports['cis_BetterFightEvolved']:ToggleMeleeOneShotPrevention(false) -- Disable prevention
CLIENT
Returns the current status of melee one-shot prevention.
Copy local meleePreventionStatus = exports['cis_BetterFightEvolved']:GetMeleeOneShotPreventionStatus()