redditing Posted January 21, 2020 Share Posted January 21, 2020 How to remove dxDrawWindow with, removeEventHandler?, I would like to turn on the window several times. Link to comment
Motar2k Posted January 21, 2020 Share 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 Link to comment
redditing Posted January 21, 2020 Author Share 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 Link to comment
Motar2k Posted January 21, 2020 Share 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 Link to comment
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