Jump to content

help with execute code


~!#abdullah

Recommended Posts

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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...