SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 28/05/2020, 06:22 PM   #1
zampa
Little Clucker
 
Join Date: Dec 2019
Posts: 17
Reputation: 0
Default Invisible object has a Silhouette in interiors problem

I'm trying to create a dummy object but i have to place it in a interior and it shows a silhouette. This happens with all the other objects. It doesn't happen if it's not created in interiors.
Code:
	new col_object;
	col_object = CreateDynamicObject(2690, 2069.56763, -1728.48706, 13.84051, 0.00000, 0.00000, 0.00000, -1, 2);
	SetDynamicObjectMaterial(col_object, 0, 0, "none", "none", 0); //tried hex 0x00000000 too, didn't work.
There's literally nothing wrong with my code so if somebody could help me out i'd appreciate it, this is a weird bug. I even tried using non-dynamic object, same result.
Changing the time/weather didn't work either.
Interior ID in the photo is 2, the object's interior id was also 2.
zampa is offline   Reply With Quote
Old 28/05/2020, 09:50 PM   #2
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,783
Reputation: 619
Default Re: Invisible object has a Silhouette in interiors problem

I think there's no way of fixing it. Transparency is pretty broken in interiors. Does this effect also happen if you place it inside a building (so it's not in front of the sky)?

You could also try SetDynamicObjectMaterialText. You can use " " (a space) for the text and background color 0 to make it invisible.
NaS is offline   Reply With Quote
Old 29/05/2020, 11:36 AM   #3
zampa
Little Clucker
 
Join Date: Dec 2019
Posts: 17
Reputation: 0
Default Re: Invisible object has a Silhouette in interiors problem

Quote:
Originally Posted by NaS View Post
I think there's no way of fixing it. Transparency is pretty broken in interiors. Does this effect also happen if you place it inside a building (so it's not in front of the sky)?

You could also try SetDynamicObjectMaterialText. You can use " " (a space) for the text and background color 0 to make it invisible.
This fixed it, thanks yo. +rep
zampa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Players are invisible when entering interiors DomagojSellug Scripting Help 6 12/08/2019 05:29 PM
Invisible objects in house interiors (SA:MP map editor) CONTROLA Scripting Help 0 12/11/2013 03:09 PM
invisible object ? park4bmx Everything and Nothing 5 27/12/2011 12:08 PM
help plz invisible object arititlez Help Archive 1 26/10/2010 04:50 PM
[HELP] Invisible object dclaw Help Archive 0 24/02/2010 08:46 PM


All times are GMT. The time now is 08:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.