• Can't apply a custom texture to an existing model
    3 replies, posted
I'm trying to change texture on the smg ammo crate only on an entity i made, but the texture doesnt show up anywhere on garrysmod, and im able to put native materials on the same ammo crate. Sorry if it sounds like a basic problem, Ive used lua a lot for roblox, but im trying to transition into modding for Garry's mod xD https://files.facepunch.com/forum/upload/485737/e36634c1-22fe-478f-839f-5f547eda95b6/capture3.PNG https://files.facepunch.com/forum/upload/485737/3c70bc1e-707a-4cfb-bbbe-c01a6bd24497/Capture2.PNG https://files.facepunch.com/forum/upload/485737/432fdfa8-9d78-4224-abac-c30dd6968a62/Capture.PNG https://files.facepunch.com/forum/upload/485737/16abb321-1057-465d-972c-12114fb01eea/Capture1.PNG
your texture is a lightmappedgeneric instead of vertexlitgeneric. if you use true in the second argument, itll forcefully use it but it wont look correct so do the former.
https://files.facepunch.com/forum/upload/485737/22f2a76c-70b2-40a2-86e8-54e43b2e60e0/capture3.PNG https://files.facepunch.com/forum/upload/485737/33a94566-3316-406a-bbd9-ee95ba2b0924/Capture2.PNG https://files.facepunch.com/forum/upload/485737/0d038286-9ab7-4b86-898b-34e733485eeb/Capture.PNG I tried swapping the true parameter in for both options, but the box didnt change in texture at all
You should use material path without any vmt and vtf. For example you have .vtf file at materials/a/texture.vtf and vmt at materials/a/c/material.vmt You should set $basetexture to your texture (.vtf). But In game you will use: Material("a/c/material")
Sorry, you need to Log In to post a reply to this thread.