marker = createMarker( -1240.044921875, 472.73046875, 6.1875, "cylinder", 1.5, 255, 0, 0, 255 )
marker2 = createMarker( 2817.818359375, -1449.072265625, 27.15625, "cylinder", 1.5, 255, 0, 0, 255 )
marker3 = createMarker( -1950.7351074219, 146.02836608887, 27.654912948608, "cylinder", 1.5, 255, 0, 0, 255 )
setElementDimension (marker3, 1)
function show2(hitPlayer,dim)
if ( source == marker and getElementType ( hitPlayer ) == 'player' ) then
triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer)
elseif ( source == marker2 and getElementType ( hitPlayer ) == 'player' ) then
triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer)
elseif ( source == marker3 and dim and getElementType ( hitPlayer ) == 'player' ) then
triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer)
end
end
addEventHandler("onMarkerHit", getRootElement(),show2)