Jump to content

animation


Recommended Posts

Posted

Speaking staff;

Well I have a server MTA DayZ and was wondering how do i add an animation when the player opens the inventory (animation squat), I already have a code but does not work, the code is this:

--Code 
function showInventory(key, keyState) 
    if getElementData(getLocalPlayer(), "logedin") and keyState == "down" then 
    guiSetVisible(inventoryWindows, not guiGetVisible(inventoryWindows)) 
    showCursor(not isCursorShowing()) 
    refreshInventory() 
    if guiGetVisible(inventoryWindows) == true then 
      onClientOpenInventoryStopMenu() 
      setPedAnimation(source, "BOMBER", "BOM_Plant_Crouch_Out", nil, false, false, false, true) 
    else 
      hideRightClickInventoryMenu() 
      setPedAnimation(source, "BOMBER", "BOM_Plant_Loop", nil, false, false, nil, false) 
    end 
    if isPlayerInLoot() then 
      local col = getElementData(getLocalPlayer(), "currentCol") 
      local gearName = getElementData(getLocalPlayer(), "lootname") 
      refreshLoot(col, gearName) 
    end 
end 
end 
bindKey("j", "down", showInventory) 
  
  
function showInventoryManual () 
        guiSetVisible(inventoryWindows,not guiGetVisible(inventoryWindows)) 
        showCursor(not isCursorShowing()) 
        refreshInventory() 
        if guiGetVisible(inventoryWindows) == true then 
            onClientOpenInventoryStopMenu () 
        end 
end 

Posted

Do you have permission to use the non-compiled DayZ code?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Yes, my friend acquired a0.4 with the Official Map, my server is kinda old but many things are updated;

If you want proof I can talk to my friend think he should still have.

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