Sergei- Posted May 7, 2013 Posted May 7, 2013 hello mta.i am making a server on my own.i am working on it.i want to know how to add weapon mods,weapon sfx sounds,and skins.i have skins,weapons downloaded from various webs.it could be helpful if anybody could tell me how to mod them.thank you.
Moderators IIYAMA Posted May 7, 2013 Moderators Posted May 7, 2013 http://mta.dzek.eu/peds/ http://mta.dzek.eu/vehicle/
Sergei- Posted May 7, 2013 Author Posted May 7, 2013 vehicle creator works but the ped skin creator doesnt work and i also want for weapon and weapon sound.
Moderators IIYAMA Posted May 7, 2013 Moderators Posted May 7, 2013 Well then you have to create it manually. engineImportTXD (engineLoadTXD ( "file" ), ID ) engineReplaceModel ( engineLoadDFF ( "file", ID ), ID ) Weapon ID's https://wiki.multitheftauto.com/wiki/Weapon Replace sounds isn't possible. (you have to play them with playSound or playSound3D)
Sergei- Posted May 7, 2013 Author Posted May 7, 2013 i have played a server which has weapon sound like cod mw 4.whats that then?
WASSIm. Posted May 7, 2013 Posted May 7, 2013 try this my script weapon sound 3D function weaponfired(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) local soundfile = "" if weapon == 24 then soundfile = "deagle.wav" elseif weapon == 23 then soundfile2 = "silenced.wav" elseif weapon == 22 then soundfile = "colt.wav" elseif weapon == 29 then soundfile = "mp5.wav" elseif weapon == 25 or weapon == 26 then soundfile = "shotgun.wav" elseif weapon == 27 then soundfile = "combat.wav" elseif weapon == 28 then soundfile = "uzi.wav" elseif weapon == 34 or weapon == 33 then soundfile = "sniper.wav" elseif weapon == 31 then soundfile = "m4.wav" elseif weapon == 30 then soundfile = "ak_47.wav" elseif weapon == 35 or weapon == 36 then soundfile = "rpg.wav" end local x, y, z = getElementPosition(source) local sound = playSound3D(soundfile, x, y, z, false) setSoundVolume(sound,0.9) setSoundMaxDistance(sound, 40) end addEventHandler("onClientPlayerWeaponFire", root, weaponfired) 1
Sergei- Posted May 7, 2013 Author Posted May 7, 2013 i created a resource called mp5 and pasted txd and dff files and created lua file.no meta file needed?
iPrestege Posted May 7, 2013 Posted May 7, 2013 i created a resource called mp5 and pasted txd and dff files and created lua file.no meta file needed? Of course with out the "META" File the resource won't loaded.
Sergei- Posted May 7, 2013 Author Posted May 7, 2013 what should we do in meta file? sorry i am new in making server.
iPrestege Posted May 7, 2013 Posted May 7, 2013 what should we do in meta file? sorry i am new in making server. Meta.xml
iPrestege Posted May 7, 2013 Posted May 7, 2013 what should i type inside it? Did you read the wiki page?
Sergei- Posted May 7, 2013 Author Posted May 7, 2013 i dont know what to read,i mean if i want to mod skins,weapons,what should i read?
iPrestege Posted May 7, 2013 Posted May 7, 2013 You are talking about the meta.xml file now -.- ?? https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809
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