SA-MP Forums Archive
MaterialObject - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: MaterialObject (/showthread.php?tid=635230)



MaterialObject - Loinal - 03.06.2017

In my own server i want to set material object for hospital sf so its 1 object all i want only to edit the ground how can i do it?


Re: MaterialObject - Loinal - 05.06.2017

Lets make it easy:
If i already have an object i want to edit its texture how??
{Note: i didn't add the object its on the map}


Re: MaterialObject - [WSF]ThA_Devil - 05.06.2017

https://sampwiki.blast.hk/wiki/SetObjectMaterial

Find the specific object in your script and apply material to it.


Re: MaterialObject - HeLiOn_PrImE - 05.06.2017

The entire hospital plus ground is one object that has multiple textures.
You need to first remove the entire hospital using RemoveBuildingForPlayer and create it back using CreateObject.
After that you need to identify the exact texture you want and replace it with whatever you want. You do that with SetObjectMaterial.