Sky4D Posted July 26, 2010 Share Posted July 26, 2010 Well, i'm having a problem with GUIs lately as i'm starting to work with them more.. I can't get the darn things to work! My code: guiSetVisible(wdwselector, true) The error: ERROR: gm\script.lua:29: attempt to call global 'guiSetVisible' I have absolutely no idea what this means, i'm setting it to true, so it shouldn't be a nil value. Any help? Thanks. Link to comment
Castillo Posted July 26, 2010 Share Posted July 26, 2010 i think the problem is that u doing the code server sided, this error just tells me that. Link to comment
50p Posted July 26, 2010 Share Posted July 26, 2010 Yes. You can't use client-side functions in server-side scripts. Link to comment
Sky4D Posted July 26, 2010 Author Share Posted July 26, 2010 Yes. You can't use client-side functions in server-side scripts. Could you please explain a bit more? (Same to the user above, sorry for not quoting you) I'm new to the whole idea of "resources", so I don't really know. I'll check the wiki though for a bit more information. Link to comment
50p Posted July 26, 2010 Share Posted July 26, 2010 https://wiki.multitheftauto.com/wiki/Client_side_scripts 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