HelpLua script to open all convars at once.

Posts 19 of 9 · Page 1 of 1
Lua script to open all convars at once.
Okay lets say we have 2 lua scripts and 2 convars we want to set. Is there a way to make a lua script when u load it in console it does this.

lua_openscript_cl Convar/ScriptOpener.lua.
convar1 0 to 1
convar2 0 to 2
Lua_openscript_cl Luascript1.lua
Lua_openscript_cl Luascript2.lua


|The two convars and lua scripts would be opened in console when doing Lua_openscript_cl Convar/Scriptopener.lua

If anyone has anything like this or knows how to do anything like this please help me out. I've tryed but failed
runconsolecommand incrementvar convar 0 1 1
will be patched soon
Quote Originally Posted by Trollaux View Post
runconsolecommand incrementvar convar 0 1 1
will be patched soon
Thanks for the reply but I did not want that <3 I wanted to know how I can make a lua_openscript_cl lua file that will load all these at once.
include( string luascript1.lua )?
Quote Originally Posted by LeYeezus View Post
include( string luascript1.lua )?
no its include("fag.lua") but make sure to put the right directorories
Quote Originally Posted by dakilla345 View Post
no its include("fag.lua") but make sure to put the right directorories
Holy crap dude such hilarious.
Quote Originally Posted by LeYeezus View Post
Holy crap dude such hilarious.
thats thw way to do it include("lol/something.lua")
function CMANCA:ASBOOT(v)
RunConsoleCommand("...", 1);
end
Posts 19 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?