Jump to content

Ayuda tema sin resolver


Plate

Recommended Posts

Hola alguien me podria decir por que esto no anda

    function useItemHealth() 
                local row, col = guiGridListGetSelectedItem ( itemGrid ) 
                if ( row and col and row ~= -1 and col ~= -1 ) then 
                    local itemH = guiGridListGetItemText ( itemGrid, row, 1 ) 
    if (itemH == "Vida") then 
    setElementHealth(localPlayer, 100) 
    end 
    end 
    end 
    addEventHandler("onClientGUIClcik", Usar, useItemHealth, false) 

Link to comment

Sigue sin funcionar

function useItemHealth() 
                local row, col = guiGridListGetSelectedItem ( itemGrid ) 
                if ( row and col and row ~= -1 and col ~= -1 ) then 
                    local itemH = guiGridListGetItemText ( itemGrid, row, 1 ) 
    if (itemH == "Vida") then 
    setElementHealth(localPlayer, 100) 
    end 
    end 
    end 
    addEventHandler("onClientGUIClick", UsarI, useItemHealth, false) 

Link to comment
  • Recently Browsing   0 members

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