Using the model previewing system
#1

How do I use the new modeling preview system?
Reply
#2

Use adri1's edit of zamaroht's textdraw editor t create textdraw preview models ingame!
Then get the exported code onto your GM/filterscript under OnGameModeInit and use it anywhere you like by using showplayertextdraw...
That's it I guess...
Reply
#3

use this; https://sampforum.blast.hk/showthread.php?tid=407045
Reply
#4

Thanks, any idea how I could use this on an NGG edit for the /buyclothes cmd? Here's its code:

CMD:buyclothes(playerid, params[])
{
if(IsAtClothShop(playerid))
{
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" );
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in a Clothing Shop!" );
}
return 1;
}

if( dialogid == 3495) //buyclothes
{
new skinid = strval(inputtext);
if(!response)
{
}
else
{
if(IsValidSkin(strval(inputtext)) == 0)
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!", "Buy", "Cancel" );
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" );
}
}
else
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
PlayerInfo[playerid][pModel] = skinid;
SetPlayerSkin(playerid, skinid);
SetPVarInt(playerid, "freeSkin", 0);
}
else
{
if(GetPlayerCash(playerid) < 2500) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't afford these clothes!");
GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $2500", 2000, 1);
GivePlayerCash(playerid, -2500);
PlayerInfo[playerid][pModel] = skinid;
SetPlayerSkin(playerid, skinid);
}
}
}
return 1;
}

Basically I need it converted to the model selection system as a pose to the shitty dialog.
Reply
#5

Anyone?
Reply
#6

Still not answered. -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)