Update LuaFunctions.cpp