Hi, so I'm trying to make a script where I store some group names, ids of players within that group and the RGB for the outputChatBox. Here's my table:
local groups = {
fondatori = {
name = "Fondator|Dev |",
ids = {1, 3, 54, 85}, -- ID Of Players
RGB = {0, 153, 255} -- RGB
},
fondatori2 = {
name = "Fondator|Hosting",
ids = {2},
RGB = {0, 153, 255} B
},
hosteri = {
name = "Hoster |",
ids = {9},
RGB = {204, 0, 102}
},
scripteri = {
name = "Scripter |",
ids = {46},
RGB = {204, 0, 102}
},
admini = {
name = "Admin |",
ids = {},
RGB = {255, 0, 0}
},
}
So I want to loop through every group and if the player is in one of those groups have an outputChatBox like so:
outputChatBox("Fondator|Dev | ..:D&G:.. says hello!",0, 153, 255)
I know how to loop through a table, but not a table withing a table within a table... I tried and it's so confusing and my head hurts, maybe someone smarter than me can do this