Hi my name is dark, i bought gmod dayz 5.3 from scriptfodders a few weeks ago and i been hosting it over serenity servers, i been working alot on it and editing it so people could have different bodygroups with different items that they pick up for exemple if i would find pants over the floor and pick it up itt would change only my pants apearance when equip but anyways what i am mostly trying to figure out is this i am trying to do different clothes with certain bodygroup...this item is called item_ghillie.lua it is the items i am trying to have different bodygroup:
ITEM = {}
ITEM.Name = "Clothes (Ghillie)"
ITEM.Angle = Angle(90,90,90)
ITEM.Desc = "Standard Edition Camouflage suit."
ITEM.Model = "models/props/de_tides/vending_tshirt.mdl"
ITEM.Weight = 1
ITEM.Price = 200
ITEM.Credits = 20
ITEM.ReqCraft = { "item_fabric", "item_fabric" }
ITEM.SpawnChance = 25
ITEM.SpawnOffset = Vector(0,0,10)
ITEM.Body = true
ITEM.BodyModel = "models/bloocobalt/splinter cell/chemsuit_cod.mdl"
ITEM.EquipFunc = function(ply, item) ply:AddAdditionalWeight(10) end
ITEM.DEquipFunc = function(ply, item) ply:AddAdditionalWeight(-10) end
ITEM.SpawnAngle = Angle(0,0,0)
ITEM.LootType = { "Industrial", "Weapon" }
ITEM.EatFunction = function(ply, item) ply:DoProcess(item, "Eating", 5, "eat.wav", 0, "npc/barnacle/barnacle_gulp2.wav") end
ITEM.ProcessFunction = function(ply, item) ply:EatHurt(item, 5, 50) end
SetBodygroup( 2 ) end
but it wont work it wont change to the second bodygroup if anyone nice enought that could help me out and paste me the correction it would be very appreciated il give u vip access to the server
here is another code this one is for the pants:
ITEM = {}
ITEM.Name = "Baggy Pants"
ITEM.Angle = Angle(90,90,90)
ITEM.Desc = "Stretchy, baggy pants with a few pockets."
ITEM.Model = "models/bloocobalt/splinter cell/chemsuit_cod.mdl"
ITEM.Weight = 1
ITEM.Price = 200
ITEM.Credits = 20
ITEM.DontStock = true
ITEM.SpawnChance = 2
ITEM.SpawnOffset = Vector(0,0,10)
ITEM.EquipFunc = function(ply, item) ply:AddAdditionalWeight( 10 ) end
ITEM.DEquipFunc = function(ply, item) ply:AddAdditionalWeight( -10 ) end
ITEM.Pants = true
ITEM.SpawnAngle = Angle(0,0,0)
ITEM.LootType = { "Basic", "Industrial", "Weapon" }
ITEM.EatFunction = function(ply, item) ply:DoProcess(item, "Eating", 5, "eat.wav", 0, "npc/barnacle/barnacle_gulp2.wav") end
ITEM.ProcessFunction = function(ply, item) ply:EatHurt(item, 5, 50) end
what could i change in these lines so its able to when u equip people see u with different pants, i am using a player model called enhanced_citizens_v4 from workshop and it has different faces body groups, helmets, pants and shirts
Hi dark you can contact the person you bought this from on [url]www.scriptfodder.com[/url] for help & support. It is after all payware and you are not allowed to post the source code on a public forum.
Oh but hé wont awnser me sorry I didnt know And with this code u cant do anything it's only an item
bump
Sorry, you need to Log In to post a reply to this thread.