cannot show textdraw over another!
#1

Hi guyz.

I want to show a textdraw (previewmodel) on another textdraw (text), but i cant.

I tried create previwmodel after my text textdraw.

Reply
#2

Just show the preview model at the end of everything, first show the text and then the preview model.
Reply
#3

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Just show the preview model at the end of everything, first show the text and then the preview model.
i tried this but it didnt work
Reply
#4

Quote:
Originally Posted by AmirHossaiN
Посмотреть сообщение
i tried this but it didnt work
Add a timer which adds the preview model after a few seconds
Reply
#5

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Add a timer which adds the preview model after a few seconds
it didnt work yet (
Reply
#6

Make sure that the sprite is created after the other TextDraw (not neccessarily shown later).

If nothing works (sometimes the order is tricky to get right with sprites), use a PlayerTextDraw for the hat, that will always show it above a regular TextDraw (however that is not the ideal solution since a global TextDraw is appropriate for TextDraws that are shown to everybody).
Reply
#7

Quote:
Originally Posted by NaS
Посмотреть сообщение
Make sure that the sprite is created after the other TextDraw (not neccessarily shown later).

If nothing works (sometimes the order is tricky to get right with sprites), use a PlayerTextDraw for the hat, that will always show it above a regular TextDraw (however that is not the ideal solution since a global TextDraw is appropriate for TextDraws that are shown to everybody).
i tried both, but didnt work!!!!!!!!!!
Reply
#8

Hello,

Have you maybe tried to place previewmodel textdraw to load after the name textdraw?
I mean it in way you create textdraws (under OnGamemodeInit) like this here

Because It doesnt matter when you will show your textdraw, the thing that matters is when you create textdraws.


EDIT: Nevermind, I saw NaS posted same thing like me...
Reply
#9

Quote:
Originally Posted by TomRedlake
Посмотреть сообщение
Hello,

Have you maybe tried to place previewmodel textdraw to load after the name textdraw?
I mean it in way you create textdraws (under OnGamemodeInit) like this here

Because It doesnt matter when you will show your textdraw, the thing that matters is when you create textdraws.


EDIT: Nevermind, I saw NaS posted same thing like me...
my example code:

PHP код:
OnGameModeInit:
Name CreateTextDraw(...)
SantaHat CreateTextDraw(...)
OnPlayerSpawn:
TextDrawShowForPlayer(playeridName);
TextDrawShowForPlayer(playeridSantaHat); 
but Name textdraw is over than Santahat
Reply
#10

Did you also try to make the Hat a PlayerTextDraw?

I have a sprite in my script similar to this (a regular textdraw showing text and a playertextdraw sprite), which works.

You could also try to create other TextDraws before both of them (just for testing).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)