|
|
(13 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| {{Function|
| | #REDIRECT [[GetBaseCategories (Method)]] |
| name = GetBaseCategories
| |
| |arguments =
| |
| |returns = [[Table]] (See below)
| |
| |description = Returns the common base categories of all players.
| |
| |object = InsertService
| |
| |}}
| |
| | |
| == Table Format ==
| |
| This format is used with AdvancedResults is set (the default):
| |
| * { -- [[Table|List Table]]
| |
| ** { -- [[Table|Hash Table]]
| |
| *** AssetId = [[Integer]] for use with InsertService::LoadAsset()
| |
| *** AssetSetId = [[Integer]] source set
| |
| *** AssetVersionId = [[Integer]] for use with InsertService::LoadAssetVersion()
| |
| *** IsTrusted = [[Integer]] "trusted" flag
| |
| *** Name = [[String]] model name
| |
| *** CreatorName = [[String]] creator name
| |
| ** }
| |
| * }
| |
| | |
| {{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>
| |
| }}
| |