if you wanna make a GUI of the job then
function createaMarker ()
createMarker (-1645.7694091797, 433.41793823242, 7.1796875)
end
addEventHandler("onClientResourceStart", root, createaMarker)
function guiSetOn ()
guiSetVisible(youWindowVariableHere, true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", root, guiSetOn)