Using a text draw for gas?
#1

Is it a good idea or bad idea?

I have heard it's buggy to use the same textdraw for all players, so how to make a unique one per player(or car) that wont crash and will update gas every 500 miliseconds

TextdrawGAS = TextDrawCreate(88.000000, 428.000000, gasString);
TextDrawAlignment(TextdrawGAS, 2);
TextDrawBackgroundColor(TextdrawGAS, -1);
TextDrawFont(TextdrawGAS, 2);
TextDrawLetterSize(TextdrawGAS, 0.270000, 1.400000);
TextDrawColor(TextdrawGAS, 255);
TextDrawSetOutline(TextdrawGAS, 1);
TextDrawSetProportional(TextdrawGAS, 1);

Reply
#2

It's only buggy when people don't script it correctly.

Adjustments made to BoxColor and TextSize won't take affect on someone's screen until you use TextDrawShowForPlayer (there's no reason to use TextDrawHideForPlayer whilst updating)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)