SA-MP Forums Archive
3DTextLabel in interiors - 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: 3DTextLabel in interiors (/showthread.php?tid=420787)



3DTextLabel in interiors - antonio112 - 06.03.2013

'evening everyone! I have one little 'problem'.

I'm trying to create a 3DTextLabel in PD interior (Interior ID 6) but for some reason it doesn't work.

Here's the code:
pawn Код:
Create3DTextLabel("Use /paytickets to pay all your tickets!", 0x008080FF, 249.4818, 69.1762, 1003.6406, 25.0, 0, 0);
The coordinates are good.
Virtual world is 0.

I tried to create a 3DTextLabel outside (Interior ID 0) and it works fine ... Just in interior 6 won't work.

I can't figure out why it won't appear.

Thanks.


Re: 3DTextLabel in interiors - Zempist - 06.03.2013

This should fix it

pawn Код:
Create3DTextLabel("Use /paytickets to pay all your tickets!", 0x008080FF, 249.4818, 69.1762, 1003.6406, 25.0, 6, 0);



Re: 3DTextLabel in interiors - antonio112 - 06.03.2013

Quote:
Originally Posted by Zempist
Посмотреть сообщение
This should fix it

pawn Код:
Create3DTextLabel("Use /paytickets to pay all your tickets!", 0x008080FF, 249.4818, 69.1762, 1003.6406, 25.0, 6, 0);
Tried that already... And it doesn't work.

According to sa-mp wiki, you changed VIRTUAL WORLD. That parameter is for VIRTUAL WORLD, not interior.

https://sampwiki.blast.hk/wiki/Create3DTextLabel


Re: 3DTextLabel in interiors - Zempist - 06.03.2013

This is the function you need.

pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1 , interiorid = -1, playerid = -1, Float:distance = 100.0);



Re: 3DTextLabel in interiors - Catalyst- - 06.03.2013

Did you try this? : https://sampforum.blast.hk/showthread.php?tid=152804
pawn Код:
Create3DTextLabel("Use /paytickets to pay all your tickets!", 0x008080FF, 249.4818, 69.1762, 1003.6406, 25.0, 0, 1);



Re: 3DTextLabel in interiors - antonio112 - 06.03.2013

Quote:
Originally Posted by Zempist
Посмотреть сообщение
This is the function you need.

pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1 , interiorid = -1, playerid = -1, Float:distance = 100.0);
I don't have any streamer, so that's useless but thanks anyway.

Quote:
Originally Posted by Catalyst-
Посмотреть сообщение
Did you try this? : https://sampforum.blast.hk/showthread.php?tid=152804
pawn Код:
Create3DTextLabel("Use /paytickets to pay all your tickets!", 0x008080FF, 249.4818, 69.1762, 1003.6406, 25.0, 0, 1);
I tried with LOS too but doesn't work.

That's why I'm posting, I tried pretty much everything but can't figure out what's wrong.


Tested to see my interior and virtual world inside PD section. Interior is 6 and virtual world is 0. I should be able to see the 3DTextLabel but for some reason, I don't...


Re: 3DTextLabel in interiors - Zempist - 06.03.2013

I think that would have been the best way, but if you dont want to use a streamer in your gm, why not use it in a fs and save the mess in your gm?


Re: 3DTextLabel in interiors - antonio112 - 07.03.2013

Quote:
Originally Posted by Zempist
Посмотреть сообщение
I think that would have been the best way, but if you dont want to use a streamer in your gm, why not use it in a fs and save the mess in your gm?
It's not about using a streamer or not, it's just that I want to know why I can't see the 3DTextLabel ...

I'll try using the streamer later, when I get home from work and see if that works.