Available Buffs

Buff Effects

  • We currently have the following buff effects implemented that you can call:

    • Stamina Buff - Makes a player run faster and generate a random partial amount of stamina

        -- Function signature - time: int (1 second = 1000), value: double (float)
        exports['ps-buffs']:StaminaBuffEffect(time, value)
      
        -- Example -- Adds a stamina buff for 15 seconds and a player runs 1.4 faster.
        exports['ps-buffs']:StaminaBuffEffect(15000, 1.4)
    • Swimming Buff - Makes a player swim faster and generate a random partial amount of stamina

      -- Function signature - time: int (1 second = 1000), value: double (float)
      exports['ps-buffs']:SwimmingBuffEffect(time, value)
      
      -- Example -- Adds a swimming buff for 20 seconds and a player swims 1.4 faster.
      exports['ps-buffs']:SwimmingBuffEffect(20000, 1.4)
    • Health Buff - Makes a player's health partially regenerate periodically

      -- Function signature - time: int (1 second = 1000), value: int
      exports['ps-buffs']:AddHealthBuff(time, value)
      
      -- Example -- Adds a health buff for 10 seconds and a player periodically gains 10 health.
      exports['ps-buffs']:AddHealthBuff(10000, 10)
    • Armor Buff - Makes a player's armor partially regenerate periodically

      -- Function signature - time: int (1 second = 1000), value: int
      exports['ps-buffs']:AddArmorBuff(time, value)
      
      -- Example -- Adds a armor buff for 30 seconds and a player periodically gains 10 armor.
      exports['ps-buffs']:AddArmorBuff(30000, 10)
    • Stress Buff - Makes a player's stress partially decrease periodically

      -- Function signature - time: int (1 second = 1000), value: int
      exports['ps-buffs']:AddStressBuff(time, value)
      
      -- Example -- Removes stress for 30 seconds and removes 10 units every 5 seconds
      exports['ps-buffs']:AddStressBuff(30000, 10)

Last updated