marker = createMarker(1,1,4,"cylinder",1.5,0,255,0,255)
addEventHandler ( "onMarkerHit" , root , function ( Hit )
if ( source == marker and getElementType ( Hit ) == "player" ) then
setElementData ( resourceRoot , "ChatLocked" , true )
outputChatBox ( "تم اغلاق الشات" , Hit )
end
end )
addEventHandler ( "onMarkerLeave" , root , function ( Hit )
if ( source == marker and getElementType ( Hit ) == "player" ) then
setElementData ( resourceRoot , "ChatLocked" , false )
outputChatBox ( "تم فتح الشات" , Hit )
end
end )