On line 4 (of the marker hit) you forgot to put the first " for the string in the sendClientMessage function.
I also fixed bugs with the timers.
addEventHandler("onMarkerHit", gangsterMarker, function (player,interior,dimension)
if not isPlayerInTeam(player,"Police" ) and ( not isPlayerInTeam ( player, "Medic" ) ) then
exports [ "TopBarChat" ] : sendClientMessage ( "the mission Coming Soon", player, 255, 0, 0, true )
setElementInterior ( player, 5, 1300.1059570313, -792.5771484375, 1085.00778125 )
setElementDimension ( player, 5 )
setElementFrozen ( player, true )
setTimer ( function( player )
exports [ "TopBarChat" ] : sendClientMessage ( "the mission Started !!!", player, 255, 0, 0, true )
setElementFrozen( player,false)
end, 5000, 1, player )
elseif isPlayerInTeam(player,"Police") then
exports [ "TopBarChat" ] : sendClientMessage ( "You are a Police, you can't enter here", player, 0, 0, 255, true )
elseif isPlayerInTeam(player,"Medic") then
exports [ "TopBarChat" ] : sendClientMessage ( "the mission Coming Soon", player, 0, 155, 255, true )
setElementInterior ( player, 5, 1300.1059570313, -792.5771484375, 1085.00778125 )
setElementDimension ( player, 5 )
setElementFrozen ( player, true )
setTimer ( function( player )
setElementFrozen( player,false)
end, 5000, 1, player )
end
end )