Jump to content

How to get inventory images for custom items?


Recommended Posts

I've been having some difficulty, So I got my .png files and recompiled them and then wrote the respective code needed

 

Quote

local assets=
{
    Asset("ANIM", "anim/alloy.zip"),
    
    Asset("ATLAS", "images/inventoryimages/alloy.xml"),
    Asset("IMAGE", "images/inventoryimages/alloy.tex"),
}

 

and

Quote

inst.components.inventoryitem.imagename = "alloy"

But for some reason it doesn't show up! I used TEXtool and I can open my tex files fine and see them there but yet nothing in-game.

Thank you for reading.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...