verebes122 Posted February 3, 2018 Share Posted February 3, 2018 Hi guys! How can i create skins for a weapon? For example a default M4 and a Gold M4. Link to comment
KaMi Posted February 3, 2018 Share Posted February 3, 2018 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
URBAN Posted February 3, 2018 Share Posted February 3, 2018 Or you can use shader you can add different skins per player Link to comment
verebes122 Posted February 6, 2018 Author Share Posted February 6, 2018 How can i use shaders? Link to comment
URBAN Posted February 8, 2018 Share Posted February 8, 2018 Here is an example. Use shader_tex_names to get shader name. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now