Hello!
I need to display random messages in AdminForm while opening admin panel without restarting it
But when i create table and set text to aMessages[math.random(#aMessages)], it changes only on restarting admin resource, but i need changing every time when you open it
Code:
aMessages = {
[[Admin panel by Lil_toady]],
[[TEST1]],
[[TEST2]],
[[TEST3]],
[[TEST4]],
[[TEST5]]
}
guiCreateLabel ( 0.75, 0.05, 0.45, 0.04, aMessages[math.random(#aMessages)], true, aAdminForm )