[FREE] Adrenaline Rush Script – Lyneix_Team

Made with love and high caffeine -
Lyneix_Team.

Hey there, server wizards!

Ever wanted to give your players the power of an action movie hero? :man_superhero: Well, now you can! Introducing the Adrenaline Rush Script—your one-way ticket to turning ordinary collisions into extraordinary gameplay moments. Whether you’re rocking ESX, QB, or living the standalone life, this script has got you covered.


What Does It Do?

Picture this: A car smacks your player. But instead of going limp and sad, they bounce back like they’re fueled by energy drinks and pure willpower. That’s adrenaline, baby! :zap:

Makes every vehicle collision a potential story instead of a game-ending moment. More thrills, more drama, more fun! :red_car::zap:

Key Features

What Happens on Impact?

When your player gets hit by a car:

  • :rocket: Speed Boost: Run faster than ever before.
  • :shield: Temporary Invincibility: Danger? What danger?
  • :man_lifting_weights: Stamina Recovery: Say goodbye to fatigue!
  • :adhesive_bandage: Ignore Injuries: Shake it off like a boss.
  • :zap: Immersive Visual Effects: Screen shake, focus mode, and more.
  • :musical_note: Custom Notifications: Use our notifications or design your own.

Why You’ll Love It

  • Works with All Frameworks:
    • ESX, QB-Core, or Standalone—you decide.
  • Highly Configurable:
    • Modify everything to fit your server in the config.lua file.
  • Open Source:
    • MIT-licensed—free to use, modify, and share!

How to Install

  1. Grab It: Download the Script
  2. Unzip It: Throw the lyneix_adrenalinerush folder into your resources directory.
  3. Add It: to your cfg
ensure lyneix_adrenalinerush

Shout Out

Got feedback, questions, or just want to say hi? Drop a reply here or shoot us a DM. We love hearing from you! This is my first release, so if I’ve made any mistakes, please educate me kindly. :pray:


License

This script is MIT-licensed, which means you can use, modify, and share it however you like. Just don’t forget to keep the credits where they belong—right here with Lyneix_Team.


Go ahead, give your server some adrenaline. Your players will thank you. Probably. :red_car::dash:


config.lua in v1.3

Config = {}

Config.Debug = false
-- Adrenaline rush settings
Config.Cooldown = 30 -- Cooldown duration in seconds
Config.AdrenalineDuration = 10 -- Duration in seconds
Config.SpeedMultiplier = 1.2 -- Sprint speed multiplier Multiplier goes up to 1.49 any value above will be completely overruled by the game
Config.Invincibility = false -- Enable/disable invincibility during adrenaline rush
Config.UseGroundDamageProof = true -- Enable/disable ground damage proof during adrenaline rush  
Config.RestorePlayerStamina = 100 -- percent of player stamina that gonna be restore when adrenaline rush

Config.ByPassInjuryClipset = {
    Enabled = true, -- Enable/disable ByPassInjuryClipset
    UseQbAmbulanceJobInjury = true, -- Use qb-ambulancejob's Event for temporary ease player injury, set false to use disable ragdoll instead.
    PainkillerMessage = "Using qb-ambulancejob Event. Adjust interval in qb-ambulancejob's config (default: 60s).",
    NoQbAmbulanceNote = "Without qb-ambulancejob, player will have no ragdoll during adrenaline. This may cause janky animations if hit by a vehicle during adrenaline effects."
}

-- Weapon hashes for vehicle-related damage
Config.WeaponHashes = {
    `weapon_run_over_by_car`,
    `weapon_rammed_by_car`
}

-- Visual effects
Config.Effects = {
    ScreenEffect = "FocusIn", -- Screen effect for adrenaline rush
    CamShakeType = "LARGE_EXPLOSION_SHAKE", -- Camera shake type
    CamShakeIntensity = 0.1 -- Intensity of the camera shake
}

-- Audio settings https://wiki.**censored**.mp/index.php?title=Sounds
Config.Sounds = {
    Enabled = true, -- Enable/disable sound effects
    SoundName = "TIMER_STOP",
    SoundSet = "HUD_MINI_GAME_SOUNDSET"
}

-- Notifications
Config.Notify = {
    Enabled = true, -- Enable/disable notifications
    
    UseOxLib = true, -- Enable ox_lib notifications , it gonna overide NotifyFunction
    OxLibFunction = function(message)
        -- If UseOxLib = false ,Custom notification logic; defaults to server chat if enabled
        lib.notify({
            title = 'Adrenaline Rush',
            description = message,
            showDuration = false,
            position = 'top',
            style = {
                backgroundColor = '#141517',
                color = '#C1C2C5',
                ['.description'] = {
                  color = '#ffff00'
                }
            },
            icon = 'bolt',
            iconColor = '#ffff00'
        })
    end,

    NotifyFunction = function(message)
        -- If UseOxLib = false ,Custom notification logic; defaults to server chat if enabled
        TriggerEvent('chat:addMessage', { args = { "Custom Notify", message } })
    end,
}

-- Chat messages
Config.Messages = {
    AdrenalineActivated = "Adrenaline Rush activated!",
    AdrenalineEnded = "Adrenaline Rush has ended. Cooldown {cooldown}s."
}

Config.OnStartAdrenaline = function()
    print("Adrenaline Rush Started!") -- Add your custom logic here
end
Config.OnEndAdrenaline = function()
    print("Adrenaline Rush Ended!") -- Add your custom logic here
end



4 Likes

Update v1.2

:wrench: Bug Fixes:

  • Effect still happen event player instant dead

:lady_beetle: Known bugs TT -(I’m gonna find a way to make this gone in next update T^T)

  • Ragdoll animation is feel off when player get hit another time after adrenaline is taking effect

:sparkles: ADDED FEATURE

  • Added OnStartAdrenaline,OnEndAdrenaline in config.lua for you to tweak what ever you want to it.
  • Make script cleanup after restart or ensure script.
  • Added UseGroundDamageProof in config.lua for if you want player to just immune to only collisionProof than invincible to all damage

Adrenaline Rush Script v1.3 Update


:arrows_counterclockwise: What’s New in v1.3?


:hammer_and_wrench: Features & Improvements

  1. New Config Option: RestorePlayerStamina

    • Decide whether the player’s stamina should be restored during an adrenaline rush.
    • Fully configurable in the config.lua file.
  2. Revamped Config.ByPassInjuryClipset

    • Choose between two methods for handling ragdoll behavior:
      • Old Method: Disable ragdoll, but note that it might cause some odd animations.
      • New Method: For servers using qb-ambulancejob, automatically trigger an event to suppress injuries during adrenaline rush.
  3. Optional Integration: Config.Notify.UseOxLib

    • Added support for ox_lib notifications.
    • This feature is optional and works only if ox_lib is installed. No dependency headaches!
  4. Version Update in fxmanifest.lua

    • Fixed the version text (oops, I’m still learning).

:broom: Code Improvements

  • Refactored Code for Fallback Options
    • Restructured parts of the code to make it cleaner and easier to understand.
    • Improved fallback mechanisms for better compatibility.

:memo: How to Update

  1. Replace your current lyneix_adrenalinerush folder with the new version.
  2. Update your server.cfg if necessary:
    ensure lyneix_adrenalinerush
    
  3. Review the new configuration options in config.lua.
  • Make changes as needed to customize the script for your server.

:heart: Thank You!

This update is a result of your feedback and support. Keep it coming! :pray:

  • Have questions or feedback? Drop a reply here or DM me.
  • If you’re enjoying the script, share it with others!

– Lyneix_Team