I need help with fixing this code

all it really does it makes it so if an item has a custom model data 745001 then it changes the texture

Continue to help post