Jump to content

problem with object vgwestbillbrd10


xTravax

Recommended Posts

Posted

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!

Posted
its not mine, but it works for me. :P

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

Posted

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?

Posted

look at this part of the code;

engineApplyShaderToWorldTexture ( shader, "ws_Transfender_dirty" ) 
dxSetShaderValue ( shader, "gTexture", texture ) 

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...