Question about SetObjectMaterial - 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: Question about SetObjectMaterial (
/showthread.php?tid=568235)
Question about SetObjectMaterial -
mirou123 - 20.03.2015
Hey, I was trying to retexture a few objects using textures from vehicles for example the Medical Department sign on the ambulance. So I got the names of the textures using TXD workshop and I used the ID of the vehicle as model ID.
My code is something like this.
Code:
SetObjectMaterial(object, 0, 407, "firetruck", "lsfd92badge64", 0);
The texture of the object did not change at all. So I was wondering if I am doing something wrong or is it just impossible. And if not then are there any objects that have logos of PD, FD etc.. on them? Thanks for helping.
Re: Question about SetObjectMaterial -
cnoopers - 20.03.2015
the name of txd is
firetruk
Re: Question about SetObjectMaterial -
Pottus - 20.03.2015
This function only works on objects not vehicles lol.
Re: Question about SetObjectMaterial -
Vince - 20.03.2015
Yes, he's trying to extract the texture from a vehicle to apply it to an object. I doubt it would work though, as they are separate entities. The LV police department has some police shield logos on it, but I don't think there's any star-of-life kind of texture in SA at all.
Re: Question about SetObjectMaterial -
mirou123 - 20.03.2015
Yeah what Vince explained is what I am talking about. I did play around with that function a bit more but nothing seems to work. I strongly believe it is not possible now. Thanks for helping.