Thanks for the example Lightspark, it will be easyer for me to both read and learn this now
only thing is that I get a error
Code:
11x SXUI_bottombar\modules\gold.lua:98: attempt to index local 'playerData' (a nil value)
SXUI_bottombar\modules\gold.lua:98: in function <SXUI_bottombar\modules\gold.lua:70>
Locals:
it say 98 here but in your code it is really 93 because I added some things before your code
from what I can tell it does not get any data from "playerData"
also, if I want to add faction into this do I then add bracets like this "realmData[playerFaction[playerName]]"