[TUTORIAL RC1] How to add custom skins
#1

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!
Reply
#2

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.
Reply
#3

Slick tutorial!
Reply
#4

Wonderful Job dude and Kalcor
Reply
#5

Good job
Reply
#6

Great thnx
Reply
#7

Thanks, this is a lot simpler than I imagined.
Reply
#8

Someone give him rep.
Good job.
Reply
#9

Good job.
Reply
#10

Useful
Reply
#11

Thanks!
Reply
#12

Thank sir.
Reply
#13

This is a fresh an cool tutorial, thanks.
Reply
#14

Old method, nof for RC2
Reply
#15

Could you do a tutorial on how to add objects?
Reply
#16

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.
Reply
#17

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

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.
Reply
#19

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.
Reply
#20

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)