function loadResource ( )
theEntrance = createMarker ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, "arrow", 1.5, 0, 255, 0, 170 )
theExit = createMarker ( 389.8681640625, 173.9693145752, 1008.3828125+1, "arrow", 1.5, 0, 255, 0, 170 )
estateBlip = createBlip ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, 44, 0, 0, 0, 255 )
outputChatBox ( "The Estate has been Loaded!!" )
end
addEventHandler ( "onResourceStart", resourceRoot, loadResource )
function markerHitE ( hitPlayer, matchingDimension )
if ( source == theEntrace ) then
outputChatBox ( "You are entering the Estate!", hitPlayer )
setElementPosition ( hitPlayer, 389.8681640625, 173.9693145752, 1008.3828125 )
elseif ( source == theExit ) then
outputChatBox ( "You are leaving the Estate!", hitPlayer )
end
end
addEventHandler ( "onMarkerHit", getRootElement(), markerHitE )