• Lua File(s) not Loading In
    6 replies, posted
So I was working on a reporting system (similar to a ticket system) for servers My issue, however, is my file isn't being recognized by the server The file is in garrysmod/lua/autorun When I turn on the server and press F2 (a bind recognized by the server to tell the client to open a DFrame), nothing happens Same with the chat command made in the script I found that if I go into the lua file, backspace any random character, then type that character again putting it exactly where it was before I removed it, then hit save, the F2 bind and chat command will work perfectly fine Essentially, not changing the file at all but saving it again while the server is running will allow it to work If I were to restart the server, reconnect to the server, or change maps, I will have to do this "resaving" process again for the file to work Anyone know what's causing this or how I can fix it? My GMod server is fully up to date, there are no other addons in my server's addons directory, nor are there non-default files in garrysmod/lua/autorun
Do you server runs in windows?
Yes, Windows 7
Post code
Okay [url]http://pastebin.com/h6YwETvE[/url]
Move [code]net.Receive("OpenReportWindowNS", OpenReportWindow)[/code] to below the function definition. Also you should probably localize those functions just to not clutter the global table.
Yep now it works Seems I did that a few times throughout the file, calling a function just before I define it Thanks for the help, guys
Sorry, you need to Log In to post a reply to this thread.