Alright, so first, start off by saying, thank you for reading my post and secondly, let me explain more in depth of what I mean. Recently, I have been wondering on how you can make a Team GUI based on specific divisions/departments you are a part of. Like for example, lets say, a player was in Delta Force or something like that; and it is positioned right next to the main group, which there also a part of. But lets also say, another person was in a different division, for example, UKSF and it was positioned exactly like how the DF one was, just you would see the UKSF image instead of the Delta Force image (basically just replaced it’s spot). For a better explanation of what I mean, here are some pictures:
In this picture, you can see the 5th Rifle Division option to select it, because I am in the group.
In this one you cannot, because the player is not in the group
Any and all help is appreciated, so thank you in advance! If you’d like me to give a better explanation of what I mean, I’d be happy to elaborate on it.
I’m not perfectly sure what exactly what you’re trying to achieve, but I can gather you want to make a team selection menu, which presents you with a list of available teams based on your groups or assigned divisions. The way I would approach this problem if I were you would be to have a premade template icon for your team buttons, then create a table of all the groups and/or divisions, in whichever order you would like them to appear, then loop through each to see if that person is in the group. If they are, or are the rank you require them to be, then you can c
I’m not perfectly sure what exactly what you’re trying to achieve, but I can gather you want to make a team selection menu, which presents you with a list of available teams based on your groups or assigned divisions. The way I would approach this problem if I were you would be to have a premade template icon for your team buttons, then create a table of all the groups and/or divisions, in whichever order you would like them to appear, then loop through each to see if that person is in the group. If they are, or are the rank you require them to be, then you can duplicate your template and add the needed changes. Then position it at the next available position, in intervals equal to the size of the template. This allows you to just dynamically create an image button for each team without worrying about individual teams too much. You can also create a clicked function for each when you loop through your table of groups, so it makes for a clean and eaaily readable solution overall.