API:Class/AssetService

Server only:This service is server-side only! You should use a Script instead of a LocalScript when using it.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.
Service: This class is a service. It is a top-level singleton which can be obtained with the GetService method.

Cloud.pngAssetService : Object Icon.pngInstance

The AssetService is a non-replicated service that handles asset related queries to the Roblox web API. Eventually, this will house all asset related queries for Roblox objects stored in the web. One should mind the limitations this API has.


YieldFunctions

YieldFunctions [toggle]

intCreatePlaceAsync ( string placeName, int64 templatePlaceID, string description = "" )

Clones a place with placeId equal to given templatePlaceId.

|RMD member="API:Class/AssetService/CreatePlaceAsync"|Clones a place with placeId equal to given templatePlaceId.|/RMD|
intCreatePlaceInPlayerInventoryAsync ( Player player, string placeName, int64 templatePlaceID, string description = "" )

Clones a place which has placeId equal to given templatePlaceId and puts it into the inventory of the given player.

|RMD member="API:Class/AssetService/CreatePlaceInPlayerInventoryAsync"|Clones a place which has placeId equal to given templatePlaceId and puts it into the inventory of the given player.|/RMD|
array<int>GetAssetIdsForPackage ( int64 packageAssetId )

Returns an array of assetIds that are contained in a specified package.

|RMD member="API:Class/AssetService/GetAssetIdsForPackage"|Returns an array of assetIds that are contained in a specified package.|/RMD|
StandardPagesGetGamePlacesAsync ( )

Returns a Pages.pngStandardPages object which contains the name and placeId of places within the current 'Game' (otherwise known as a 'Universe').

|RMD member="API:Class/AssetService/GetGamePlacesAsync"|Returns a Pages.pngStandardPages object which contains the name and placeId of places within the current 'Game' (otherwise known as a 'Universe').|/RMD|
voidSavePlaceAsync ( )

Saves the state of the current place.

|RMD member="API:Class/AssetService/SavePlaceAsync"|Saves the state of the current place.|/RMD|
CreatePlaceAsync ( string placeName, int64 templatePlaceID, string description = "" )
Clones a place with placeId equal to given templatePlaceId.
CreatePlaceInPlayerInventoryAsync ( Player player, string placeName, int64 templatePlaceID, string description = "" )
Clones a place which has placeId equal to given templatePlaceId and puts it into the inventory of the given player.
GetAssetIdsForPackage ( int64 packageAssetId )
Returns an array of assetIds that are contained in a specified package.
Returns a Pages.pngStandardPages object which contains the name and placeId of places within the current 'Game' (otherwise known as a 'Universe').
Saves the state of the current place.


|RMD member="API:Class/AssetService"|The AssetService is a non-replicated service that handles asset related queries to the Roblox web API. Eventually, this will house all asset related queries for Roblox objects stored in the web. One should mind the limitations this API has. |/RMD|



See also