Safe Events

Manual Safe Events

With Safe Events you can protect your events from being abused by cheaters.

To use Manual Safe Events you have to enable Safe Events in the config.

A server event sent through the Safe Events System carries its token as argument 33. If your resource sends more than 32 arguments, argument 33 is overwritten by the token.

Replace "anticheat-name" with the folder name of your FiveGuard resource.

#Exports for Safe Events

-- CLIENT-SIDEexports["anticheat-name"]:ExecuteServerEvent(EventName, ...)exports["anticheat-name"]:ExecuteLatentServerEvent(EventName, bps, ...)-- SERVER-SIDEexports["anticheat-name"]:RegisterSafeEvent(EventName, config, cross_scripts)exports["anticheat-name"]:VerifyToken(source)
-- RegisterSafeEvent default config :{    log = true,    ban = true}

ExecuteServerEvent export:

Executes Safe Event

RegisterSafeEvent export:

Registers Event in Safe Events System

VerifyToken export:

Stops the event from being executed if the player got banned by Safe Events System

#Example Of Code

local money = 200exports["anticheat-name"]:ExecuteServerEvent("taxi:pay", money)