altv-issues
altv-issues copied to clipboard
'keydown' event getting broken after reconnecting in debug mode
Description of the problem
If you use alt.on('keydown', ()=>{}) anywhere in your code most of the time it stops working (sending events) after reconnecting in debug mode.
Reproduction steps
-
Register an 'keydown' event
-
Reconnect using debug mode (mostly happens when server is turned off, and then you reconnect)
-
Callbacks are no longer sent to the event
Expected behaviour
-
Register an 'keydown' event
-
Reconnect using debug mode
-
Event is emitted, everything works as usual
Additional context
This issue is still happening back from altV v14, but never bothered me enough to report it.
Operating system
Windows 10 (v. 10.0.19045.4412)
Version
release
Crashdump ID
No response
Confirmation of issue's presence
- [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.