3DTextLabel in interiors
#1

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

This should fix it

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

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
Reply
#4

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);
Reply
#5

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);
Reply
#6

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)