Skip to content

no-devs/events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Prevents cheaters from exploiting server events

xaries - tekken

Important Notice

If you rename a script, it will no longer work properly

Features

  • Player bans for all identifiers and `Player Tokens`
  • Discord Webhook logs when a player tries to trigger an event with no arguments / or with an invalid token
  • Using State Bags for storing data
  • Fully standalone
  • Well optimized ~0.00ms

Usage

Client

exports["secured"]:call(eventName, [, ...])

Required arguments

eventName: A string representing the event name to call on the server.

Optional arguments

...: Any additional data that should be passed along.

Example

exports["secured"]:call("Test", "test1")

Server

exports["secured"]:handler(eventName, callback)

Required arguments

eventName: The name of the event you want to listen to.
callback: The function to run when the event is called.

Example

exports["secured"]:handler("Test", function(arg)
    local player = source
    if arg ~= "test" then
        return false
    end
    return true
end)