GetBaseCategories (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
added
>Emess
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|
<onlyinclude>{{Method|name = GetBaseCategories
|<onlyinclude>{{Method|name = GetBaseCategories
|arguments =  
|arguments =  
|returns = [[Table]] (See below)
|returns = [[Table]] (See below)
|description = Returns the common base categories of all players.
|description = Returns the common base categories of all players.
|object = [[InsertService]]
|object = InsertService
|}}</onlyinclude>
}}</onlyinclude>
|}
{{clear floats}}
 
== Table Format ==
== Table Format ==
This format is used with AdvancedResults is set (the default):
This format is used with AdvancedResults is set (the default):
Line 29: Line 27:
end
end
</pre>}}
</pre>}}
[[Category:Methods]]

Latest revision as of 02:12, 30 December 2010

GetBaseCategories( )
Returns Table (See below)
Description: Returns the common base categories of all players.
Member of: InsertService

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
    • }
  • }
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