GetBaseCategories (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg fix format/include |
>GoldenUrg fix format/include |
(No difference)
|
Revision as of 01:47, 13 June 2010
|
Table Format
This format is used with AdvancedResults is set (the default):
- { -- List 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
- }
- { -- Hash Table
- }
Example
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