void lua_rawseti (lua_State *L, int index, int n);

Does the equivalent of t[n] = v, where t is the value at the given valid index index and v is the value at the top of the stack,

This function pops the value from the stack. The assignment is raw; that is, it does not invoke metamethods.