ASAPMarcel Posted December 11, 2015 Share Posted December 11, 2015 Hello i need a DayZ Hide body resource Link to comment
Tekken Posted December 11, 2015 Share Posted December 11, 2015 This is not a resource/addon is something you must do directly in the gamemode. Link to comment
ASAPMarcel Posted December 11, 2015 Author Share Posted December 11, 2015 Oh okay thx for your help Link to comment
MrBugsFive Posted December 14, 2015 Share Posted December 14, 2015 SurvivorSystem.lua: --- Hide Body function hideBodyClientS () local col = getElementData(source,"currentCol") if isElement ( col ) then if getElementData ( col, "deadman" ) then setPedAnimation ( source, "BOMBER", "BOM_Plant", -1, false, true, true, false ) setElementData(source,"loot",false) setElementData(source,"currentCol",false) outputChatBox ( "You hide the body of "..getElementData ( col, "playername" ), source, 150, 150, 150 ) setTimer ( function ( colision ) if isElement ( getElementData ( colision, "parent" ) ) then destroyElement ( getElementData ( colision, "parent" ) ) end destroyElement ( colision ) end, 1500, 1, col ) end end end addEvent("hideBodyClient",true) addEventHandler("hideBodyClient", getRootElement(),hideBodyClientS) Menu_client.lua: Search By: if arg1 == "Dead" then You See: if arg1 == "Dead" then startRollMessageMenu("> Gear",255,255,255,"dead") startRollMessageMenu("> Checkbody",255,255,255,"deadreason") setElementData(localPlayer,"usedItemTrue", true) end Added: if getElementData(getLocalPlayer(),"Shovel") >= 1 then startRollMessageMenu("> Hide Body",0,255,0,"stel") setElementData(localPlayer,"usedItemTrue", true) end Exemple: if arg1 == "Dead" then startRollMessageMenu("> Gear",255,255,255,"dead") startRollMessageMenu("> Checkbody",255,255,255,"deadreason") setElementData(localPlayer,"usedItemTrue", true) if getElementData(getLocalPlayer(),"Shovel") >= 1 then startRollMessageMenu("> Hide Body",0,255,0,"stel") setElementData(localPlayer,"usedItemTrue", true) end end Search By: if itemName == "deadreason" then You See: if itemName == "deadreason" then local col = getElementData(getLocalPlayer(),"currentCol") outputChatBox(getElementData(col,"deadreason"),244,244,244,true) return end Added: if itemName == "stel" then local col = getElementData(getLocalPlayer(),"currentCol") outputChatBox(getElementData(col,"stel"),255,255,255,true) return end Salve And Test On Your Server !! 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