SA-MP Forums Archive
customskin wont show dialog. - 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: customskin wont show dialog. (/showthread.php?tid=647825)



customskin wont show dialog. - MyUndiesSmell - 11.01.2018

I'm using mSelection to show my dialog for my skins. I have 0.3.8 server package. I have the folder set correctly for the skin ids. Artwork is enabled, and when players join the server the skins download. The problem is the dialog will not pop up.

Quote:
Код:
new customskins;

public OnGameModeInit()
{
customskins = LoadModelSelectionMenu("data/customskins.txt");
return 1;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == customskins)
	{
	    if(response)
	    {
		    SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	if(listid == skinlist)
	{
	    if(response)
	    {
	    	SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	return 1;
}

CMD:customskin(playerid, params[])
{
    ShowModelSelectionMenu(playerid, customskins, "Custom Skins");
    return 1;
}



Re: customskin wont show dialog. - MyUndiesSmell - 11.01.2018

No longer need help... I wasn't reading the console when skin were corrupted.


Re: customskin wont show dialog. - aoky - 11.01.2018

It should be:
PHP код:
new customskins mS_INVALID_LISTID
The code above fixed a lot of errors for me.

Put your customskins.txt into the scriptfiles folder. I've had issues with this before.
PHP код:
customskins LoadModelSelectionMenu("customskins.txt"); 
Also, make sure you download my updated version of mSelection for 0.3.8, else it won't show the custom models.

https://sampforum.blast.hk/showthread.php?tid=645620


Re: customskin wont show dialog. - RogueDrifter - 11.01.2018

Quote:
Originally Posted by aoky
Посмотреть сообщение
It should be:
PHP код:
new customskins mS_INVALID_LISTID
The code above fixed a lot of errors for me.

Put your customskins.txt into the scriptfiles folder. I've had issues with this before.
PHP код:
customskins LoadModelSelectionMenu("customskins.txt"); 
Also, make sure you download my updated version of mSelection for 0.3.8, else it won't show the custom models.

https://sampforum.blast.hk/showthread.php?tid=645620
Can that be used on 0.3.7-R2 or is it 0.3.8 only?


Re: customskin wont show dialog. - aoky - 11.01.2018

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Can that be used on 0.3.7-R2 or is it 0.3.8 only?
The original mSelection will work on 0.3.8, but it won't show the custom models. So therefore, you can only use original objects and skins default by GTA SA.

My mSelection fix will work on 0.3.8 also, but will show the custom models/objects.