Add function to get the weight of a container to lua script