SA-MP Forums Archive
Help | 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: Help | SetObjectMaterial (/showthread.php?tid=648651)



Help | SetObjectMaterial - idan123 - 26.01.2018

PHP код:
public OnGameModeInit()
{
    new 
check = CreateObject(18727, pos[0], pos[1], pos[2]-2, 0.0, 0.0, 0.0, 6000.0);
    for(new 
f; f < 10; f++)SetObjectMaterial(check, f, 18657, "lightbeams", "Red-512x512", 0xFFFFFFFF);
    return 
1;
} 
why the material don't work?
Thanks for help


Re: Help | SetObjectMaterial - RedFusion - 26.01.2018

Model ID 18727 is a particle model. Have you tried another model? Some models cannot be textured properly.


Re: Help | SetObjectMaterial - idan123 - 26.01.2018

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
Model ID 18727 is a particle model. Have you tried another model? Some models cannot be textured properly.
on another model it's work
do you sure some models cannot be texture properly?


Re: Help | SetObjectMaterial - RedFusion - 26.01.2018

Unfortunately yes, i'm sure of it