Hide all textdraws
#1

So, i have a stock in my filterscript there you hide all server textdraws if you press a button, but i also have textdraws in my gamemode too, so if i type /rules (this one is in the gamemode), and type /admincmds (this is from the filterscript), they both show up at the same time, but if i type /admincmds and /caged, the first textdraw will disappear, so my question is, can i set a pvar or something in this stock in the filterscript?
how can i do so it detects other textdraws in the gm?
Reply
#2

Bump
Reply
#3

You need to create 2 cmds/script to hide the TextDraws: 1 in Game Mode and other in FilterScript, because is not possible hide a TexdDraw from GM by command/script from FS.
Reply
#4

I know this but how can it detect when a textdraw is open in either gm or the fs?
Reply
#5

Bump
Reply
#6

Really need help with this...
Reply
#7

The textdraw IDs are stored in variables that are in the script in which they are created, so you can't really. The only thing I can suggest is to use CallRemoteFunction.

In the gamemode, have the command hide all the gamemode textdraws, and then call a function in the FS with CallRemoteFunction. In that function in the FS, hide the FS textdraws.
Reply
#8

Example on how?
Reply
#9

What do you guys think?

Is it better to have a GM with 4 filterscripts or is it better to place it all into the GM?
Reply
#10

place it into one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)