~!#abdullah Posted January 8, 2013 Share Posted January 8, 2013 I want action button in window Freeroam opens another Script I have tested function hedit () executeCommandHandler ("hedit") End And worked But in other scripts does not work: / I want a way to script another Link to comment
Castillo Posted January 8, 2013 Share Posted January 8, 2013 What do you mean by "in other scripts does not work"? What are these "other scripts"? Link to comment
GhostXoP Posted January 8, 2013 Share Posted January 8, 2013 Because hedit probably isn't defined anywhere else in any other resource. Link to comment
iPrestege Posted January 8, 2013 Share Posted January 8, 2013 (edited) if it works with one resource should to work with others but if you use freeroam you should to but the execute to close the script under " function toggleFRWindow() " else you should to close the function with "end" not "End" for example : function hedit() executeCommandHandler("hedit") end else to close the script should be like that : function toggleFRWindow() if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() executeCommandHandler("close-hedit") else showCursor(true) showAllWindows() end end else you should to add a functiong to close the script what you want to add it to the freeroam using : SetVisible. Edited January 8, 2013 by Guest Link to comment
GhostXoP Posted January 8, 2013 Share Posted January 8, 2013 if it works with one resource should to work with others If that parent resource is running Link to comment
iPrestege Posted January 8, 2013 Share Posted January 8, 2013 if it works with one resource should to work with others If that parent resource is running Of course, must be running. Link to comment
Tete omar Posted January 8, 2013 Share Posted January 8, 2013 And i strongly recommend you to use https://wiki.multitheftauto.com/wiki/Call instead. Link to comment
iPrestege Posted January 9, 2013 Share Posted January 9, 2013 And i strongly recommend you to use https://wiki.multitheftauto.com/wiki/Call instead. Yes , but if you use freeroam it,s beteer if you use "executeCommandHandler" . 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