Ingame lua coding?

jfmherokillerjfmherokiller Join Date: 2012-12-18 Member: 175408Members
Would it be possible to create a command that allow you to test simple lua scripts while the server is running? I have tried using loadstring but i cant get the arguments to work. My current attempt looked like this: <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>local function RunLua(client,...)
local luastatement = StringConcatArgs(...)
local luafunction = assert(loadstring("return" .. luastatement)) Shared.Message(luafunction())
end
Event.Hook("Console_RunLua",RunLua)</div>

Comments

Sign In or Register to comment.