xTravax Posted August 12, 2013 Share Posted August 12, 2013 hi,i didn't find a section where i could post this so i posted it in here so i want to change a picture on advertise objects(if u know what i mean) so one object of them is this vgwestbillbrd10 but when i try to find the object in img tool 2.0 it only finds vgwestbillbrd10.dff and not .txd version so how do i replace that object when theres no txd file? i need txd file so i can change advert image,if someone can help me that would be awesome! Link to comment
tosfera Posted August 12, 2013 Share Posted August 12, 2013 I've had the same problem like you, let me find the thread... edit; there ya go; viewtopic.php?f=91&t=58303&p=557274&hilit=billboard#p557274 Link to comment
xTravax Posted August 13, 2013 Author Share Posted August 13, 2013 I've had the same problem like you, let me find the thread...edit; there ya go; viewtopic.php?f=91&t=58303&p=557274&hilit=billboard#p557274 yeah i tried clicking on his shader link but when i try to download it,it says temporarily unavailable. can you upload it by yourself and give me link?please Link to comment
tosfera Posted August 13, 2013 Share Posted August 13, 2013 its not mine, but it works for me. Link to comment
xTravax Posted August 13, 2013 Author Share Posted August 13, 2013 its not mine, but it works for me. can you upload the one you have now?even if it's his,he shared it to you so he must know that other people can get it too from that link that's why i'm asking you,can you upload the one you have right now?or atleast the one he gave you Link to comment
tosfera Posted August 13, 2013 Share Posted August 13, 2013 http://up.ht/18rTdCh, there ya go. Link to comment
xTravax Posted August 13, 2013 Author Share Posted August 13, 2013 thanks edit: is there any object which has this shader on it? because i don't know how can i move this shader it's just above the tuning shop is there a way how can i place it on a specific object or to move it somewhere else? Link to comment
tosfera Posted August 13, 2013 Share Posted August 13, 2013 look at this part of the code; engineApplyShaderToWorldTexture ( shader, "ws_Transfender_dirty" ) dxSetShaderValue ( shader, "gTexture", texture ) Link to comment
xTravax Posted August 13, 2013 Author Share Posted August 13, 2013 can u help me i've done this addEventHandler( "onClientResourceStart", resourceRoot, function() texture = dxCreateTexture ( "vgwestbillbrd10.png" ) shader, tec = dxCreateShader( "shader.fx" ) --bit of sanity checking if not shader then outputConsole( "Could not create shader. Please use debugscript 3" ) destroyElement( texture ) return elseif not texture then outputConsole( "loading texture failed" ) destroyElement ( shader ) tec = nil return else engineApplyShaderToWorldTexture ( shader, "vgwestbillbrd10" ) dxSetShaderValue ( shader, "gTexture", texture ) end end ) and meta is same but i only changed the name of picture in there so the script loads with no error but it doesnt replace the look of vgwestbillbrd10 object and theres nothing in debugscript3 Link to comment
xTravax Posted August 13, 2013 Author Share Posted August 13, 2013 can anyone help me? Link to comment
xTravax Posted August 16, 2013 Author Share Posted August 16, 2013 sorry for 3 posts but,could someone just reply in here? i really don't know what is wrong with my code above Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now