hideElement

--This function is executed when the player clicks on the block
local function clickblock(event)
    local playerid=event.eventobjid--Click on the player's mini number of the block
    local uiid="6986982063319417057"-- The interface ID of the component you want to hide
    local elementid="6986982063319417057_1"--The ID of the component to be hidden
    --Hide components from the player
    Customui:hideElement(playerid, uiid, elementid)
end
ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=],clickblock)