Jump to content

[HELP] Custrom weapon


verebes122

Recommended Posts

4 hours ago, verebes122 said:

Hi guys!

How can i create skins for a weapon? For example a default M4 and a Gold M4.

 

If you want to create a skin for a weapon, you must have some basic knowledge in Autodesk 3ds max or another program. If you want to replace the weapon, you will have to get the desired textures and use this example:

 

--------------------------------------------------------------------meta--------------------------------------------------------------

<file src="m4.txd" />
<file src="m4.dff" />


-------------------------------------------------------------------CLIENT-------------------------------------------------------------

function skins()
  txd = engineLoadTXD("m4.txd", 356 )  --you will get the desired textures and you will change the name to "m4".
  engineImportTXD(txd, 356)
  dff = engineLoadDFF("m4.dff", 356 )
  engineReplaceModel(dff, 356)
end
addEventHandler ( "onClientResourceStart", getRootElement(), skins)

This is the page of the weapons id: https://wiki.multitheftauto.com/wiki/Weapons  ( only copy the model id )

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...