SA-MP Forums Archive
Textdraw preview model - 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: Textdraw preview model (/showthread.php?tid=636342)



Textdraw preview model - Lajko1 - 25.06.2017

is it possible to update textdraw preview model based on which skin player picks ?
current code i have:
Code:
if(response)
{
      TextDrawSetPreviewModel(Textdraw[50],modelid);
      SetPVarInt(playerid,"skin",modelid);
}
However it doesn't update the textdraw.


Re: Textdraw preview model - Vince - 25.06.2017

Textdraw has to be re-shown for the changes to be visible. The only exception is TextDrawSetString.


Re: Textdraw preview model - Lajko1 - 25.06.2017

oh hide and show again, um just a question which is related to textdraws also currently i'm not on computer but if I change TextDrawSetSelectable to false aka not clickable via command for example will this make textdraw non clickable? and I can change it with another command and toggle it back on? does that work like that?