Posts: 42
Threads: 20
Joined: Mar 2013
Reputation:
0
hi
which should i use ? TextDrawHideForPlayer or PlayerTextDrawDestroy
Posts: 568
Threads: 28
Joined: Dec 2012
Reputation:
0
Use hide if you want to use the textdraw later without needing to recreate it. Use destroy if you won't need to use the textdraw again.
Posts: 42
Threads: 20
Joined: Mar 2013
Reputation:
0
iwhat if player disconnect and i used TextDrawHideForPlayer it will be store in memory and soon make server laggy ? ? i must destroy it ?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You don't need to destroy PLAYER-textdraws on disconnect as this is done automatically. You also don't need to hide a textdraw on disconnect (why would you do that? Can players see textdraws after quitting the game?).
If you want textdraws that are PER-player, you obviously shouldn't destroy the global textdraw unless it's only created for that player, in which case why not use a player-textdraw?