mjau Posted October 26, 2011 Share Posted October 26, 2011 Hi there im making a All Game Modes Userpanel ... and then it offc needs settings to disablle or activate different stuff so i wondreed since there is so many settings could i create one lua file for that and the main lua files read the settings from it ? This would b the settings file example local setting1 = true local setting2 = false local setting3 = true Then my main script reads the settings from that lua file would that be possible ? Link to comment
TAPL Posted October 26, 2011 Share Posted October 26, 2011 why you don't try ? if you try you will know if is possible or not Link to comment
mjau Posted October 26, 2011 Author Share Posted October 26, 2011 Yeh but the problem is idk what i would need to read it from another file ... Link to comment
TAPL Posted October 26, 2011 Share Posted October 26, 2011 easy way to test put in setting lua file setting1 = "Hello World" and put in main lua outputChatBox like this outputChatBox (setting1) Q: do you know what is "local" mean? Link to comment
mjau Posted October 26, 2011 Author Share Posted October 26, 2011 i just know that without local they are global im not english... Edit tnx i will test ... Link to comment
mjau Posted October 26, 2011 Author Share Posted October 26, 2011 Oh BTW should the setting file be server or client in meta ? Link to comment
TAPL Posted October 26, 2011 Share Posted October 26, 2011 (edited) Oh BTW should the setting file be server or client in meta ? can be server and client but setting file and main file must be same if main is server setting too must be server if main is client setting too must be client Edited October 26, 2011 by Guest 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