I developed a method that listens to any and all events triggered by TriggerClient/ServerEvent or TriggerEvent, allowing for visualization of events and manipulation of them. I would like to suggest to Cfx to implement this as a native function, which would greatly assist developers and improve event security by preventing unauthorized events from being triggered. The attached images show the resource I created for event manipulation and other resources, and another image shows the adaptation created in scheduler.lua.
Just a reminder: onEventTriggered would become a global event, similar to playerConnecting/entityCreating/entityCreated (and others).
When testing, please use the vRP framework and start the resource only after all other scripts have already been initialized.
scheduler:
core.lua (3.6 KB)