|
|
(6 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| {|
| | #REDIRECT [[GetBaseCategories (Method)]] |
| |<onlyinclude>{{Function|
| |
| name = GetBaseCategories
| |
| |arguments =
| |
| |returns = [[Table]] (See below)
| |
| |description = Returns the common base categories of all players.
| |
| |object = InsertService
| |
| |}}</onlyinclude>
| |
| |}
| |
| | |
| == Table Format ==
| |
| This format is used with AdvancedResults is set (the default):
| |
| * { -- [[Table|List Table]]
| |
| ** { -- [[Table|Hash Table]]
| |
| *** CategoryId = [[Integer]] for use with InsertService::GetCollection
| |
| *** ImageAssetId = [[Integer]] decal asset
| |
| *** Name = [[String]] category name
| |
| *** Description = [[String]] category description
| |
| *** CreatorName = [[String]] creator name
| |
| *** AssetSetId = [[Integer]] for use with InsertService::GetCollection
| |
| *** SetType = [[String]] "base" for built-in categories
| |
| ** }
| |
| * }
| |
| | |
| {{Example|
| |
| <pre>local categories = Game:GetService("InsertService"):GetBaseCategories()
| |
| for ndx,catinfo in ipairs( categories ) do
| |
| print( ndx )
| |
| for k,v in pairs(catinfo) do print( k, "=", v ) end
| |
| end
| |
| </pre>
| |
| }}
| |