which should i use ? TextDrawHideForPlayer or PlayerTextDrawDestroy
#1

hi
which should i use ? TextDrawHideForPlayer or PlayerTextDrawDestroy
Reply
#2

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

iwhat if player disconnect and i used TextDrawHideForPlayer it will be store in memory and soon make server laggy ? ? i must destroy it ?
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)