addEventHandler("onClientClick", getRootElement(),
function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement)
if (clickedElement==prawkoPed) then
local x, y = getScreenFromWorldPosition(-2035.14, -118.14, 1035.171875) buttons[1] = guiCreateButton(x, y, 100, 20, "Rozmowa", false) addEventHandler("onClientGUIClick", buttons[1], startRozmowa)
else
for k, buttons in ipairs(buttons) do destroyElement(buttons) end
end
end )
function startRozmowa()
for k, buttonss in ipairs(buttons) do destroyElement(buttonss) end
end