GetBaseCategories (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg
fix table spec
>GoldenUrg
fix format/include
Line 1: Line 1:
{{Function|
{|
|<onlyinclude>{{Function|
name                  = GetBaseCategories
name                  = GetBaseCategories
|arguments            =  
|arguments            =  
Line 5: Line 6:
|description          = Returns the common base categories of all players.
|description          = Returns the common base categories of all players.
|object              = InsertService
|object              = InsertService
|}}
|}}</onlyinclude>
|}


== Table Format ==
== Table Format ==

Revision as of 01:47, 13 June 2010

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

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