Hide all textdraws - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hide all textdraws (
/showthread.php?tid=498568)
Hide all textdraws -
Ananisiki - 04.03.2014
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?
Re: Hide all textdraws -
Ananisiki - 04.03.2014
Bump
Re: Hide all textdraws -
JR_Junior - 04.03.2014
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.
Re: Hide all textdraws -
Ananisiki - 04.03.2014
I know this but how can it detect when a textdraw is open in either gm or the fs?
Re: Hide all textdraws -
Ananisiki - 05.03.2014
Bump
Re: Hide all textdraws -
Ananisiki - 05.03.2014
Really need help with this...
Re: Hide all textdraws -
MP2 - 05.03.2014
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.
Re: Hide all textdraws -
Ananisiki - 05.03.2014
Example on how?
Re: Hide all textdraws -
Ananisiki - 05.03.2014
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?
Re: Hide all textdraws -
Equuuuin0X - 05.03.2014
place it into one.