Changing texture for game objects without delete>recreate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Changing texture for game objects without delete>recreate (
/showthread.php?tid=647463)
Changing texture for game objects without delete>recreate -
Adam_Hardy - 05.01.2018
So I was wondering if it was possible to change GTA SA based map objects texture without having to delete them and recreate them in the same location, that's how I usually do it. Can I as an example change Pershing Square's LSPD texture without having to delete it and recreating it? If so then how can I define it on my script?
Like usually for texture editing you give a specific value to the objects in order to be able to change them, but if I do it to GTA objects how can I name them? Will object ID work? Maybe something like this?
Код:
SetObjectMaterial(3976, 0, 19791, "cs_ebridge", "BLOCK2", 0xFF9FB19E);
To be honest I do not care if it end up changing all the objects with that ID. Also do you guys think there's a way I can do this with GetObjectModel and IsValidObject? Just a quick reminder, I'm trying to change GTA based maps textures and not script Objects or Dynamic Textures.
Re: Changing texture for game objects without delete>recreate -
Beckett - 05.01.2018
Unfortunately that's not possible.
Re: Changing texture for game objects without delete>recreate -
Adam_Hardy - 05.01.2018
Anyone else have an idea or how can I approach such thing?
Re: Changing texture for game objects without delete>recreate -
Adam_Hardy - 31.01.2018
Anyone?
Re: Changing texture for game objects without delete>recreate -
Mugala - 31.01.2018
it's not possible dude, u have to delete it.
by the way, u can put some textures in your gta3.img instead of this building