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 c = 0; c < 5; c++)
{
SetDynamicObjectMaterial(objectid, c, 0, "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...