Solstice. Posted January 10, 2013 Posted January 10, 2013 Hello. I'm aware it's possible to change .txds of objects. Although I'm wondering if it's possible to say replace the .txd of a single object in the same dimension/interior. Basically if there'd be several 24/7s around town would it be possible to change the front logo if one of them to another,, if both of the structures use the same objects, without setting each 24/7 around the map to having that same replaced logo? The objects would be in the same location. Thanks in advance.
Moderators IIYAMA Posted January 10, 2013 Moderators Posted January 10, 2013 Nope, Because change .txds is like adding mods to objects. TXD isn't generated by a onClientRender function, but will replace it's object colours. But the directX functions give use hope, to do the impossible. Write "dx" in wiki mta and you will find other directx functions. https://wiki.multitheftauto.com/wiki/DxCreateShader Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
myonlake Posted January 10, 2013 Posted January 10, 2013 I was thinking about objects created via createObject, but I don't think it will be functioning with the engine functions at this time. However, you can use the dx-shader functions. My friend made a shader function for his own car only in order to change the texture, all other cars remained original. I can't remember how its done, but hopefully someone has a solution. Edit: Almost as fast as IIYAMA If I helped you, please click the like button on the right Thanks!
denny199 Posted January 10, 2013 Posted January 10, 2013 @myonlake engineApplyShaderToWorldTexture ( element shader, string textureName [, element targetElement = nil, bool appendLayers = true ] ) plox, the 3th argument: targetElement. Sometimes I dream about cheese
50p Posted January 10, 2013 Posted January 10, 2013 You can also load different txds depending on situation, position, etc. So, you can load 1 txd for the model if you are close to 1 shop but load different txd if you're close to the other shop. This method will only work if the 2 same models are not visible at the same time. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Solstice. Posted January 10, 2013 Author Posted January 10, 2013 denny199 said: engineApplyShaderToWorldTexture ( element shader, string textureName [, element targetElement = nil, bool appendLayers = true ] ) plox, the 3th argument: targetElement. I'll see to checking out of that actually works. 50p said: You can also load different txds depending on situation, position, etc. So, you can load 1 txd for the model if you are close to 1 shop but load different txd if you're close to the other shop. This method will only work if the 2 same models are not visible at the same time. Good idea. I intend to handle a system like this for interiors but I was trying to figure how to script a breakthru exterior script. It's basically about a player-ran business which is not a state-wide company. It'd be a nuisance to see another company's logo appear on someone else's property. Thanks for the reply. Really helped out.
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