addEventHandler("onClientMarkerHit", marker,
function(hitElement, md)
if hitElement ~= localPlayer then return end
if not md then return end
guiSetVisible(napad, true)
showCursor(true, false)
end)
addEventHandler("onClientGUIClick", root, function(btn, state)
if btn == "left" and state == "up" then
if source == buttonRefuse then
guiSetVisible(napad, false)
showCursor(false)
end
end
end)
function getElementsWithinMarker(marker)
if (not isElement(marker) or getElementType(marker) ~= "marker") then
...