SA-MP Forums Archive
Add custom texture to a object - 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: Add custom texture to a object (/showthread.php?tid=617357)



Add custom texture to a object - SoFahim - 20.09.2016

I know, it can be done by .inc or other method.

How I can do that with using SetObjectMaterial and something like that?


Re: Add custom texture to a object - PrO.GameR - 20.09.2016

What do you exactly want? that function is self-explanatory, here's a step by step guide:
1- Save the object ID returned by CreateObject (locally or globally, depending on when you want to texture it)
2- Find data about texture you want (texture refrence site: https://textures.xyin.ws/?page=textures)
3- Find the object index you want to change (You can guess or use the map editor to find out, there's a guide somewhere)
4- Use it with SetObjectMaterial


Re: Add custom texture to a object - SoFahim - 20.09.2016

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
What do you exactly want? that function is self-explanatory, here's a step by step guide:
1- Save the object ID returned by CreateObject (locally or globally, depending on when you want to texture it)
2- Find data about texture you want (texture refrence site: https://textures.xyin.ws/?page=textures)
3- Find the object index you want to change (You can guess or use the map editor to find out, there's a guide somewhere)
4- Use it with SetObjectMaterial
If you ever saw my threads I already done few mappings and retextures.

I am asking about Picture to Mapping textures, not object default textures.


Re: Add custom texture to a object - Crayder - 20.09.2016

It cannot be done without modding GTASA.