GET ImageId from DecalId In-Game [DEPRECIATED DO NOT USE]

cc @GooierApollo664

The domain for F3X’s asset extraction is https://f3xteam.com/bt/. There are specific endpoints for decals and meshes. Remember to wrap the calls with pcall, as is standard (or should be) when working with the HttpService.

To retrieve an image, you require getDecalImageID with the ID supplied. It returns a number in plain text, so you can return the response directly from the call and use it.

local image = HttpService:GetAsync("http://f3xteam.com/bt/getDecalImageID/decalID")

To retrieve mesh data, it’s getFirstMeshData. It returns a JSON string that includes the fields:

  • bool success
  • number meshID
  • number textureID

For this, you can return the result of JSONDecode on the response of the call. This will give you a table. If success is true, meshID and textureID will be included. You can then use those on the fly.

local meshDataRaw = HttpService:GetAsync("http://f3xteam.com/bt/getFirstMeshData/meshID")
local meshData = HttpService:JSONDecode(meshDataRaw)

if meshData.success then
    print(meshData.meshID, meshData.textureID)
end

If you want to replicate these endpoints and host your own server that can do this, quite sure something in Roblox’s web API should help you out. You could probably run it in the box too with a proxy.

5 Likes