Skip to content

no-devs/events

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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)