altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Event for unhandledExceptions / errors on client-side #2265

Closed dGxxxx closed 3 months ago

dGxxxx commented 3 months ago

Description of the problem

I think it will be a good idea to have a event which catches all the errors generated on the client-side code. We can use this to catch all errors from server-players, without them having to report anything.

The current AnyResourceError (C#) doesn't do nothing regarding this kind of errors, so we cant use it for this purpose.

Desired solution for the problem

Add ResourceException / ResourceError as client event.

Alternatives you considered

Use Try - Catch all over the code.

Additional context

No response

xxshady commented 3 months ago

if its c# related you can open issue in c# module repo

dGxxxx commented 3 months ago

if its c# related you can open issue in c# module repo

I will test on JS, and if its only c# related, I will open repository there.

xxshady commented 3 months ago

js module has resourceError & anyResourceError events

dGxxxx commented 3 months ago

js module has resourceError & anyResourceError events

thank you. will open on C# module.