1. The entities were not calling the lua functions, the problem was that the vertexbufferobject was not setting the name of the entity.