• Lua Scripts Saving Help
    40 replies, posted
It gave me back true. [code]> print(tostring(file.IsDir("../../garrysmod/garrysmod/lua", true)))... true[/code]
Do none of you know what you're talking about, and trying to make it seem like you know what you're talking about or what.
[QUOTE=thefreeman193;31151274]Okay, try this. If this returns false, then for some reason the game cannot access the lua folder: [code]lua_run print(tostring(file.IsDir("../../garrysmod/garrysmod/lua", true)))[/code][/QUOTE] Try moving helloworld.lua to the autorun/ path and use the following. lua_openscript_cl autorun/helloworld.lua
Not at my PC right now, I'll post results tomorrow as soon as I can.
[QUOTE=LauScript;31163970]Do none of you know what you're talking about, and trying to make it seem like you know what you're talking about or what.[/QUOTE] With a problem like this one, it's difficult to interpret the cause. You can't just randomly suggest fixes, you need to eliminate potential causes such as file/directory attributes. [QUOTE=killover;31170412]Not at my PC right now, I'll post results tomorrow as soon as I can.[/QUOTE] Okay, if RetTurtl3's suggestion doesn't work, post a directory tree and we'll see if anything has been missed.
Didn't work, also what is a directory tree? This is probably a really fucking stupid question.
What folder does your gmod client load from.. not your server
Fixed, I apparently have two garrysmod directorys [code]G:\Games\New Folder\steamapps\killover509\garrysmod\garrysmod[/code] and [code]G:\New Folder\steamapps\killover509\garrysmod\garrysmod[/code] When I put it into [code]G:\Games\New Folder\steamapps\killover509\garrysmod\garrysmod\lua[/code] it worked. Thanks for helping me everyone :love:
You're welcome.
I like how jrj or w.e is saying my posts are dumb when I'm answering someones question.
[QUOTE=InfernalCookie;31221172]I like how jrj or w.e is saying my posts are dumb when I'm answering someones question.[/QUOTE] Because you answered it wrong? [QUOTE=InfernalCookie] >.<' It's not working because it's sending it to the serverside console so ofc you aren't getting it. Try using Print [/QUOTE] In singleplayer the console is a combination of the server and client consoles. Msg on the server prints in blue. Msg on the client prints in orange. Messages from other sources can be various colours. Also you don't need to use srcds. The only reason to use srcds is if it starts up faster than GMod, but that's irrelevant if you're using lua_openscript because you don't have to restart the game to test your script.
Sorry, you need to Log In to post a reply to this thread.