SA-MP Forums Archive
[TUTORIAL RC1] How to add custom skins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: [TUTORIAL RC1] How to add custom skins (/showthread.php?tid=644118)

Pages: 1 2


[TUTORIAL RC1] How to add custom skins - J0sh... - 04.11.2017

Hello, you're probably reading this after gathering a boner about 0.3.8.

So you may ask yourself, how to add a skin?
Assuming you've downloaded a skin from the internet or followed Kalcor's tutorial you will be ready.

Firstly, go to your models folder in your SA-MP 0.3.8 server directory.



It should have some pre-made files inside.

Now, copy your skin dff and txd to this directory.



Now it should look like this, (replace skin.txd/dff with your actual skin name)

Now, open artconfig.txt in that directory.



This is what should be inside, you can delete all of this if you want.

Now, we need to use AddCharModel()
The first paramater of the function is a valid GTA SA skin ID, this is probably used for the collision or the animations.
The second paramater is the ID of the skin that you'll be using in SetPlayerSkin()
The third paramater is the DFF name
The fourth paramter is the TXD name

For example, my artconfig would now look like this



Now, save that file and open up your server.



If you see this you've done it correctly! Now head in game.

You may see this


Those are the files downloading.

Now, you can use something like /skin the second parameter of AddCharModel e.g. for me it'd be 25002
So I'd write /skin 25002

Now you should have something like this:



Congratulations, you have now added a custom skin to your SA-MP server!

Enjoy!


Re: [TUTORIAL] How to add custom skins - cuber - 04.11.2017

Thank you for making this, Freshncool.

EDIT:
Quote:

Hello, you're probably reading this after gathering a boner about 0.3.8

Yes, that's why I'm here.


Re: [TUTORIAL] How to add custom skins - reemyrobby - 04.11.2017

Slick tutorial!


Re: [TUTORIAL] How to add custom skins - OmerKhan - 04.11.2017

Wonderful Job dude and Kalcor


Re: [TUTORIAL] How to add custom skins - Deadpoop - 04.11.2017

Good job


Re: [TUTORIAL] How to add custom skins - RoyalEmpire - 04.11.2017

Great thnx


Re: [TUTORIAL] How to add custom skins - Eoussama - 04.11.2017

Thanks, this is a lot simpler than I imagined.


Re: [TUTORIAL] How to add custom skins - vassilis - 04.11.2017

Someone give him rep.
Good job.


Re: [TUTORIAL] How to add custom skins - TopShooter2 - 04.11.2017

Good job.


Re: [TUTORIAL] How to add custom skins - Whyd - 04.11.2017

Useful


Re: [TUTORIAL] How to add custom skins - TheMaskedGamer - 04.11.2017

Thanks!


Re: [TUTORIAL] How to add custom skins - Escobabe - 04.11.2017

Thank sir.


Re: [TUTORIAL] How to add custom skins - Luis- - 21.11.2017

This is a fresh an cool tutorial, thanks.


Re: [TUTORIAL] How to add custom skins - OKStyle - 22.11.2017

Old method, nof for RC2


Re: [TUTORIAL] How to add custom skins - NV1D3ATD - 22.11.2017

Could you do a tutorial on how to add objects?


Re: [TUTORIAL] How to add custom skins - Beryllium - 22.11.2017

It's no need already man, It's very simple. Everyone can make it, Anyway, It's useful for the people which are using 0.3.8-RC2 Windows Server for the first time.

Great one.


Re: [TUTORIAL] How to add custom skins - Cookland - 05.12.2017

It downloads the textures in game but doesn't seem to work when I set my skin. Any ideas?


Re: [TUTORIAL] How to add custom skins - dugi - 05.12.2017

Quote:
Originally Posted by Cookland
Посмотреть сообщение
It downloads the textures in game but doesn't seem to work when I set my skin. Any ideas?
Post your code.


Re: [TUTORIAL RC1] How to add custom skins - AlexMSK - 05.12.2017

Thank you for posting this i'm sure it'll help a lot players.
EDIT: also most of players (newbies) should increase the code at /setskin if they have it, probably it's from 0 to 311, they should do it from 0 to 30000
PS: 9.37kb/s rip your net sir.


Re: [TUTORIAL RC1] How to add custom skins - Locky_ - 05.12.2017

Quote:
Originally Posted by AlexMSK
Посмотреть сообщение
Thank you for posting this i'm sure it'll help a lot players.
EDIT: also most of players (newbies) should increase the code at /setskin if they have it, probably it's from 0 to 311, they should do it from 0 to 30000
PS: 9.37kb/s rip your net sir.
I do not think it's necessary ... I did it this way for testing and I guess that's okay.

PHP код:
CMD:setkin(playeridparams[]) return SetPlayerSkin(playeridstrval(params)); 
A warning occurs if a skin is not valid.
This is automatic. I think the SetPlayerSkin return (true or false) is not working as it describes in the wiki.