hi guys i want call marker from another function like this code
local hidemark = createMarker(10,50,5,"cylinder",1,0,255,0)
function mark(theplayer)
markerveh =createMarker(0,0,5,"cylinder",1,0,255,0)
end
addEventHandler("onMarkerHit",marker1,mark)
function job1(theplayer)
setElementVisibleTo(markerveh,root,false)-- for here
end
addCommandHandler("hidemark",job1)