• GLua.
    8 replies, posted
Im not sure where to post this :p Well, im just wondering what the function to create a file is. Im making a test-script (im new to the whole GLua thing.)
What do you mean to "create a folder?"
Im so dumb XD I ment to create a FILE. Like, a .txt file.
what?
Like in the data folder? [url]https://wiki.garrysmod.com/page/file/Write[/url]
code_gs... Thank you XP I was looking for it and I was just confused. however However how can you write the file in a directory that's inside data? Such as gmodserver\garrysmod\data\test\?
[url]https://wiki.garrysmod.com/page/file/CreateDir[/url] Then, just add the path to your string in file.Write
OK, thanks! [editline]4th February 2016[/editline] Is there a way to make a script loop? Like, it will pause for 30 seconds, then restart itself?
You would want to use a timer ( [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/timer/Create]timer.Create[/url] ). Set repetitions to 0 for it to loop forever.
Sorry, you need to Log In to post a reply to this thread.