🌊
WaveShield v4
  • GETTING STARTED
    • 🤝Redeem
    • ⚙️Installation Guide
  • documentation
    • ❓How To
      • 🎫Bypass Staffs
      • ⛔Unban
    • ⚙️Configuration Settings
      • 🌳Objects
    • 💻For Developers
      • 👉Exports
      • 🗑️Event Handlers
    • 🤖Commands
  • Troubleshooting
    • ➡️READ THIS
    • ⚠️Common Issues
      • Black Screen/Infinite Awaiting Scripts / Errors after installing WaveShield
      • Server crashing at startup / A Script is not starting
      • A Script is not working properly
      • FPS Drops / Loss
      • I get other ban than mine
      • Input Boxes limited to 2 characters
    • 🙅Common False bans
      • Trigger Client/Server Events
      • vMenu
    • 📈Performance Issues
Powered by GitBook
On this page
  1. documentation
  2. For Developers

Event Handlers

If you want to use the WaveShield's ban system for your other scripts here you go!

-- server side
AddEventHandler("__WaveShield_internal:playerBanned",function(source, data)
    -- your function
end)

AddEventHandler("__WaveShield_internal:playerKicked",function(source, data)
    -- your function
end)

AddEventHandler("__WaveShield_internal:playerUnbanned", function(banId, data, unbanReason, from)
    -- your function
end)

-- data = {
--     id = string -- ban id
--     name = string,
--     reason = string,
--     extended = string,
--     screenshot = string, -- (url)
--     identifiers = table, -- all player identifiers
--     expires = number, -- when the ban expires (timestamp)
-- }
PreviousExportsNextCommands

Last updated 5 months ago

💻
🗑️