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, 02:14 PM   #1
Codeah
Big Clucker
 
Codeah's Avatar
 
Join Date: Jun 2016
Location: The Netherlands
Posts: 86
Reputation: 49
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, 287 views)
__________________

Last edited by Codeah; 07/04/2018 at 09:36 AM. Reason: Added crate model
Codeah is offline   Reply With Quote
Old 04/11/2017, 02:36 PM   #2
TopShooter2
Big Clucker
 
TopShooter2's Avatar
 
Join Date: Feb 2017
Posts: 133
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, 03: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, 05:17 PM   #4
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 376
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, 06:04 PM   #5
Codeah
Big Clucker
 
Codeah's Avatar
 
Join Date: Jun 2016
Location: The Netherlands
Posts: 86
Reputation: 49
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, 06:11 PM   #6
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 376
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, 06:26 PM   #7
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 4,894
Reputation: 808
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, 06:45 PM   #8
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 376
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, 06:18 PM   #9
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Italy
Posts: 1,422
Reputation: 120
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
__________________
Desktop, Web, Mobile and Game Developer
  • SA-MP Game Modes and Filter Scripts (PAWN, SQL) (8 years experience)
  • Windows .NET Applications (WPF, UWP)
  • Android Applications (Java Android SDK, Xamarin)
  • Web Design and Development (Wordpress, ASP.NET MVC, PHP, SQL)
  • Game Development (Unity3D, GameMaker Studio, LibGDX)
sasinosoft@gmail.com
Use this email - don't PM
Sasino97 is offline   Reply With Quote
Old 12/11/2017, 06:56 PM   #10
DevHarden
Big Clucker
 
DevHarden's Avatar
 
Join Date: Nov 2015
Location: United States
Posts: 69
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 01:41 PM
How can I replace a skin with an object? Markhoss Scripting Help 5 20/08/2014 12:38 AM
Object skin? JacobWilkerson Scripting Help 4 01/01/2014 10:32 PM
Skin Object !!! duongtong Scripting Help 3 13/06/2013 02:13 AM
deleting this object from my skin isnt working, using the default samp attachments.pwn niels44 Scripting Help 6 12/12/2012 08:20 PM


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


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