SA-MP Forums Archive
Image - 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: Image (/showthread.php?tid=658313)



Image - DarkMythHunter - 01.09.2018

So, in the server I have a crafting options to craft walls, doors, etc...


The thing is, instead of it showing a photo of the object/item it just shows "CJ" body. How can I fix it?


Re: Image - Shinja - 01.09.2018

Code


Re: Image - Undef1ned - 01.09.2018

show code


Re: Image - DarkMythHunter - 02.09.2018

Oh, sorry. Didn't know the code is needed cause I thought there's a plug-in needed to be updated. Anyways, it's a ton of lines. But here is a part of it:


Code:
case 0:
				{
					new _content[] = "\
					19366\tWooden wall~n~x7 Logs of Wood\n\
					19370\tWooden Wall~n~x8 Logs of Wood\n\
					19433\tWooden Wall~n~x4 Logs of Wood\n\
					19439\tWooden Wall~n~x4 Logs of Wood\n\
					19443\tWooden Wall~n~x4 Logs of Wood\n\
					19376\tWooden Wall~n~x40 Logs of Wood\n\
					19378\tWooden Wall~n~x40 Logs of Wood\n\
					19379\tWooden Wall~n~x40 Logs of Wood\n\
					19462\tWooden Wall~n~x25 Logs of Wood\n\
					19448\tWooden Wall~n~x25 Logs of Wood\n\
					19452\tWooden Wall~n~x25 Logs of Wood\n\
					19458\tWooden Wall~n~x25 Logs of Wood\n\
					19367\tBrick Wall~n~x10 Bricks\n\
					19362\tBrick Wall~n~x10 Bricks\n\
					19437\tBrick Wall~n~x7 Bricks\n\
					19440\tBrick Wall~n~x7 Bricks\n\
					19438\tBrick Wall~n~x7 Bricks\n\
					19365\tBrick Wall~n~x10 Bricks\n\
					19364\tBrick Wall~n~x10 Bricks\n\
					19444\tBrick Wall~n~x7 Bricks\n\
					19464\tBrick Wall~n~x18 Bricks\n\
					19457\tBrick Wall~n~x27 Bricks\n\
					19449\tBrick Wall~n~x27 Bricks\n\
					19451\tBrick Wall~n~x27 Bricks\n\
					19459\tBrick Wall~n~x30 Bricks";

					ShowPlayerDialog(playerid, DIALOG_CB_BB_WALLS, DIALOG_STYLE_PREVIEW_MODEL, "Base Building - Walls", _content, "Select", "Back");
				}
Additional explanation:
Code:
19459\tBrick Wall~n~x30 Bricks";
The number 19459 is the model id for the item "Knife".


Instead of it showing the model id 19459 which is that brick wall it just shows regular CJ Skin Icon.


That happens to every single item.


Re: Image - GaMiX - 02.09.2018

you need Mselection


Re: Image - DarkMythHunter - 02.09.2018




Still, it does not work. It only happens to the preview models of walls, doors, fences, gates, etc..


Re: Image - DarkMythHunter - 02.09.2018

Anyone?