Formatting a table

Hello.

I’m currently trying to make a readable inventory file. But how do I make the table look like this?

Table:


local dfile = {"weapon_pistol", "weapon_stunstick"}

I want it to format into this. How?



inventory {
      {
            "weapon_pistol",
            "weapon_stunstick"
      }
}


As in serialize it for a file? Check out:

Yeh, looks nice. I also found util.TableToKeyValues( table table ) right below, thanks for the help!

If you could mark the thread as solved, it keeps the forums a lot cleaner. c:

How? I can’t find it.