GetBaseCategories (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg initial |
>GoldenUrg use example template |
||
Line 11: | Line 11: | ||
* { -- [[Table|List Table]] | * { -- [[Table|List Table]] | ||
** { -- [[Table|Hash 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 | *** CreatorName = [[String]] creator name | ||
** } | ** } | ||
* } | * } | ||
{{Example| | |||
<pre> | <pre>local categories = Game:GetService("InsertService"):GetBaseCategories() | ||
local categories = Game:GetService("InsertService"):GetBaseCategories() | |||
for ndx,catinfo in ipairs( categories ) do | for ndx,catinfo in ipairs( categories ) do | ||
print( ndx ) | print( ndx ) | ||
Line 29: | Line 27: | ||
end | end | ||
</pre> | </pre> | ||
}} |
Revision as of 04:11, 19 April 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
- }
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