Chronic Posted January 5, 2014 Posted January 5, 2014 So I deleted all the default scripts the only script I have is this: guiCreateWindow ( 0.5, 0.4, 1, 1, "yo", true ) That's the entire script but it doesn't work, it's on client side.
Noki Posted January 5, 2014 Posted January 5, 2014 You need to state the name of your window in your script. window = guiCreateWindow(..) guiSetVisible(window, true)
Chronic Posted January 5, 2014 Author Posted January 5, 2014 Tried it, doesn't work local jW = guiCreateWindow ( 0, 0, 0.5, 0.4, "yo", true ) guiSetVisible ( jW, true ) No errors in debug
Chronic Posted January 5, 2014 Author Posted January 5, 2014 Still doesn't work, it seems that when I deleted all the default resources none of the client-side functions work. Hmm
Noki Posted January 5, 2014 Posted January 5, 2014 function openGUI() window = guiCreateWindow(..) end addCommandHandler("open", openGUI)
Chronic Posted January 5, 2014 Author Posted January 5, 2014 That doesn't work either. Client side functions do not work.
DiSaMe Posted January 5, 2014 Posted January 5, 2014 [CSG]NOki, you seem to find the problems in the script when they're actually not in there. If client-side functions do not work (but other functions do), then the script is clearly server-sided, which is either specified explicitly in meta.xml or not specified, in which case MTA uses it as server-side script by default.
Noki Posted January 5, 2014 Posted January 5, 2014 [CSG]NOki, you seem to find the problems in the script when they're actually not in there.If client-side functions do not work (but other functions do), then the script is clearly server-sided, which is either specified explicitly in meta.xml or not specified, in which case MTA uses it as server-side script by default. So I deleted all the default scripts the only script I have is this:That's the entire script but it doesn't work, it's on client side. I thought he had already declared it as client side, as he said in the first post. Well, I guess I mistook what he said. Anyway, I never knew that if it was undeclared, it takes it as server-side. Glad to know.
xXMADEXx Posted January 5, 2014 Posted January 5, 2014 Chronic, if this hasn't been solved yet, go head and post your meta.xml please.
Chronic Posted January 5, 2014 Author Posted January 5, 2014 Thanks Made, it was a problem in my meta.xml (facepalm)
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