Making a transparent object.
#1

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.
Reply
#2

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

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

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?
Reply
#5

Make ur color starts with 0x00

Or in text space place nothing like this, " "

And that will give u transparent object.
Reply
#6

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

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?
Reply
#8

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.
Reply
#9

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

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)