SA-MP Forums Archive
Making a transparent 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: Making a transparent object. (/showthread.php?tid=576738)



Making a transparent object. - Strain - 06.06.2015

Hey, I want to make this object transparent by using SetObjectMaterial, but I still can see him.
Object ID: 6959
PHP код:
for(new 05c++)
{
       
SetDynamicObjectMaterial(objectidc0"none""none"0x00000000);

By the way, I already tried that tutorial http://forum.sa-mp.com/showthread.ph...visible+object, didn't help.
Someone can help me? thanks.


Re: Making a transparent object. - Pottus - 06.06.2015

You still need to specify some kinda of color... example - 0x00FFFFFF


Re: Making a transparent object. - Konstantinos - 06.06.2015

Is 6959 the modelid for "vegasnbball1"? You need to specify the objectid instead.


Re: Making a transparent object. - Strain - 06.06.2015

Still didn't work.

^ Yes, its the objectid that I made with createdynamicobject.
Just for the example I put there the number instead the variable.

More ideas?


Re: Making a transparent object. - Sexserghy - 07.06.2015

Make ur color starts with 0x00

Or in text space place nothing like this, " "

And that will give u transparent object.


Re: Making a transparent object. - Strain - 07.06.2015

I did it in 0x00, but still nothing new, I can see the object.
More comments?


Re: Making a transparent object. - Sexserghy - 07.06.2015

Quote:
Originally Posted by Strain
Посмотреть сообщение
I did it in 0x00, but still nothing new, I can see the object.
More comments?
Quote:

Or in text space place nothing like this, " "

Did u try this?


Re: Making a transparent object. - Pottus - 08.06.2015

I told you dude, you need to give it some kind of color! 0x00FFFFFF and also make sure you do it for all the material slots.


AW: Making a transparent object. - Infra - 08.06.2015

pawn Код:
for(new i; i < 13; i++)
    SetDynamicObjectMaterial(objectid, i, 0, "none", "none", 0x00000000);



Re: Making a transparent object. - Strain - 11.06.2015

Quote:
Originally Posted by Pottus
Посмотреть сообщение
I told you dude, you need to give it some kind of color! 0x00FFFFFF and also make sure you do it for all the material slots.
Quote:
Originally Posted by Infra
Посмотреть сообщение
pawn Код:
for(new i; i < 13; i++)
    SetDynamicObjectMaterial(objectid, i, 0, "none", "none", 0x00000000);
Not working Infra(still visible) and Pottus, I already tried with 0x00 and random color...