Textdraws questions
#1

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

ShowTextDraw(Textdraw);
HideTextDraw(Textdraw);
Etcetra.
Reply
#3

This is not the answer I'm waiting for.
Reply
#4

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
Reply
#5

You could use timers to show textdraw for a limited interval of time specified while using /stats command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)