Mads' Resource Documentation
  • 📺Youtube
  • 🤝Discord
  • ⭐Tebex
  • 👨‍💻GitHub
  • 👋Welcome!
  • General Info
    • ❓Questions and Answers
      • Is X script locked/encrypted?
      • I need support, where can I reach out?
      • How do I update my server artifacts?
      • How do I transfer a script from one account to another?
      • How do I set my game build?
    • ⚠️Common Problems
      • You lack the required entitlement
      • Failed to verify protected resource
      • Could not find dependency /assetpacks for resource
  • Resources
    • 🪑Sit Anywhere
      • Adding Custom Models
      • Falling Through the Map
      • Exports
      • Events
    • 🚁Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Controls
      • Exports
      • Events
    • 🚙Slash Tires
      • Exports
      • Events
    • 🕶️Stungrenade
      • Adding the Stungrenade as an item
      • Measures Against Cheaters
      • Exports
      • Events
    • 🪖CS Styled Killfeed
      • General Information
      • Exports - Client Side
      • Exports - Server Side
      • Examples
      • Adding Messages to the feed
      • Weapons List / Death Reasons
      • Changing the position if the killfeed
    • Crouch & Crawl
      • Exports
    • 🔫Taser Effect
    • 🔭Telescopes
    • 🩺Crutches
      • How to make the script compatible with ps-walkstyle
    • ⛽No Exploding Pumps
    • 👠Hookers
Powered by GitBook
On this page
  • Server Event
  • Anti-Cheat Scripts
  1. Resources
  2. Stungrenade

Measures Against Cheaters

Server Event

The script contains some simple but effective measures against cheaters attempting to utilise stungrenades, these can be found in the server.lua file inside the stungrenade:explosion event. It includes distance checks, spam prevention and some basic bug checks.

It is highly advisable that you add your own logs to the script, replacing the Log function that is included by default (discord webhook for example). You can also add a whitelist check inside the event if desired, but this is something you'll have to set up yourself if needed.

Anti-Cheat Scripts

If you use an anti-cheat script you may need to allow certain types of explosions, by default the explosion type used is GRENADE (0), this can be changed in the config.lua file under Config.ExplosionType.

PreviousAdding the Stungrenade as an itemNextExports

Last updated 2 years ago

🕶️