• Help with lua and console
    3 replies, posted
Hey, how do i execute console commands in lua? Like Console("sv_chears", "1") <- example
Clientside: RunConsoleCommand("sv_myweight", "50lbs") Serverside: Player:ConCommand("sv_myweight 50lbs") Serverside to console: game.ConsoleCommand("sv_myweight 50lbs") (Some commands, like sv_cheats, are blocked for use with this. If you want to bypass that, use this module: [url]http://facepunch.com/showthread.php?t=697445[/url])
You can use RunConsoleCommand serverside aswell.
Thank you, game.ConsoleCommand is the one i need. I am using it for my addon to check if it's up to date.
Sorry, you need to Log In to post a reply to this thread.