Posts: 128
Threads: 53
Joined: Oct 2010
Reputation:
0
Hi, I use alot of textdraws and I like them so much. I'm making textdraw menus, stats in textdraws, etc. I was wondering if its better to create them at OnGameModeIni and then show and hide them or create and destroy them when its needed? For example, My stats command, When typing /stats it create textdraws and when I hide it, they get destroyed. I'm using TextDrawSetString. Will it cause more lag to create and destroy the tds?
Posts: 639
Threads: 92
Joined: Jul 2011
Reputation:
0
ShowTextDraw(Textdraw);
HideTextDraw(Textdraw);
Etcetra.
Posts: 128
Threads: 53
Joined: Oct 2010
Reputation:
0
This is not the answer I'm waiting for.
Posts: 1,196
Threads: 45
Joined: Jan 2012
Reputation:
0
You should create then destroy the textdraws, because otherwise although they will be hidden, but they will still remain created, so if you create more textdraws further and continue hiding them lot of textdraws will be there which will result in lag
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
You could use timers to show textdraw for a limited interval of time specified while using /stats command.