🦥
Project Sloth
  • 🦥Project Sloth
  • ⭐Server Hosting | 1 of 1 Servers
  • Scripts
    • ❤️ps-hud
      • Installation Guide
      • Previews
    • 🪄ps-buffs
      • Available Buffs
      • Creduts
    • 👮ps-dispatch
      • Installation
      • Using Exports
        • Creating New Alerts
          • Using your or our Exports
    • 💻ps-mdt
      • Installation
      • Showcase
      • Credits
    • 👾ps-ui
      • Circle Minigame
      • Number Maze
      • VAR
      • Thermite
      • Scrambler
      • Display Text
      • Status UI
      • Menus
      • Input
      • Show Image
      • Show Notification
    • 🌱ps-drugprocessing
      • Previews
    • ⛽ps-fuel
      • Installation Guide
      • Features
      • Showcase
    • 🚞ps-objectspawner
      • Installation Guide
      • Features
      • Showcase
      • Credits
    • 🚓ps-liveries
      • Showcase
      • Credits
    • 🏠ps-housing
      • Installation
      • Features
      • Showcase
      • Adding Shells
      • Migration
      • Credits
    • ⚙️ps-discord
      • Installation
      • Convars
      • Exports
      • Credits
  • ❓FAQ
    • Frequently Asked Questions
      • Warnings
      • PS-HUD
      • PS-DISPATCH
      • PS-MDT
      • PS-UI
      • PS-DRUGPROCESSING
      • PS-OBJECTSPAWNER
      • PS-LIVERIES
Powered by GitBook
On this page
  1. Scripts
  2. ps-buffs

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)
Previousps-buffsNextCreduts

Last updated 2 years ago

🪄