Jump to content

[Need] DayZ Hide Body


ASAPMarcel

Recommended Posts

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 !!

:D

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...