Possibility of adding a new Event if a custom registered Event was not found? #3073
Synaptic88
started this conversation in
Engineering Discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not used to work with github and im quite sure I'm not able to set a PR properly up so I just starting this discussion.
I wonder if someone could add a new default Event that gets called whenever a custom registered Event was not found.
Right now it looks like that and unregistered events are just ignored:
data/shared/citizen/scripting/lua/scheduler.lua#L159
Line 195 in scheduler.lua
That would be awesome:
The reason I'm requesting this change is quite simple. There are many anti-cheats that register various known events to detect potential manipulation, and there are also many cheat programs that attempt to trigger these known events. A common security measure is to change the names of known events or add validation tokens to them. However, changing an event name doesn't help to detect if an attacker has tried to trigger the usual events. If there were an event that could be used to determine if an unregistered event was triggered by a client, this event could be easily integrated into a security routine.
Beta Was this translation helpful? Give feedback.
All reactions