Example code:
" temp = {}
temp['string'] = 'foobar'
temp[GetPlayer(0)] = 'player'
temp[GetEntity(0)] = 'entity'
print(temp['string']) -- foobar
print(temp[GetPlayer(0)]) -- nil
print(temp[GetEntity(0)]) -- nil
for k,v in pairs(temp) do
print(k,v) ----- stringfoobar
------ Player(0)player
------ Entity(0)entity
end
"