Skip to main content

AccessoryTypeUtils

Functions

convertAssetTypeIdToAssetType

AccessoryTypeUtils.convertAssetTypeIdToAssetType(assetTypeIdnumber) → AssetType | nl

Converts an enum value (retrieved from MarketplaceService) into a proper enum if possible

convertAssetTypeIdToAvatarAssetType

AccessoryTypeUtils.convertAssetTypeIdToAvatarAssetType(assetTypeIdnumber) → AvatarAssetType | nil

Converts an enum value (retrieved from MarketplaceService) into a proper enum if possible

Show raw api
{
    "functions": [
        {
            "name": "convertAssetTypeIdToAssetType",
            "desc": "Converts an enum value (retrieved from MarketplaceService) into a proper enum if possible",
            "params": [
                {
                    "name": "assetTypeId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "AssetType | nl"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 43,
                "path": "src/accessorytypeutils/src/Shared/AccessoryTypeUtils.lua"
            }
        },
        {
            "name": "convertAssetTypeIdToAvatarAssetType",
            "desc": "Converts an enum value (retrieved from MarketplaceService) into a proper enum if possible",
            "params": [
                {
                    "name": "assetTypeId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "AvatarAssetType | nil"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 61,
                "path": "src/accessorytypeutils/src/Shared/AccessoryTypeUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "AccessoryTypeUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/accessorytypeutils/src/Shared/AccessoryTypeUtils.lua"
    }
}