Jump to content

Ayuda con un INVENTARIIO para DAY Z , Grasias.. :D


Rata13

Recommended Posts

Perdonen Rata Les Paso El Que No Era Es Este El Codigo Del Inventario

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() 
    else 
      hideRightClickInventoryMenu() 
    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 
function hideInventoryManual() 
  guiSetVisible(inventoryWindows, false) 
  showCursor(false) 
  hideRightClickInventoryMenu() 
end 
addEvent("hideInventoryManual", true) 
addEventHandler("hideInventoryManual", getLocalPlayer(), hideInventoryManual) 
function refreshInventoryManual() 
  refreshInventory() 
end 
addEvent("refreshInventoryManual", true) 
addEventHandler("refreshInventoryManual", getLocalPlayer(), refreshInventoryManual) 
function refreshLootManual(loot) 
  refreshLoot(loot) 
end 
addEvent("refreshLootManual", true) 
addEventHandler("refreshLootManual", getLocalPlayer(), refreshLootManual) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...