It's better to avoid to using long amounts of data in client flags because they get truncated/cut-off in external RC.
You could store them like this:
clientr.hat.Egghat = "hat2.png";
Then to display them:
PHP Code:
//#CLIENTSIDE
function onCreated() {
echo("Hats");
for (temp.hat: getstringkeys("clientr.hat.")) {
temp.hat_image = clientr.hat.(@temp.hat);
echo(format(" - %s: %s", temp.hat, temp.hat_image));
}
}
Adding a hat would be easy as putting this in your player joined class:
PHP Code:
public function addHat(hat_name, hat_image) {
clientr.hat.(@hat_name) = hat_image;
}
and calling:
player.addHat("Egg Hat", "hat2.png");
This is basically an item system.