marker = createMarker(...)
setElementData(marker, "Active", false)
addEventHandler("onMarkerHit", root,
function ()
if source == marker then
if not getElementData(marker, "Active") then
outputChatBox("الماركر مغلق", 0, 255, 0)
else
outputChatBox("الماركر يعمل", 255, 0, 0)
end
end
end
)