multitheftauto/mtasa-blue

Limit "but event is not added serverside" to one error per second.

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.

ERROR: Client (name) triggered serverside event eventName, but event is not added serverside

This debug error is useful to find bugs in scripts, but there is no reason for it to debug hundreds of times a second. Limiting it to one output per second would prevent servers from being impacted by... buggy scripts.

Describe the solution you'd like

I was thinking at first a setting you have to enable to ignore these errors, but instead just protect all servers by default with a limit of 1 per second.

Describe alternatives you've considered

There is no better alternative than this.

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

I have made a PR trying my best to comply with all the coding guidelines - #4467