redditing Posted January 21, 2020 Posted January 21, 2020 How to remove dxDrawWindow with, removeEventHandler?, I would like to turn on the window several times.
Motar2k Posted January 21, 2020 Posted January 21, 2020 (edited) Could you explain a little more? and this is removeEventHandler Function removeEventHandler( string eventName, element attachedTo, function functionVar ) Wiki: https://wiki.multitheftauto.com/wiki/RemoveEventHandler Edited January 21, 2020 by Motar2k My discord: Armisael_#1719 Did my help work for you? Don't forget to thank ¿Mi ayuda funcionó para ti? No olvides agradecer
redditing Posted January 21, 2020 Author Posted January 21, 2020 5 minutes ago, Motar2k said: Could you explain a little more? and this is removeEventHandler Function removeEventHandler( string eventName, element attachedTo, function functionVar ) Wiki: https://wiki.multitheftauto.com/wiki/RemoveEventHandler I created a "cylinder" marker that allows me to open a window after entering it (dxDrawWindow) and what to do on it if this window closes for me, after re-entering Marker I get an error that such an event exists
Motar2k Posted January 21, 2020 Posted January 21, 2020 @redditing That is because the event already exists and you are not removing it when you leave the marker Use https://wiki.multitheftauto.com/wiki/OnMarkerLeave https://wiki.multitheftauto.com/wiki/RemoveEventHandler 1 My discord: Armisael_#1719 Did my help work for you? Don't forget to thank ¿Mi ayuda funcionó para ti? No olvides agradecer
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now