Update luafunctions.cpp