So, I tryed in a script to [B][URL="http://wiki.garrysmod.com/page/Global/RunConsoleCommand"]RunConsoleCommand[/URL]("lua_run", "SERVERRestart(true)")[/B], and it didn't work [I](Because it is blocked)[/I].
How can I do [B]lua_run[/B] in a server-side script? [I](Like with [URL="http://wiki.garrysmod.com/page/Player/SendLua"]Player:SendLua[/URL]( string script ))[/I]
[B][I](Sorry about bad english)[/I][/B]
You are writing a lua script on the server silly. You don't have to run lua_run in the console.
Unless you are trying to run this on the client to send it to the server, in which case [url]https://wiki.garrysmod.com/page/Net_Library_Usage[/url]
Sorry, you need to Log In to post a reply to this thread.