Returns information about a permanently socketed gem. If the given socket contains a permanently socketed gem, returns information for that gem (even if a new gem has been dropped in the socket to overwrite the existing gem, but has not yet been confirmed). If the socket is empty, returns nil.

Only returns valid information when the Item Socketing UI is open (i.e. between the SOCKET_INFO_UPDATE and SOCKET_INFO_CLOSE events).

See also Socketing functions.


name, texture, name = GetExistingSocketInfo(index)



  • name - Name of the socketed gem (string)
  • texture - Path to an icon texture for the socketed gem (string)
  • name - 1 if the gem matches the socket's color; otherwise nil (1nil)