So, I have a weapon added to the player on login. It controls all the profiles on Bomy Island.
HTML Code:
//#CLIENTSIDE
function onCreated() {
this.onLoadProfiles();
}
function onLoadProfiles() {
new GuiTextCtrl("BomyIsland_KingdomHeaderText") {
with(profile) {
fontcolor = {255, 255, 255, 255};
fontsize = 24;
fonttype = "Arial";
shadowcolor = {25, 25, 25, 255};
shadowoffset = {2, 2};
textshadow = true;
}
}
new GuiTextCtrl("BomyIsland_KingdomText") {
with(profile) {
fontcolor = {255, 255, 255, 255};
fontsize = 14;
fonttype = "Arial";
shadowcolor = {25, 25, 25, 255};
shadowoffset = {2, 2};
textshadow = true;
}
}
}
So that pretty much works (I think...), however when I try to draw the chat it's coming up as not found and as though that profile doesn't exist and draws Graals default profile.
Here's the code I am using to draw it
HTML Code:
new GuiMLTextCtrl("Kingdom_Text-Information") {
profile = BomyIsland_KingdomHeaderText;
position = {30, 20};
extent = {100, 50};
text = "Information";
}
Any ideas? thank you. The text is being displayed after the profiles have been loaded so that's not the problem.
I made all the profiles in a weapon so that it's called only on login or updated, is this a bad idea...?