Exports
Explore our selection of exports that enhance your resource functionality.
Recoil System Exports
Section titled “Recoil System Exports”This function returns the current recoil value of the specified weapon.
local recoilData = exports['cis_BetterFightEvolved']:GetWeaponRecoil(GetHashKey('WEAPON_PISTOL'))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.
exports['cis_BetterFightEvolved']:SetWeaponRecoil(GetHashKey('WEAPON_PISTOL'), 1.5)This function removes any custom recoil multiplier set for the specified weapon, reverting it to use the default configuration.
exports['cis_BetterFightEvolved']:ResetWeaponRecoil(GetHashKey('WEAPON_PISTOL'))This function sets a global recoil multiplier that affects all weapons. It’s applied in addition to weapon-specific settings.
exports['cis_BetterFightEvolved']:MultiplyGeneralRecoil(1.2) -- Increases all recoil by 20%This function removes any global recoil multiplier, setting it back to the default value of 1.00.
exports['cis_BetterFightEvolved']:ResetGeneralRecoil()Temperature System Exports
Section titled “Temperature System Exports”Returns the current temperature of a specific weapon.
local temp = exports['cis_BetterFightEvolved']:GetWeaponTemperature(GetHashKey('WEAPON_PISTOL'))Sets the temperature of a specific weapon.
exports['cis_BetterFightEvolved']:SetWeaponTemperature(GetHashKey('WEAPON_PISTOL'), 50.0)Resets the temperature of a specific weapon to its default value (0.0).
exports['cis_BetterFightEvolved']:ResetWeaponTemperature(GetHashKey('WEAPON_PISTOL'))Returns the overheat threshold for a specific weapon.
local threshold = exports['cis_BetterFightEvolved']:GetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'))Sets the overheat threshold for a specific weapon.
exports['cis_BetterFightEvolved']:SetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'), 200.0)Checks if a specific weapon is currently overheated.
local isOverheated = exports['cis_BetterFightEvolved']:IsWeaponOverheated(GetHashKey('WEAPON_PISTOL'))Resets the overheat threshold of a specific weapon to its default value.
exports['cis_BetterFightEvolved']:ResetWeaponOverheatThreshold(GetHashKey('WEAPON_PISTOL'))Returns the current smoke level of a specific weapon.
local smokeLevel = exports['cis_BetterFightEvolved']:GetWeaponSmokeLevel(GetHashKey('WEAPON_PISTOL'))Crosshair System Exports
Section titled “Crosshair System Exports”Enables or disables the crosshair.
exports['cis_BetterFightEvolved']:ToggleCrosshair(true) -- Enable crosshairexports['cis_BetterFightEvolved']:ToggleCrosshair(false) -- Disable crosshairReturns all available crosshair presets.
local presets = exports['cis_BetterFightEvolved']:GetCrosshairPresets()Applies a specific crosshair preset.
exports['cis_BetterFightEvolved']:SetCrosshairPreset('Preset 1')exports['cis_BetterFightEvolved']:SetCrosshairPreset('Preset 2')Returns the current crosshair settings.
local settings = exports['cis_BetterFightEvolved']:GetCrosshairSettings()Applies custom crosshair settings.
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'})Weapon Damage Exports
Section titled “Weapon Damage Exports”Returns the current damage multiplier for a specific weapon.
local damageMultiplier = exports['cis_BetterFightEvolved']:GetWeaponDamage(GetHashKey('WEAPON_PISTOL'))Sets a custom damage multiplier for a specific weapon.
local damageMultiplier = exports['cis_BetterFightEvolved']:SetWeaponDamage(GetHashKey('WEAPON_PISTOL', 0.8))Resets the damage multiplier of a specific weapon to its default value.
local damageMultiplier = exports['cis_BetterFightEvolved']:ResetWeaponDamage(GetHashKey('WEAPON_PISTOL'))Triggerbot Exports
Section titled “Triggerbot Exports”Enables or disables the triggerbot feature.
exports['cis_BetterFightEvolved']:ToggleTriggerBot(true) -- Enable triggerbotexports['cis_BetterFightEvolved']:ToggleTriggerBot(false) -- Disable triggerbotReturns the current status and settings of the triggerbot.
local triggerBotStatus = exports['cis_BetterFightEvolved']:GetTriggerBotStatus()Sets the maximum range for the triggerbot.
exports['cis_BetterFightEvolved']:SetTriggerBotMaxRange(50.0)Sets the refresh rate for the triggerbot.
exports['cis_BetterFightEvolved']:SetTriggerBotRefreshRate(100)Remove Whipping Exports
Section titled “Remove Whipping Exports”Enables or disables the removal of weapon whipping animations.
exports['cis_BetterFightEvolved']:ToggleRemoveWhipping(true) -- Enable removalexports['cis_BetterFightEvolved']:ToggleRemoveWhipping(false) -- Disable removalEnables or disables the removal of weapon whipping animations.
local whippingStatus = exports['cis_BetterFightEvolved']:GetRemoveWhippingStatus()Headshot Removal
Section titled “Headshot Removal”Enables or disables player’s headshot removal.
exports['cis_BetterFightEvolved']:ToggleHeadshotRemoval(true) -- Enable preventionexports['cis_BetterFightEvolved']:ToggleHeadshotRemoval(false) -- Disable preventionReturns the current status of headshot removal.
local haedshotRemovalStatus = exports['cis_BetterFightEvolved']:GetHeadshotRemovalStatus()Melee OneShot Prevention
Section titled “Melee OneShot Prevention”Enables or disables prevention of one-shot melee kills.
Enables or disables prevention of one-shot melee kills.
exports['cis_BetterFightEvolved']:ToggleMeleeOneShotPrevention(true) -- Enable preventionexports['cis_BetterFightEvolved']:ToggleMeleeOneShotPrevention(false) -- Disable preventionReturns the current status of melee one-shot prevention.
local meleePreventionStatus = exports['cis_BetterFightEvolved']:GetMeleeOneShotPreventionStatus()