PDA

View Full Version : Textdraw showing question


Killer#Mummy
12/08/2012, 07:10 PM
Hi guys!

One simple question: I have a textdraw, which is shown for all players all the time. Now is it better to do TextDrawShowForPlayer when he connects and then TextDrawHideForPlayer when he disconnect, or is it better to do TextDrawShowForAll in OnGameModeInit??

Also, when I use TextDrawSetString, do I have to use TextDrawShowForPlayer to update it or it will update automaticlly?

FalconX
12/08/2012, 07:59 PM
Hi guys!

One simple question: I have a textdraw, which is shown for all players all the time. Now is it better to do TextDrawShowForPlayer when he connects and then TextDrawHideForPlayer when he disconnect, or is it better to do TextDrawShowForAll in OnGameModeInit??

Also, when I use TextDrawSetString, do I have to use TextDrawShowForPlayer to update it or it will update automaticlly?

Hello Killer#Mummy,

When you use TextDrawSetString it automatically updates the TextDraw and there will be no need to update it with showing.

Secondly, about showing for all, I personally use TextDrawShowForPlayer in OnPlayerConnect and then hide it in OnPlayerDisconnect. I haven't experimented TextDrawShowForAll in GameModeInit yet (being honest).