🌊
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

Exports

-- Bans a player from the client side
-- @param reason [string]: The reason for the ban
-- @param details [table] (Optional): Additional details about the ban
-- @param duration [number] (Optional): Ban duration in seconds, -1 for permanent ban
exports["WaveShield"]:banPlayer(reason, details, duration)
exports["WaveShield"]:kickPlayer(reason, details, duration)

-- Ban a player from the server side
-- @param source [number]: The player's server ID
-- @param reason [string]: The reason for the ban
-- @param details [table] (Optional): Additional details about the ban
-- @param duration [number] (Optional): Ban duration in seconds, -1 for permanent ban
exports["WaveShield"]:banPlayer(source, reason, details, duration)
exports["WaveShield"]:kickPlayer(source, reason, details, duration)

-- Unbans a previously banned player
-- @param banId [number]: The unique ID of the ban to remove
-- @param reason [string] (Optional): Reason for unbanning the player
-- @param from [string] (Optional): Name/identifier of the staff member who performed the unban
exports["WaveShield"]:unbanPlayer(banId, reason, from)

-- Unbans all currently banned players
-- @param from [string]: Name/identifier of the staff member who performed the mass unban
exports["WaveShield"]:unbanAllPlayers(from)
-- Client side
exports["WaveShield"]:screenshot(webhookUrl)
exports["WaveShield"]:captureLastSeconds(webhookUrl) -- (Video of the last 5 seconds)

-- Server side
exports["WaveShield"]:screenshot(source, webhookUrl)
exports["WaveShield"]:captureLastSeconds(source, webhookUrl) -- (Video of the last 5 seconds)
PreviousFor DevelopersNextEvent Handlers

Last updated 6 days ago

💻
👉