SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 04/11/2017, 01:14 PM   #1
Codeah
Big Clucker
 
Codeah's Avatar
 
Join Date: Jun 2016
Location: The Netherlands
Posts: 81
Reputation: 53
Exclamation [TUTORIAL] How to add a skin/object

AddCharModel

How to add a skin :
1. Get a .dff file and a .txd file
2. Place the files in the models folder (If you do not have one, create one)
3. Inside of models/artconfig.txt add a new line with the following parameters

Code:
AddCharModel(305, 25002, "andre.dff", "andre.txd");

Parameters :
1 . Any existing skin, it will inherit it's features. Such as walking speed, walking style etc.
2. The ID of the skin, which you can use in SetPlayerSkin (IMPORTANT : ranges from 20000 to 30000)
3. The DFF file (From models folder)
4. The TXD file (From models folder)

Notes :
You can find a lot of skins on http://www.gamemodding.net/

--------------------------------------------------------

AddSimpleModel

How to add custom objects :
1. Get a .dff file and a .txd file
2. Place the files in the models folder
3. Inside of models/artconfig.txt add a new line with the following parameters

Code:
AddSimpleModel(-1,19379, -2000, "wallzzz.dff", "wallzzz.txd");
Parameters :
1. Virtual world
2. Any existing object, it will inherit it's features.
3. The ID of the object, which you can use in CreateObject (IMPORTANT : from -1000 to -30000)
4. The DFF file (From models folder)
5. The TXD file (From models folder)

Notes :
I have attached a zip file containing a DFF and TXD file for a simple crate that I modeled in Blender, feel free to use it!

Attached Files
File Type: zip crate.zip (77.4 KB, 321 views)
__________________

Last edited by Codeah; 07/04/2018 at 08:36 AM. Reason: Added crate model
Codeah is offline   Reply With Quote
Old 04/11/2017, 01:36 PM   #2
TopShooter2
Big Clucker
 
TopShooter2's Avatar
 
Join Date: Feb 2017
Posts: 119
Reputation: 67
Default Re: [TUTORIAL] How to add a skin/object

You could make it before me even though I almost finished it

OT; Good job.
TopShooter2 is offline   Reply With Quote
Old 04/11/2017, 02:44 PM   #3
Mojizijue
Little Clucker
 
Mojizijue's Avatar
 
Join Date: Sep 2015
Posts: 7
Reputation: 0
Default Re: [TUTORIAL] How to add a skin/object

Nice!
Mojizijue is offline   Reply With Quote
Old 04/11/2017, 04:17 PM   #4
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 370
Reputation: 35
Default Re: [TUTORIAL] How to add a skin/object



It won't show object created, any idea why?
Saddin is offline   Reply With Quote
Old 04/11/2017, 05:04 PM   #5
Codeah
Big Clucker
 
Codeah's Avatar
 
Join Date: Jun 2016
Location: The Netherlands
Posts: 81
Reputation: 53
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by Saddin View Post


It won't show object created, any idea why?
Show me the line that you added in artconfig.txt
__________________
Codeah is offline   Reply With Quote
Old 04/11/2017, 05:11 PM   #6
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 370
Reputation: 35
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by Codeah
Show me the line that you added in artconfig.txt
PHP Code:
AddSimpleModel(-119379, -2001"ferrari.dff""ferrari.txd"); 
Saddin is offline   Reply With Quote
Old 04/11/2017, 05:26 PM   #7
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 2,288
Reputation: 818
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by Saddin View Post
PHP Code:
AddSimpleModel(-119379, -2001"ferrari.dff""ferrari.txd"); 
What kind of object are you trying to add? You can't add vehicle models.

If its a regular object make sure your client actually downloaded it.
dugi is offline   Reply With Quote
Old 04/11/2017, 05:45 PM   #8
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 370
Reputation: 35
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by dugi View Post
What kind of object are you trying to add? You can't add vehicle models.

If its a regular object make sure your client actually downloaded it.
Its vehicle model so nevermind, sorry
Saddin is offline   Reply With Quote
Old 12/11/2017, 05:18 PM   #9
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,393
Reputation: 127
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by Codeah View Post
2. The ID of the skin, which you can use in SetPlayerSkin (IMPORTANT : from 20000 to 30000)
It's wrong, it's starting from 25000
Sasino97 is offline   Reply With Quote
Old 12/11/2017, 05:56 PM   #10
DevHarden
Big Clucker
 
DevHarden's Avatar
 
Join Date: Nov 2015
Location: United States
Posts: 63
Reputation: 13
Default Re: [TUTORIAL] How to add a skin/object

Quote:
Originally Posted by Sasino97 View Post
It's wrong, it's starting from 25000


Player skins use ranges: 20000 to 30000 (10000 slots)
Objects use negative IDs: -1000 to -30000 (29000 slots)

No it isn't. It is literally on the 3.8 thread.
DevHarden is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Player Skin Breathing cause Object Movement Rudy_ Scripting Help 6 29/08/2014 12:41 PM
How can I replace a skin with an object? Markhoss Scripting Help 5 19/08/2014 11:38 PM
Object skin? JacobWilkerson Scripting Help 4 01/01/2014 09:32 PM
Skin Object !!! duongtong Scripting Help 3 13/06/2013 01:13 AM
deleting this object from my skin isnt working, using the default samp attachments.pwn niels44 Scripting Help 6 12/12/2012 07:20 PM


All times are GMT. The time now is 01:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.